From 22a89887251c90704ec5e45787c447f874ffcace Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 4 Jun 2026 05:32:09 +0000 Subject: [PATCH 1/2] ## Java SDK Changes: * `apideck.accounting.bills.list()`: `response.data[].subsidiary` **Added** * `apideck.accounting.bills.create()`: * `request.bill.subsidiary` **Added** * `apideck.accounting.bills.get()`: `response.data.subsidiary` **Added** * `apideck.accounting.bills.update()`: * `request.bill.subsidiary` **Added** * `apideck.accounting.invoices.list()`: `response.data[].subsidiary` **Added** * `apideck.accounting.invoices.create()`: * `request.invoice.subsidiary` **Added** * `apideck.accounting.invoices.get()`: `response.data.subsidiary` **Added** * `apideck.accounting.invoices.update()`: * `request.invoice.subsidiary` **Added** * `apideck.accounting.creditNotes.list()`: `response.data[].subsidiary` **Added** * `apideck.accounting.creditNotes.create()`: * `request.creditNote.subsidiary` **Added** * `apideck.accounting.creditNotes.get()`: `response.data.subsidiary` **Added** * `apideck.accounting.creditNotes.update()`: * `request.creditNote.subsidiary` **Added** * `apideck.accounting.payments.list()`: `response.data[].subsidiary` **Added** * `apideck.accounting.payments.create()`: * `request.payment.subsidiary` **Added** * `apideck.accounting.payments.get()`: `response.data.subsidiary` **Added** * `apideck.accounting.payments.update()`: * `request.payment.subsidiary` **Added** * `apideck.accounting.journalEntries.list()`: `response.data[].subsidiary` **Added** * `apideck.accounting.journalEntries.create()`: * `request.journalEntry.subsidiary` **Added** * `apideck.accounting.journalEntries.get()`: `response.data.subsidiary` **Added** * `apideck.accounting.journalEntries.update()`: * `request.journalEntry.subsidiary` **Added** * `apideck.accounting.billPayments.list()`: `response.data[].subsidiary` **Added** * `apideck.accounting.billPayments.create()`: * `request.billPayment.subsidiary` **Added** * `apideck.accounting.billPayments.get()`: `response.data.subsidiary` **Added** * `apideck.accounting.billPayments.update()`: * `request.billPayment.subsidiary` **Added** * `apideck.vault.logs.list()`: * `request.filter` **Changed** --- .speakeasy/gen.lock | 215 +++++----- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 14 +- README.md | 4 +- RELEASES.md | 12 +- docs/models/components/Bill.md | 1 + docs/models/components/BillInput.md | 1 + docs/models/components/BillPayment.md | 1 + docs/models/components/BillPaymentInput.md | 1 + .../models/components/CreateWebhookRequest.md | 14 +- docs/models/components/CreditNote.md | 1 + docs/models/components/CreditNoteInput.md | 1 + docs/models/components/Invoice.md | 1 + docs/models/components/InvoiceInput.md | 1 + docs/models/components/JournalEntry.md | 1 + docs/models/components/JournalEntryInput.md | 1 + docs/models/components/LogsFilter.md | 18 +- docs/models/components/PathMatchMode.md | 24 ++ docs/models/components/Payment.md | 1 + docs/models/components/PaymentInput.md | 1 + .../models/components/UpdateWebhookRequest.md | 12 +- docs/models/components/Webhook.md | 2 +- docs/sdks/webhooks/README.md | 4 + gradle.properties | 2 +- .../java/com/apideck/unify/AsyncWebhooks.java | 30 ++ .../com/apideck/unify/SDKConfiguration.java | 6 +- src/main/java/com/apideck/unify/Webhooks.java | 30 ++ .../apideck/unify/models/components/Bill.java | 117 +++-- .../unify/models/components/BillInput.java | 110 +++-- .../unify/models/components/BillPayment.java | 75 +++- .../models/components/BillPaymentInput.java | 69 ++- .../components/CreateWebhookRequest.java | 12 +- .../unify/models/components/CreditNote.java | 103 +++-- .../models/components/CreditNoteInput.java | 95 +++-- .../unify/models/components/Invoice.java | 118 +++-- .../unify/models/components/InvoiceInput.java | 109 +++-- .../unify/models/components/JournalEntry.java | 83 +++- .../models/components/JournalEntryInput.java | 76 +++- .../unify/models/components/LogsFilter.java | 403 +++++++++++++++++- .../models/components/PathMatchMode.java | 141 ++++++ .../unify/models/components/Payment.java | 75 +++- .../unify/models/components/PaymentInput.java | 69 ++- .../components/UpdateWebhookRequest.java | 18 +- .../unify/models/components/Webhook.java | 12 +- 44 files changed, 1644 insertions(+), 442 deletions(-) create mode 100644 docs/models/components/PathMatchMode.md create mode 100644 src/main/java/com/apideck/unify/models/components/PathMatchMode.java diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 199473fd0..bd64269bf 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,26 +1,26 @@ lockVersion: 2.0.0 id: 38254260-287a-40b6-9ac5-c2fcb654c9cc management: - docChecksum: ac75faf888c213c540e41ec77c851c80 - docVersion: 10.24.34 - speakeasyVersion: 1.764.1 - generationVersion: 2.885.1 - releaseVersion: 0.31.13 - configChecksum: fecad967e2b05ffa1af30d11252c1815 + docChecksum: 9c2270cbf7ade2fdce4480609d8d26a5 + docVersion: 10.24.39 + speakeasyVersion: 1.770.0 + generationVersion: 2.893.0 + releaseVersion: 0.31.14 + configChecksum: f9224383090374254c7fd0b067fc838e repoURL: https://github.com/apideck-libraries/sdk-java.git installationURL: https://github.com/apideck-libraries/sdk-java published: true persistentEdits: - generation_id: d9caa2e4-40e5-4ce1-ba31-e95858a30dae - pristine_commit_hash: f5de54ed62d437d0d4fc0bf86422e6494ef944d2 - pristine_tree_hash: b539093b1119969412015c89c5cddc53cc55f1d9 + generation_id: ec40b145-39e8-4fde-ac7c-596396212f1b + pristine_commit_hash: 04e1f600ca8e66ffba4cb189712236e3654b6174 + pristine_tree_hash: 88ec028142a06a1274265b96ca825cf5d20a7358 features: java: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 additionalProperties: 0.0.1 constsAndDefaults: 0.1.3 - core: 3.55.25 + core: 3.55.26 deprecations: 2.81.2 downloadStreams: 0.1.1 errors: 1.0.2 @@ -417,12 +417,12 @@ trackedFiles: pristine_git_object: f291afb441e9c25ef8789c7c54329f18fe958430 docs/models/components/Bill.md: id: 12ac35b913cd - last_write_checksum: sha1:9077a31d09f0317eb329c161b64e5c66fa2dfef0 - pristine_git_object: cf17552aaa0c57d72680e61d98115044e1fd1abc + last_write_checksum: sha1:f1f35ebf8d88442632375f0415ff78be19908f5e + pristine_git_object: d16dfbeb3bc35f85587c8b0280b221924824d2ee docs/models/components/BillInput.md: id: 5f17a29a52c3 - last_write_checksum: sha1:5fc340095b3542a89c9238e810d0d706bc4fc771 - pristine_git_object: 05eb6f00d241651c7abc806f10a36e83a02e9c27 + last_write_checksum: sha1:576a4dadda35334dd44aac0e553bc2a5fa81f94e + pristine_git_object: b4ba901dd323cfbc6c47166cf3bad186fa5e1963 docs/models/components/BillLineItem.md: id: c94a273239d6 last_write_checksum: sha1:07450a6b5056147208729ab3c59e60b9ac7f22e0 @@ -433,8 +433,8 @@ trackedFiles: pristine_git_object: 718e6264ef7467d15b6cf56f0285cc3102789092 docs/models/components/BillPayment.md: id: 1e4b5294392d - last_write_checksum: sha1:0276a74e0f30ad25f0c2c02fffe8223a09b62900 - pristine_git_object: 0fea4e120b44fe11459aa0e3567ec38cdcfd16db + last_write_checksum: sha1:92e53850d00fbb4495aa1fbb30e809a9e876cd50 + pristine_git_object: 5dd801d58fbccd9166a475df50640b22ada797f7 docs/models/components/BillPaymentAllocationType.md: id: 0674b824128e last_write_checksum: sha1:d7ec954267c78762abaae2e232068fa2ee9dd123 @@ -445,8 +445,8 @@ trackedFiles: pristine_git_object: ca07bb89cf03b709e064e158078013b783e72dc7 docs/models/components/BillPaymentInput.md: id: 0b7da280d11b - last_write_checksum: sha1:e549589a907ba1f6dac81c5a6a7e3732cc13f500 - pristine_git_object: 263777b3a658722c55710c0005962fb803dbf8a1 + last_write_checksum: sha1:5ffe114665f194dd5a9db912520d0b1a61fc3547 + pristine_git_object: 0ea1a25ee11e585a6a9a9d386a6fb29476bd7db2 docs/models/components/BillPaymentType.md: id: 08cc561043b2 last_write_checksum: sha1:19cc667d955231cc83d39f4d5a0b3d686af562d0 @@ -1001,8 +1001,8 @@ trackedFiles: pristine_git_object: 9785aee3922b11ee244d4a6ab2a34ad3522474b0 docs/models/components/CreateWebhookRequest.md: id: ad0334c2a766 - last_write_checksum: sha1:96fe0c7e854768f07ca9b3ad35f3e89aeb86efde - pristine_git_object: 01fc321ac054e2868d3c7511c19d60c20885cab8 + last_write_checksum: sha1:932c2ebd7f5a0ebc80f9ea9d02ad19b5b2bfb4ec + pristine_git_object: c5330baa17c3be5cb098590f0c71164ae915d5d2 docs/models/components/CreateWebhookResponse.md: id: 59d03e0461bc last_write_checksum: sha1:d7d28aa5aa9df07e99586c2a72e6124129020b25 @@ -1013,12 +1013,12 @@ trackedFiles: pristine_git_object: 0ca7c392847c9c5a3dbd2f120cb13aa57412131c docs/models/components/CreditNote.md: id: fdbc707db3df - last_write_checksum: sha1:ab0399e1bfccdd2ec991fa034cc4df7457f265c4 - pristine_git_object: 41b8cc13cb23e9c9e2e7a1f702463ae283bddea5 + last_write_checksum: sha1:f708eced9dfeb1f1faa84a9234cf6d04f989bf8e + pristine_git_object: b8ec17cdacfdfd8c1b6a8c71924a9a4adc6ef8f2 docs/models/components/CreditNoteInput.md: id: 505e5d8fbb29 - last_write_checksum: sha1:95d1715a0b193e468e12494b6bd13aacc7f827c4 - pristine_git_object: 5a8e853eb706552c280978cb921798c03da6e0f2 + last_write_checksum: sha1:b55081d444800e180ac39be54aeb614dd9e293ee + pristine_git_object: 513cd18a665c28ef003b44ad8a85b77fe0569d8f docs/models/components/CreditNoteStatus.md: id: e5caa312c594 last_write_checksum: sha1:eb8ff413607e16508e97b96650d497a450ba8b7f @@ -2421,12 +2421,12 @@ trackedFiles: pristine_git_object: 59c46a01aad9ddabd9b5f00f1bae9f41d6e888b9 docs/models/components/Invoice.md: id: 8dbabf0e657f - last_write_checksum: sha1:9f4638bad6bf458842df259695bf8e2545a363b5 - pristine_git_object: b84cf5b1e7bc4d8fe596f0d4f0f3dd271ce497b1 + last_write_checksum: sha1:ffeff6039a107f321d85d3780f1fb7cee0026644 + pristine_git_object: 7e0a890efb04ae24ad38680082bc80cb93b761ed docs/models/components/InvoiceInput.md: id: 74c8ecc6c081 - last_write_checksum: sha1:eb7ddd7667eb59048d3c873ad56396a20d6b4fef - pristine_git_object: 986ad2bbab97902dcefc20d8912e02d0f0e58c05 + last_write_checksum: sha1:841d94567c22cf16441573e56d3facb72d001fb6 + pristine_git_object: 622699b450cefd34d2d59af635a401133c217d82 docs/models/components/InvoiceItem.md: id: 945e91202e7b last_write_checksum: sha1:192b4f563a8473ed93aa4cc13328fef37d82f4b8 @@ -2557,12 +2557,12 @@ trackedFiles: pristine_git_object: 8e076cebbe07b602ddced3a05d3833c07c4da4c6 docs/models/components/JournalEntry.md: id: 9439db9ea759 - last_write_checksum: sha1:0555180c2bb4767ac72f37bdfefd8e0af18de34e - pristine_git_object: e59bede19d8a0a25a019f81946220d918f535033 + last_write_checksum: sha1:648d1332f7278b52f7bc50b478f53c186af58ebc + pristine_git_object: 50e7b8fb0b872361a9c03420eef646c931063c4e docs/models/components/JournalEntryInput.md: id: 13d690dfca5a - last_write_checksum: sha1:082a70e78807737701bae69016ab3fc37cbd947c - pristine_git_object: afd200b026cc185467d772100f95b4dff0fa03c7 + last_write_checksum: sha1:0ec3469f7fbfae58b6b46fdb611e97487473ce5f + pristine_git_object: 5c0a6bdd33a367288785136de5b7d7eefb4e1738 docs/models/components/JournalEntryLineItem.md: id: 2855c0434aa1 last_write_checksum: sha1:69d8dd2febfe8edf3ac113f4b21738de19affd4a @@ -2785,8 +2785,8 @@ trackedFiles: pristine_git_object: ca9c0d3bb9118d72faad975f70248549efe399b3 docs/models/components/LogsFilter.md: id: 9e79328f5083 - last_write_checksum: sha1:a0e85e4c642f512b50633058bff0e3229dcc67be - pristine_git_object: 990a44eb2715e47868cdc293ed337fc338fcaeb6 + last_write_checksum: sha1:eb59736c23746f294bc7325b89979b465dd6c9f1 + pristine_git_object: 55d8b9ea9657dfdbe0b023f9e65d0ca7196e2d83 docs/models/components/ManagedVia.md: id: ade7f92e223c last_write_checksum: sha1:0b0c888e54ecb40537a379dc7c9fe9a4829b89ef @@ -2935,10 +2935,14 @@ trackedFiles: id: d05fad8d5aa0 last_write_checksum: sha1:48b8e8dcba637283e80d57dd5f1f2a2c4acf7834 pristine_git_object: 103ff5025c18017c93e3d77d5a5f14400264303d + docs/models/components/PathMatchMode.md: + id: 2d71eafc7659 + last_write_checksum: sha1:f79651c1f8cd23bca0c2c52cec87f93fa12be838 + pristine_git_object: 09024a42e45b13ac128344755eeaa02e00ef9135 docs/models/components/Payment.md: id: 011d3df9ada3 - last_write_checksum: sha1:db767e6549a262e57014d506dcf3fcb05b8f7c89 - pristine_git_object: ee5a91c09d69d68c40220ecdc44baac1ab170276 + last_write_checksum: sha1:43ccf56cd32391a461e17c4f0fa88f929073f00a + pristine_git_object: 0d99b0d59963d57ed033556f74ebdf5056eb4f59 docs/models/components/PaymentAllocations.md: id: 07fbb08b763c last_write_checksum: sha1:1e26b8c0db74086e3ac1b98dde272ec5d20ea232 @@ -2949,8 +2953,8 @@ trackedFiles: pristine_git_object: 8945204016e32e6adc59d776a47ebc580f88edc9 docs/models/components/PaymentInput.md: id: b82974a89784 - last_write_checksum: sha1:82a0b19705eda555f4d0b26f085ee9d95e3eec1e - pristine_git_object: 490c464d09c1fb1094cfe185ea1b4a623713ff35 + last_write_checksum: sha1:9ec0ec2360f4902581f97c3f4d51e1917bf2fa71 + pristine_git_object: 1e5256b035794496f5b8d31b19c7aba08f50fbef docs/models/components/PaymentStatus.md: id: 0df64a5775c3 last_write_checksum: sha1:cca3c0f42462a9ddf3291277b9ffaf1d28e61916 @@ -3785,8 +3789,8 @@ trackedFiles: pristine_git_object: 4895f44165991a2c490671f8301c7f9ed74573a3 docs/models/components/UpdateWebhookRequest.md: id: 765581574c79 - last_write_checksum: sha1:3be98378097c7c50817eaaf0fde606125cae1a4d - pristine_git_object: aacb249fd16365de8e04d8abd7e6cacefb30832c + last_write_checksum: sha1:888c790aad57f4191754532bf06ba256c060b9b9 + pristine_git_object: 2207959fb9cbf6950d2c4c432b7e34516265f324 docs/models/components/UpdateWebhookResponse.md: id: fddb2dec9aae last_write_checksum: sha1:4f53cd0c008fdf86123d56c4119fc55933c13009 @@ -3833,8 +3837,8 @@ trackedFiles: pristine_git_object: e14311e6aa30d532a1ffdfdaed597484a3367014 docs/models/components/Webhook.md: id: 64d0538156ae - last_write_checksum: sha1:b7624394919df18e3c22b30486fb1f4560247632 - pristine_git_object: 8c1966a9c5050e10c630ccd3498e4e1410afcc34 + last_write_checksum: sha1:366e12e63c9e78c08b03c97b91e3afc9e0e21bed + pristine_git_object: 42243949f9be77d2dd7dc7c06d1dace2879186d2 docs/models/components/WebhookEventType.md: id: b443ab58ee9b last_write_checksum: sha1:99f810e20314e9ded56215589a5070cf6d5734ab @@ -7017,16 +7021,16 @@ trackedFiles: pristine_git_object: ac82b3e08e4dc5aed21b0214609967c4a71b160d docs/sdks/webhooks/README.md: id: e21b32d786a4 - last_write_checksum: sha1:5854eeabb78859c4d00e6f11a29df5b2150a19c3 - pristine_git_object: 7da5dd66a2bd9330893e96fccf594b1268ef7f18 + last_write_checksum: sha1:eda3042c9bae37d99f667c25f58e338345ec308d + pristine_git_object: a1947e226a64d71ec4edc01f15126ddca0e1060a docs/utils/Blob.md: id: 3d9a7c4ad67a last_write_checksum: sha1:1f0bf9d59eecfc2cd1b2bd463baac7778cce98d6 pristine_git_object: c755c6aa377f358344e761e9cc3e7b67bc1fb479 gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:a84aa5097758d36a2066f80925928e0f20b86212 - pristine_git_object: 83546020591f0ee14d52b44da9d49fcd3d830da5 + last_write_checksum: sha1:186796da82161ee2deb105b99d7e4c7c8637731b + pristine_git_object: 994fa0afa2ea6f620f7178e32d44f1b4f4c7510c gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -7549,8 +7553,8 @@ trackedFiles: pristine_git_object: a940085e0519c6eb9bc80320eec3f187c8c42196 src/main/java/com/apideck/unify/AsyncWebhooks.java: id: 769c7e59bd07 - last_write_checksum: sha1:091c4c5f4938a42cca490df5c3f81373029b18fb - pristine_git_object: 2cec95a9bdc23c3eb2c43c5c5530bdd66ea0fd2a + last_write_checksum: sha1:088bde13b006b44208af5be90fb402007a7ea20b + pristine_git_object: 6662d507d163cc58b2b02aa9b1baf7035c91c2c4 src/main/java/com/apideck/unify/Ats.java: id: f294d2605b14 last_write_checksum: sha1:ea22b9824f4a9682821e751acdbf6eb76915c97a @@ -7845,8 +7849,8 @@ trackedFiles: pristine_git_object: 7296db7ebcdcff7ee348d1f993fc4aa2a7e6c145 src/main/java/com/apideck/unify/SDKConfiguration.java: id: a2b330a87142 - last_write_checksum: sha1:61154f717e292c7ab150b8249df8a15a002795ce - pristine_git_object: 79e9a1922f27ee7b3ef625128ee59f39d39cd7e5 + last_write_checksum: sha1:68e09c4e2d5b40605c6f9b504310274e84596f02 + pristine_git_object: cb4943f5f4ab3219fa5636f5022a7871a522f391 src/main/java/com/apideck/unify/SecuritySource.java: id: e4566c6c806b last_write_checksum: sha1:101bf1a9f5cf4e8c37abb4540147276eebb2bab0 @@ -7909,8 +7913,8 @@ trackedFiles: pristine_git_object: 60c968d08b47876295f6e44b68152b38264961bf src/main/java/com/apideck/unify/Webhooks.java: id: 0cc49fb8cabf - last_write_checksum: sha1:e65098a5dd0bf7f24c5dcd6656dfba1d13884b63 - pristine_git_object: bc9d95e6ebe9dfdd6db9bc60947cd7643c9defd5 + last_write_checksum: sha1:97be1b1efd71a4cbb615dc671bfde2cd1178ac3d + pristine_git_object: cf91f0b991658b8c326853dc8477a47f4e5ae97b src/main/java/com/apideck/unify/models/components/AccountStatus.java: id: a1f68e126525 last_write_checksum: sha1:cbc0e32ae6ef88fb620b63fa587f59ceb2a380a3 @@ -8273,12 +8277,12 @@ trackedFiles: pristine_git_object: 74c8d2ad3221f119ed09e9e041eaac0037080cb4 src/main/java/com/apideck/unify/models/components/Bill.java: id: b35327a61f59 - last_write_checksum: sha1:63a81b1a40cf0d50607853e473117d7dcdaca7c6 - pristine_git_object: bda204236536071395ce69ad7bab4a62a7c46e65 + last_write_checksum: sha1:dbd5691dfc9be054dd8d794d319b0b322115086f + pristine_git_object: f71d4d47a76127f13b6ac10fb54ec73dfce86f64 src/main/java/com/apideck/unify/models/components/BillInput.java: id: 142ca1cfb422 - last_write_checksum: sha1:a15a8ae9790a751054a0b463e6613fbb2a37fd28 - pristine_git_object: 1d37ac79acaf48c247687d8233937d9d781970ee + last_write_checksum: sha1:a01068d3b44c75cb0803162136c73de0c98538b6 + pristine_git_object: c4ca0f48d3f46bfcc1295bfa6b1ba459d28ea680 src/main/java/com/apideck/unify/models/components/BillLineItem.java: id: ed47ea87f79b last_write_checksum: sha1:659ed5bd20c8545446e960aa04a46c80f07a9198 @@ -8289,8 +8293,8 @@ trackedFiles: pristine_git_object: 65909743f8d9e63d44d6d33e2a8256af9e6fa374 src/main/java/com/apideck/unify/models/components/BillPayment.java: id: 0c9784995b71 - last_write_checksum: sha1:8b90f36d7a8fc0d6130d35270c5866597b7ab08d - pristine_git_object: 38b471f2a69f8b12469f63f1fe4ee7585b84e073 + last_write_checksum: sha1:0686ad86f9429c830d4238b5af4423936a402b4e + pristine_git_object: be93dd87d9a235686f15c5bd150294947bb4738e src/main/java/com/apideck/unify/models/components/BillPaymentAllocationType.java: id: c88d0a20cd84 last_write_checksum: sha1:fbb7fc5334a750ce85e3441acd190c9b5ad64dc6 @@ -8301,8 +8305,8 @@ trackedFiles: pristine_git_object: 47c4fa6e1b4152f9cc7a873d189aa2de0956cb6a src/main/java/com/apideck/unify/models/components/BillPaymentInput.java: id: 1bd7ef1077dd - last_write_checksum: sha1:07ba8509b4e75bd616bae1f161140cec183dcf1d - pristine_git_object: bf28b465e53d78b2ead1a376fe11cb0b39f269aa + last_write_checksum: sha1:20c4dfffcd05000175b82d60b88d8e020623a467 + pristine_git_object: 2a4aa04bcd128a0fedf03122cd05e829a7f7da9f src/main/java/com/apideck/unify/models/components/BillPaymentType.java: id: f4ecefb3f6e0 last_write_checksum: sha1:8ff77c45980087a9df68fdfe9ea9bd72cd745c1a @@ -8857,8 +8861,8 @@ trackedFiles: pristine_git_object: 08f16188887c0cb689d155ea89fa1789b2a7d526 src/main/java/com/apideck/unify/models/components/CreateWebhookRequest.java: id: 4ae2466adf52 - last_write_checksum: sha1:ecd09d070e472fc95033292aced8f21511673371 - pristine_git_object: 4bce45fea987bc2d260e5b807f49767f414c36d9 + last_write_checksum: sha1:20d00474244542a25e3a8065793640b6a0bbf8f1 + pristine_git_object: 0128470830ea2f1167d679dfeee8baeb490d1c7e src/main/java/com/apideck/unify/models/components/CreateWebhookResponse.java: id: 244991d00bd7 last_write_checksum: sha1:eb62675e10d970508fa8096b7ca0ded52b814337 @@ -8869,12 +8873,12 @@ trackedFiles: pristine_git_object: 98c53d16b026c3e7d1cbd01e6f7436564ecff7cc src/main/java/com/apideck/unify/models/components/CreditNote.java: id: 79c8689c508a - last_write_checksum: sha1:99ad3a2c86111b63fd141a4d78b373c06ca660e1 - pristine_git_object: ce0d381f038f41dce367e36280109535890d287c + last_write_checksum: sha1:b857730110eb8ce8643debd433255fd6ab561fc1 + pristine_git_object: a7cc56bfa29be31f85edcfa379259ac378abd79a src/main/java/com/apideck/unify/models/components/CreditNoteInput.java: id: f60c94f5533e - last_write_checksum: sha1:e125c78f2259561173104845ac0bf79848c1855c - pristine_git_object: e469d6b907655e0d7a44513cb24dece7bcff8a21 + last_write_checksum: sha1:3fa4712fe4f1812127cc4983c7b3ce8d5b1b9026 + pristine_git_object: 414c6a175a78f2cf45edf56175c0855cb3d66800 src/main/java/com/apideck/unify/models/components/CreditNoteStatus.java: id: 95811bf5d4bd last_write_checksum: sha1:bb3f544c9a421a7b2f38b097e6877bb9a4090fb9 @@ -10281,12 +10285,12 @@ trackedFiles: pristine_git_object: b869e022ce62494b7d7bcef75956c3aa098156c4 src/main/java/com/apideck/unify/models/components/Invoice.java: id: d474a8f9c20c - last_write_checksum: sha1:d0319b22cfa32b5f27150ea4abc852af840ac52c - pristine_git_object: ffa745ad9b954abdb507559de5bdf4382f9cd0fe + last_write_checksum: sha1:1bdae33e766636c33426cf4dea2c35c094ccc10e + pristine_git_object: e7b30b4d919fa739b882cf1f27515d0f5f8609dd src/main/java/com/apideck/unify/models/components/InvoiceInput.java: id: ab4b903a394d - last_write_checksum: sha1:052043a21da71947dc16990f8c8c9487599ddf4c - pristine_git_object: 9db0b4d0dc2090f0cf204758c15420723eb41bf3 + last_write_checksum: sha1:0cb598459a12592df1b3ebe76cab945c1bae2109 + pristine_git_object: 7ae74f80b650f71b5c4741299f4185d168246044 src/main/java/com/apideck/unify/models/components/InvoiceItem.java: id: 4283c6d77d6b last_write_checksum: sha1:44c7e6eb5f4a8eba4abe818bf585248fb97a1f8a @@ -10417,12 +10421,12 @@ trackedFiles: pristine_git_object: f8109caf741d35370c22a59e4e00f397fa51ed40 src/main/java/com/apideck/unify/models/components/JournalEntry.java: id: 9aff923796cf - last_write_checksum: sha1:2f81c95c2e46f94bba49f6a98b68203a13abc96c - pristine_git_object: 66b444a68e10b66f2325df600da9fc2e80a60ee7 + last_write_checksum: sha1:5c3ab5d7e65669510ebaca9edffd112981fce6a7 + pristine_git_object: fe96907d5b39890e077f0444b3d106f3bb0d96a8 src/main/java/com/apideck/unify/models/components/JournalEntryInput.java: id: c8f02a5db39f - last_write_checksum: sha1:30eed7c13eda546a7b9e3f4d53332998d916c5d6 - pristine_git_object: 601226c19b340b580d863129398ae9c5e3fa510a + last_write_checksum: sha1:dae2e95025f984ce1c8045cab4d00808a4855760 + pristine_git_object: 8b17ea16d1d5d2172a01de98cb4d096f164f32cf src/main/java/com/apideck/unify/models/components/JournalEntryLineItem.java: id: f3d61638694f last_write_checksum: sha1:54134ba84b2f28050e5b47460cd3f91afa14c753 @@ -10645,8 +10649,8 @@ trackedFiles: pristine_git_object: 15763fed937a8b4645c8fc1b4f8ad478fb3b6309 src/main/java/com/apideck/unify/models/components/LogsFilter.java: id: a28e246ac702 - last_write_checksum: sha1:ae040b6d4cb3d208f23fca48d051c2d390bec43d - pristine_git_object: 6f893d4c77dea833f437d48fecb791cc4e134a70 + last_write_checksum: sha1:5e1dccebe8f5a5f9294f7793ffc8c52c819e8459 + pristine_git_object: 2b2cbfac24f0d22a95e1998fa5ff86e98990c30a src/main/java/com/apideck/unify/models/components/ManagedVia.java: id: 5406b0a4042d last_write_checksum: sha1:c7cf136d27cf51160a11dba9679b2a35adfed32b @@ -10795,10 +10799,14 @@ trackedFiles: id: ef35282d4c78 last_write_checksum: sha1:0a596f1db8103ea45df5a042742e47a32e81fe70 pristine_git_object: d6290641b900ba88a66ddff269b7e95b375205e5 + src/main/java/com/apideck/unify/models/components/PathMatchMode.java: + id: 94a6f195ee6a + last_write_checksum: sha1:8ebf93a8cf6d57eb708d396fe788bade270c191b + pristine_git_object: bc5a132f7d2f4cfd17fe5b5ef2355585831e0046 src/main/java/com/apideck/unify/models/components/Payment.java: id: 8c13a20e6f1c - last_write_checksum: sha1:ccb0e63edc3cbc507145f71ae7d0f2f63545edec - pristine_git_object: 8c30045637d0f458d78f4cd1187f81764b7608c8 + last_write_checksum: sha1:987054e9b22c6859c16480e508814d972b6eceff + pristine_git_object: f5079e8bc0ed4e15bb0dd03888790af618a5bd3b src/main/java/com/apideck/unify/models/components/PaymentAllocations.java: id: 8ab289f2d439 last_write_checksum: sha1:b0b9563831f3cb22fd0dacba5864292d8e3e040c @@ -10809,8 +10817,8 @@ trackedFiles: pristine_git_object: 69bde506c6b74bfefd7c19828f236d3098f26c76 src/main/java/com/apideck/unify/models/components/PaymentInput.java: id: 03323c7f69ee - last_write_checksum: sha1:2ef6e7201faa9ae639fc0d12a9db80e850e4a509 - pristine_git_object: e596c4ac5ce5a7ddd31f52554000eee2e9f47965 + last_write_checksum: sha1:504c0f2e4e2e9f19119911d7e2e6324e7ae4fecf + pristine_git_object: 185396681f25fe9e6a2f1d6087039c60b41ee0cb src/main/java/com/apideck/unify/models/components/PaymentStatus.java: id: a3a36a5b9263 last_write_checksum: sha1:50ddacf18ebd28230963e0efbeb10309bfa51505 @@ -11649,8 +11657,8 @@ trackedFiles: pristine_git_object: b1a805a9fa75fd5c8b4c96ac1657627fa6045f5a src/main/java/com/apideck/unify/models/components/UpdateWebhookRequest.java: id: 9fde6e612deb - last_write_checksum: sha1:8e2886a4219b181e0dcd092fb05ff8aa6371d3ae - pristine_git_object: 392a1e2d09fc8eac5d679beb27478332f990650d + last_write_checksum: sha1:10a579fd2576c08ccd6bc60b9c3d8341ea44e321 + pristine_git_object: 8f5d94910452c69651e95091b78224c7c5dbbeb3 src/main/java/com/apideck/unify/models/components/UpdateWebhookResponse.java: id: 3d42b8af20c2 last_write_checksum: sha1:de5267b5733ab75bd6a3e0c4910f949ba29d71a8 @@ -11697,8 +11705,8 @@ trackedFiles: pristine_git_object: 9e8e9a4b115746ffd9b7f2beec6f5c6a23d60451 src/main/java/com/apideck/unify/models/components/Webhook.java: id: 7d0136242b98 - last_write_checksum: sha1:cf905254a672b6dbb6f1556e4f30e54144e7d928 - pristine_git_object: ac5d20fbb15d3ccd51999bf345eef49c12a9ff76 + last_write_checksum: sha1:598812873a212092056768c2eb4288c6bee76381 + pristine_git_object: 2c3cf677cddbb8b85498dc214a2fc342dc6d3ca4 src/main/java/com/apideck/unify/models/components/WebhookEventType.java: id: 52b34fc99481 last_write_checksum: sha1:2ceb28f0de0f9f75a56535930547c21a321d9c1a @@ -20547,7 +20555,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "location_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "terms_id": "12345", "balance": 27500, "deposit": 0, "sub_total": 250, "total_tax": 25, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]} + application/json: {"display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "location_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "terms_id": "12345", "balance": 27500, "deposit": 0, "sub_total": 250, "total_tax": 25, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "add", "data": {"id": "12345"}} @@ -20604,7 +20612,7 @@ examples: x-apideck-company-id: "12345" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "location_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "terms": "Net 30 days", "terms_id": "12345", "balance": 27500, "deposit": 0, "sub_total": 250, "total_tax": 25, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "tracking_categories": [{"id": "123456", "name": "New York"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "subsidiary": {"id": "12345", "display_id": "123456", "name": "Acme Inc."}, "location_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "terms": "Net 30 days", "terms_id": "12345", "balance": 27500, "deposit": 0, "sub_total": 250, "total_tax": 25, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "tracking_categories": [{"id": "123456", "name": "New York"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror", "downstream_errors": [{"message": "Account code '100' has been archived or deleted", "detail": "Each line item must reference a valid account", "code": "VALIDATION_ERROR"}]} "401": @@ -20656,7 +20664,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "location_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "terms_id": "12345", "balance": 27500, "deposit": 0, "sub_total": 250, "total_tax": 25, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]} + application/json: {"display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "location_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "terms_id": "12345", "balance": 27500, "deposit": 0, "sub_total": 250, "total_tax": 25, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "update", "data": {"id": "12345"}} @@ -20817,7 +20825,7 @@ examples: x-apideck-service-id: "salesforce" x-apideck-company-id: "12345" requestBody: - application/json: {"display_id": "123456", "type": "service", "number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "location_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "terms_id": "12345", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": null, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "123456", "type": "service", "number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "location_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "terms_id": "12345", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": null, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoices", "operation": "add", "data": {"id": "12345", "downstream_id": "12345"}} @@ -20874,7 +20882,7 @@ examples: x-apideck-company-id: "12345" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoices", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "123456", "type": "service", "number": "OIT00546", "customer": null, "company_id": "12345", "location_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "terms_id": "12345", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoices", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "123456", "type": "service", "number": "OIT00546", "customer": null, "company_id": "12345", "subsidiary": null, "location_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "terms_id": "12345", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror", "downstream_errors": [{"message": "Account code '100' has been archived or deleted", "detail": "Each line item must reference a valid account", "code": "VALIDATION_ERROR"}]} "401": @@ -20926,7 +20934,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "123456", "type": "service", "number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "location_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "terms_id": "12345", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "123456", "type": "service", "number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "location_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "terms_id": "12345", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoices", "operation": "update", "data": {"id": "12345", "downstream_id": "12345"}} @@ -21631,7 +21639,7 @@ examples: x-apideck-service-id: "salesforce" x-apideck-company-id: "12345" requestBody: - application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "location_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "terms_id": "12345", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "location_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "terms_id": "12345", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "add", "data": {"id": "12345"}} @@ -21688,7 +21696,7 @@ examples: x-apideck-company-id: "12345" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "one", "data": {"id": "123456", "number": "OIT00546", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "company_id": "12345", "location_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "allocations": [{"id": "123456", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "terms_id": "12345", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "one", "data": {"id": "123456", "number": "OIT00546", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "company_id": "12345", "subsidiary": {"id": "12345", "display_id": "123456", "name": "Acme Inc."}, "location_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "allocations": [{"id": "123456", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "terms_id": "12345", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror", "downstream_errors": [{"message": "Account code '100' has been archived or deleted", "detail": "Each line item must reference a valid account", "code": "VALIDATION_ERROR"}]} "401": @@ -21740,7 +21748,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "location_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "terms_id": "12345", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "location_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "terms_id": "12345", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "update", "data": {"id": "12345"}} @@ -22443,7 +22451,7 @@ examples: x-apideck-service-id: "salesforce" x-apideck-company-id: "12345" requestBody: - application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "add", "data": {"id": "12345"}} @@ -22500,7 +22508,7 @@ examples: x-apideck-company-id: "12345" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "company_id": "12345", "subsidiary": {"id": "12345", "display_id": "123456", "name": "Acme Inc."}, "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror", "downstream_errors": [{"message": "Account code '100' has been archived or deleted", "detail": "Each line item must reference a valid account", "code": "VALIDATION_ERROR"}]} "401": @@ -22553,7 +22561,7 @@ examples: x-apideck-service-id: "salesforce" x-apideck-company-id: "12345" requestBody: - application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "update", "data": {"id": "12345"}} @@ -22871,7 +22879,7 @@ examples: x-apideck-service-id: "salesforce" x-apideck-company-id: "12345" requestBody: - application/json: {"display_id": "12345", "title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}], "accounting_period": "01-24", "tax_inclusive": true, "source_type": "manual", "source_id": "12345", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "12345", "title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "subsidiary": null, "line_items": [{"description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}], "accounting_period": "01-24", "tax_inclusive": true, "source_type": "manual", "source_id": "12345", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "journal-entries", "operation": "add", "data": {"id": "12345"}} @@ -22928,7 +22936,7 @@ examples: x-apideck-company-id: "12345" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "journal-entries", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "12345", "title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"id": "12345", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}], "accounting_period": "01-24", "tax_inclusive": true, "source_type": "manual", "source_id": "12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "journal-entries", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "12345", "title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "subsidiary": {"id": "12345", "display_id": "123456", "name": "Acme Inc."}, "line_items": [{"id": "12345", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}], "accounting_period": "01-24", "tax_inclusive": true, "source_type": "manual", "source_id": "12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror", "downstream_errors": [{"message": "Account code '100' has been archived or deleted", "detail": "Each line item must reference a valid account", "code": "VALIDATION_ERROR"}]} "401": @@ -22981,7 +22989,7 @@ examples: x-apideck-service-id: "salesforce" x-apideck-company-id: "12345" requestBody: - application/json: {"display_id": "12345", "title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}], "accounting_period": "01-24", "tax_inclusive": true, "source_type": "manual", "source_id": "12345", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "12345", "title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "line_items": [{"description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}], "accounting_period": "01-24", "tax_inclusive": true, "source_type": "manual", "source_id": "12345", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "journal-entries", "operation": "update", "data": {"id": "12345"}} @@ -24792,7 +24800,7 @@ examples: x-apideck-service-id: "salesforce" x-apideck-company-id: "12345" requestBody: - application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "add", "data": {"id": "12345"}} @@ -24849,7 +24857,7 @@ examples: x-apideck-company-id: "12345" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "subsidiary": {"id": "12345", "display_id": "123456", "name": "Acme Inc."}, "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror", "downstream_errors": [{"message": "Account code '100' has been archived or deleted", "detail": "Each line item must reference a valid account", "code": "VALIDATION_ERROR"}]} "401": @@ -24901,7 +24909,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "update", "data": {"id": "12345"}} @@ -34431,7 +34439,7 @@ examples: speakeasy-default-vault-logs-all: parameters: query: - filter: {"connector_id": "crm+salesforce", "status_code": 201, "status_codes": [200, 201, 204], "exclude_unified_apis": "vault,proxy"} + filter: {"connector_id": "crm+salesforce", "path": "/crm/contacts", "path_match_mode": "CONTAINS", "http_method": "GET", "http_methods": ["GET", "POST"], "start_date": "2024-01-01T00:00:00.000Z", "end_date": "2024-01-31T23:59:59.999Z", "status_code": 201, "status_codes": [200, 201, 204], "exclude_unified_apis": "vault,proxy"} limit: 20 header: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" @@ -36529,6 +36537,7 @@ examples: application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} examplesVersion: 1.0.2 generatedTests: {} +releaseNotes: "## Java SDK Changes:\n* `apideck.accounting.bills.list()`: `response.data[].subsidiary` **Added**\n* `apideck.accounting.bills.create()`: \n * `request.bill.subsidiary` **Added**\n* `apideck.accounting.bills.get()`: `response.data.subsidiary` **Added**\n* `apideck.accounting.bills.update()`: \n * `request.bill.subsidiary` **Added**\n* `apideck.accounting.invoices.list()`: `response.data[].subsidiary` **Added**\n* `apideck.accounting.invoices.create()`: \n * `request.invoice.subsidiary` **Added**\n* `apideck.accounting.invoices.get()`: `response.data.subsidiary` **Added**\n* `apideck.accounting.invoices.update()`: \n * `request.invoice.subsidiary` **Added**\n* `apideck.accounting.creditNotes.list()`: `response.data[].subsidiary` **Added**\n* `apideck.accounting.creditNotes.create()`: \n * `request.creditNote.subsidiary` **Added**\n* `apideck.accounting.creditNotes.get()`: `response.data.subsidiary` **Added**\n* `apideck.accounting.creditNotes.update()`: \n * `request.creditNote.subsidiary` **Added**\n* `apideck.accounting.payments.list()`: `response.data[].subsidiary` **Added**\n* `apideck.accounting.payments.create()`: \n * `request.payment.subsidiary` **Added**\n* `apideck.accounting.payments.get()`: `response.data.subsidiary` **Added**\n* `apideck.accounting.payments.update()`: \n * `request.payment.subsidiary` **Added**\n* `apideck.accounting.journalEntries.list()`: `response.data[].subsidiary` **Added**\n* `apideck.accounting.journalEntries.create()`: \n * `request.journalEntry.subsidiary` **Added**\n* `apideck.accounting.journalEntries.get()`: `response.data.subsidiary` **Added**\n* `apideck.accounting.journalEntries.update()`: \n * `request.journalEntry.subsidiary` **Added**\n* `apideck.accounting.billPayments.list()`: `response.data[].subsidiary` **Added**\n* `apideck.accounting.billPayments.create()`: \n * `request.billPayment.subsidiary` **Added**\n* `apideck.accounting.billPayments.get()`: `response.data.subsidiary` **Added**\n* `apideck.accounting.billPayments.update()`: \n * `request.billPayment.subsidiary` **Added**\n* `apideck.vault.logs.list()`: \n * `request.filter` **Changed**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 0a5368771..b12e2d924 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 0.31.13 + version: 0.31.14 additionalDependencies: [] additionalPlugins: [] artifactID: unify diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index e39cdfc9e..2f3d17cbe 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,20 @@ -speakeasyVersion: 1.764.1 +speakeasyVersion: 1.770.0 sources: Apideck-OAS: sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:b81e0386512a8d038e9991c10330e5e8442f85793238036834bf0ffe02094425 - sourceBlobDigest: sha256:3248f16ef5a9831cf0bd405946124fd9934db2298976755b312f97c7a098106f + sourceRevisionDigest: sha256:14dadade418601422febf798ee42b89b8fed3515d5a57241994135b963a0a05e + sourceBlobDigest: sha256:536344aa6ed99304bdeed6f3f42b2bc4c6feb58d6c5f5327260ee6c656cbbbc2 tags: - latest - - 10.24.34 + - 10.24.39 targets: apideck: source: Apideck-OAS sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:b81e0386512a8d038e9991c10330e5e8442f85793238036834bf0ffe02094425 - sourceBlobDigest: sha256:3248f16ef5a9831cf0bd405946124fd9934db2298976755b312f97c7a098106f + sourceRevisionDigest: sha256:14dadade418601422febf798ee42b89b8fed3515d5a57241994135b963a0a05e + sourceBlobDigest: sha256:536344aa6ed99304bdeed6f3f42b2bc4c6feb58d6c5f5327260ee6c656cbbbc2 codeSamplesNamespace: apideck-oas-java-code-samples - codeSamplesRevisionDigest: sha256:3eb096c117ca290db95b5ef48b2c711fc597cc7d640cfa4af1c6cf92a90a707a + codeSamplesRevisionDigest: sha256:37b4730ac169905fdfef0789b32b9c37c87dc96eb82fe68b18e91668c21af50d workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 937fbff46..5bfa6d263 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.apideck:unify:0.31.13' +implementation 'com.apideck:unify:0.31.14' ``` Maven: @@ -59,7 +59,7 @@ Maven: com.apideck unify - 0.31.13 + 0.31.14 ``` diff --git a/RELEASES.md b/RELEASES.md index 545c2a51b..f800f7022 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -868,4 +868,14 @@ Based on: ### Generated - [java v0.31.13] . ### Releases -- [Maven Central v0.31.13] https://central.sonatype.com/artifact/com.apideck/unify/0.31.13 - . \ No newline at end of file +- [Maven Central v0.31.13] https://central.sonatype.com/artifact/com.apideck/unify/0.31.13 - . + +## 2026-06-04 05:28:34 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.770.0 (2.893.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.31.14] . +### Releases +- [Maven Central v0.31.14] https://central.sonatype.com/artifact/com.apideck/unify/0.31.14 - . \ No newline at end of file diff --git a/docs/models/components/Bill.md b/docs/models/components/Bill.md index cf17552aa..d16dfbeb3 100644 --- a/docs/models/components/Bill.md +++ b/docs/models/components/Bill.md @@ -11,6 +11,7 @@ | `billNumber` | *JsonNullable\* | :heavy_minus_sign: | Reference to supplier bill number | 10001 | | `supplier` | [JsonNullable\](../../models/components/LinkedSupplier.md) | :heavy_minus_sign: | The supplier this entity is linked to. | | | `companyId` | *JsonNullable\* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiary.md) | :heavy_minus_sign: | N/A | | | `locationId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the location | 12345 | | `departmentId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the department | 12345 | | `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | diff --git a/docs/models/components/BillInput.md b/docs/models/components/BillInput.md index 05eb6f00d..b4ba901dd 100644 --- a/docs/models/components/BillInput.md +++ b/docs/models/components/BillInput.md @@ -9,6 +9,7 @@ | `billNumber` | *JsonNullable\* | :heavy_minus_sign: | Reference to supplier bill number | 10001 | | `supplier` | [JsonNullable\](../../models/components/LinkedSupplierInput.md) | :heavy_minus_sign: | The supplier this entity is linked to. | | | `companyId` | *JsonNullable\* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiaryInput.md) | :heavy_minus_sign: | N/A | | | `locationId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the location | 12345 | | `departmentId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the department | 12345 | | `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | diff --git a/docs/models/components/BillPayment.md b/docs/models/components/BillPayment.md index 0fea4e120..5dd801d58 100644 --- a/docs/models/components/BillPayment.md +++ b/docs/models/components/BillPayment.md @@ -18,6 +18,7 @@ | `transactionDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | | `supplier` | [JsonNullable\](../../models/components/LinkedSupplier.md) | :heavy_minus_sign: | The supplier this entity is linked to. | | | `companyId` | *JsonNullable\* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiary.md) | :heavy_minus_sign: | N/A | | | `reconciled` | *JsonNullable\* | :heavy_minus_sign: | Indicates if the transaction has been reconciled. | true | | `status` | [Optional\](../../models/components/PaymentStatus.md) | :heavy_minus_sign: | Status of payment | authorised | | `type` | [Optional\](../../models/components/BillPaymentType.md) | :heavy_minus_sign: | Type of payment | accounts_payable | diff --git a/docs/models/components/BillPaymentInput.md b/docs/models/components/BillPaymentInput.md index 263777b3a..0ea1a25ee 100644 --- a/docs/models/components/BillPaymentInput.md +++ b/docs/models/components/BillPaymentInput.md @@ -16,6 +16,7 @@ | `transactionDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | | `supplier` | [JsonNullable\](../../models/components/LinkedSupplierInput.md) | :heavy_minus_sign: | The supplier this entity is linked to. | | | `companyId` | *JsonNullable\* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiaryInput.md) | :heavy_minus_sign: | N/A | | | `reconciled` | *JsonNullable\* | :heavy_minus_sign: | Indicates if the transaction has been reconciled. | true | | `status` | [Optional\](../../models/components/PaymentStatus.md) | :heavy_minus_sign: | Status of payment | authorised | | `type` | [Optional\](../../models/components/BillPaymentType.md) | :heavy_minus_sign: | Type of payment | accounts_payable | diff --git a/docs/models/components/CreateWebhookRequest.md b/docs/models/components/CreateWebhookRequest.md index 01fc321ac..c5330baa1 100644 --- a/docs/models/components/CreateWebhookRequest.md +++ b/docs/models/components/CreateWebhookRequest.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `description` | *JsonNullable\* | :heavy_minus_sign: | A description of the object. | A description | -| `unifiedApi` | [UnifiedApiId](../../models/components/UnifiedApiId.md) | :heavy_check_mark: | Name of Apideck Unified API | crm | -| `status` | [Status](../../models/components/Status.md) | :heavy_check_mark: | The status of the webhook. | enabled | -| `deliveryUrl` | *String* | :heavy_check_mark: | The delivery url of the webhook endpoint. | https://example.com/my/webhook/endpoint | -| `events` | List\<[WebhookEventType](../../models/components/WebhookEventType.md)> | :heavy_check_mark: | The list of subscribed events for this webhook. [`*`] indicates that all events are enabled. | [
"vault.connection.created",
"vault.connection.updated"
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `description` | *JsonNullable\* | :heavy_minus_sign: | A description of the object. | A description | +| `unifiedApi` | [UnifiedApiId](../../models/components/UnifiedApiId.md) | :heavy_check_mark: | Name of Apideck Unified API | crm | +| `status` | [Status](../../models/components/Status.md) | :heavy_check_mark: | The status of the webhook. | enabled | +| `deliveryUrl` | *String* | :heavy_check_mark: | The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the delivery is recorded as failed. | https://example.com/my/webhook/endpoint | +| `events` | List\<[WebhookEventType](../../models/components/WebhookEventType.md)> | :heavy_check_mark: | The list of subscribed events for this webhook. [`*`] indicates that all events are enabled. | [
"vault.connection.created",
"vault.connection.updated"
] | \ No newline at end of file diff --git a/docs/models/components/CreditNote.md b/docs/models/components/CreditNote.md index 41b8cc13c..b8ec17cda 100644 --- a/docs/models/components/CreditNote.md +++ b/docs/models/components/CreditNote.md @@ -9,6 +9,7 @@ | `number` | *JsonNullable\* | :heavy_minus_sign: | Credit note number. | OIT00546 | | `customer` | [JsonNullable\](../../models/components/LinkedCustomer.md) | :heavy_minus_sign: | The customer this entity is linked to. | | | `companyId` | *JsonNullable\* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiary.md) | :heavy_minus_sign: | N/A | | | `locationId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the location | 12345 | | `departmentId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the department | 12345 | | `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | diff --git a/docs/models/components/CreditNoteInput.md b/docs/models/components/CreditNoteInput.md index 5a8e853eb..513cd18a6 100644 --- a/docs/models/components/CreditNoteInput.md +++ b/docs/models/components/CreditNoteInput.md @@ -8,6 +8,7 @@ | `number` | *JsonNullable\* | :heavy_minus_sign: | Credit note number. | OIT00546 | | `customer` | [JsonNullable\](../../models/components/LinkedCustomerInput.md) | :heavy_minus_sign: | The customer this entity is linked to. | | | `companyId` | *JsonNullable\* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiaryInput.md) | :heavy_minus_sign: | N/A | | | `locationId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the location | 12345 | | `departmentId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the department | 12345 | | `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | diff --git a/docs/models/components/Invoice.md b/docs/models/components/Invoice.md index b84cf5b1e..7e0a890ef 100644 --- a/docs/models/components/Invoice.md +++ b/docs/models/components/Invoice.md @@ -12,6 +12,7 @@ | `number` | *JsonNullable\* | :heavy_minus_sign: | Invoice number. | OIT00546 | | `customer` | [JsonNullable\](../../models/components/LinkedCustomer.md) | :heavy_minus_sign: | The customer this entity is linked to. | | | `companyId` | *JsonNullable\* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiary.md) | :heavy_minus_sign: | N/A | | | `locationId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the location | 12345 | | `departmentId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the department | 12345 | | `invoiceDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | Date invoice was issued - YYYY-MM-DD. | 2020-09-30 | diff --git a/docs/models/components/InvoiceInput.md b/docs/models/components/InvoiceInput.md index 986ad2bba..622699b45 100644 --- a/docs/models/components/InvoiceInput.md +++ b/docs/models/components/InvoiceInput.md @@ -10,6 +10,7 @@ | `number` | *JsonNullable\* | :heavy_minus_sign: | Invoice number. | OIT00546 | | `customer` | [JsonNullable\](../../models/components/LinkedCustomerInput.md) | :heavy_minus_sign: | The customer this entity is linked to. | | | `companyId` | *JsonNullable\* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiaryInput.md) | :heavy_minus_sign: | N/A | | | `locationId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the location | 12345 | | `departmentId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the department | 12345 | | `invoiceDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | Date invoice was issued - YYYY-MM-DD. | 2020-09-30 | diff --git a/docs/models/components/JournalEntry.md b/docs/models/components/JournalEntry.md index e59bede19..50e7b8fb0 100644 --- a/docs/models/components/JournalEntry.md +++ b/docs/models/components/JournalEntry.md @@ -12,6 +12,7 @@ | `currencyRate` | *JsonNullable\* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | | `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | | `companyId` | *JsonNullable\* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiary.md) | :heavy_minus_sign: | N/A | | | `lineItems` | List\<[JournalEntryLineItem](../../models/components/JournalEntryLineItem.md)> | :heavy_minus_sign: | Requires a minimum of 2 line items that sum to 0 | | | `status` | [JsonNullable\](../../models/components/JournalEntryStatus.md) | :heavy_minus_sign: | Journal entry status | draft | | `memo` | *JsonNullable\* | :heavy_minus_sign: | Reference for the journal entry. | Thank you for your business and have a great day! | diff --git a/docs/models/components/JournalEntryInput.md b/docs/models/components/JournalEntryInput.md index afd200b02..5c0a6bdd3 100644 --- a/docs/models/components/JournalEntryInput.md +++ b/docs/models/components/JournalEntryInput.md @@ -10,6 +10,7 @@ | `currencyRate` | *JsonNullable\* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | | `currency` | [JsonNullable\](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | | `companyId` | *JsonNullable\* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiaryInput.md) | :heavy_minus_sign: | N/A | | | `lineItems` | List\<[JournalEntryLineItemInput](../../models/components/JournalEntryLineItemInput.md)> | :heavy_minus_sign: | Requires a minimum of 2 line items that sum to 0 | | | `status` | [JsonNullable\](../../models/components/JournalEntryStatus.md) | :heavy_minus_sign: | Journal entry status | draft | | `memo` | *JsonNullable\* | :heavy_minus_sign: | Reference for the journal entry. | Thank you for your business and have a great day! | diff --git a/docs/models/components/LogsFilter.md b/docs/models/components/LogsFilter.md index 990a44eb2..55d8b9ea9 100644 --- a/docs/models/components/LogsFilter.md +++ b/docs/models/components/LogsFilter.md @@ -3,9 +3,15 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `connectorId` | *JsonNullable\* | :heavy_minus_sign: | N/A | crm+salesforce | -| `statusCode` | *JsonNullable\* | :heavy_minus_sign: | Filter by a single HTTP status code. For backward compatibility - use status_codes for multiple values. | 201 | -| `statusCodes` | List\<*double*> | :heavy_minus_sign: | Filter by multiple HTTP status codes. Values must be between 100-599. Maximum 50 status codes allowed. | [
200,
201,
204
] | -| `excludeUnifiedApis` | *JsonNullable\* | :heavy_minus_sign: | N/A | vault,proxy | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `connectorId` | *JsonNullable\* | :heavy_minus_sign: | Filter by connector ID. Known limitation: this field is not currently applied at the log query resolver — connector filtering is performed via the service identifier internally (see GH-10099). | crm+salesforce | +| `path` | *JsonNullable\* | :heavy_minus_sign: | Filter by request path. Match behavior is controlled by path_match_mode (defaults to CONTAINS). | /crm/contacts | +| `pathMatchMode` | [JsonNullable\](../../models/components/PathMatchMode.md) | :heavy_minus_sign: | How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor the match; EXACT requires the whole path to match. Only applied when path is set. | | +| `httpMethod` | *JsonNullable\* | :heavy_minus_sign: | Filter by a single HTTP method. | GET | +| `httpMethods` | List\<*String*> | :heavy_minus_sign: | Filter by multiple HTTP methods. | [
"GET",
"POST"
] | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Filter logs at or after this ISO 8601 date-time (inclusive). | 2024-01-01T00:00:00.000Z | +| `endDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Filter logs at or before this ISO 8601 date-time (inclusive). Must be on or after start_date. | 2024-01-31T23:59:59.999Z | +| `statusCode` | *JsonNullable\* | :heavy_minus_sign: | Filter by a single HTTP status code. For backward compatibility - use status_codes for multiple values. | 201 | +| `statusCodes` | List\<*double*> | :heavy_minus_sign: | Filter by multiple HTTP status codes. Values must be between 100-599. Maximum 50 status codes allowed. | [
200,
201,
204
] | +| `excludeUnifiedApis` | *JsonNullable\* | :heavy_minus_sign: | N/A | vault,proxy | \ No newline at end of file diff --git a/docs/models/components/PathMatchMode.md b/docs/models/components/PathMatchMode.md new file mode 100644 index 000000000..09024a42e --- /dev/null +++ b/docs/models/components/PathMatchMode.md @@ -0,0 +1,24 @@ +# PathMatchMode + +How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor the match; EXACT requires the whole path to match. Only applied when path is set. + +## Example Usage + +```java +import com.apideck.unify.models.components.PathMatchMode; + +PathMatchMode value = PathMatchMode.CONTAINS; + +// Open enum: use .of() to create instances from custom string values +PathMatchMode custom = PathMatchMode.of("custom_value"); +``` + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `CONTAINS` | CONTAINS | +| `STARTS_WITH` | STARTS_WITH | +| `ENDS_WITH` | ENDS_WITH | +| `EXACT` | EXACT | \ No newline at end of file diff --git a/docs/models/components/Payment.md b/docs/models/components/Payment.md index ee5a91c09..0d99b0d59 100644 --- a/docs/models/components/Payment.md +++ b/docs/models/components/Payment.md @@ -21,6 +21,7 @@ | `customer` | [JsonNullable\](../../models/components/LinkedCustomer.md) | :heavy_minus_sign: | The customer this entity is linked to. | | | ~~`supplier`~~ | [JsonNullable\](../../models/components/DeprecatedLinkedSupplier.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This field is deprecated and may be removed in a future version..

The supplier this entity is linked to. | | | `companyId` | *JsonNullable\* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiary.md) | :heavy_minus_sign: | N/A | | | `reconciled` | *JsonNullable\* | :heavy_minus_sign: | Indicates if the transaction has been reconciled. | true | | `status` | [Optional\](../../models/components/PaymentStatus.md) | :heavy_minus_sign: | Status of payment | authorised | | `type` | [Optional\](../../models/components/PaymentType.md) | :heavy_minus_sign: | Type of payment | accounts_receivable | diff --git a/docs/models/components/PaymentInput.md b/docs/models/components/PaymentInput.md index 490c464d0..1e5256b03 100644 --- a/docs/models/components/PaymentInput.md +++ b/docs/models/components/PaymentInput.md @@ -19,6 +19,7 @@ | `customer` | [JsonNullable\](../../models/components/LinkedCustomerInput.md) | :heavy_minus_sign: | The customer this entity is linked to. | | | ~~`supplier`~~ | [JsonNullable\](../../models/components/DeprecatedLinkedSupplierInput.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This field is deprecated and may be removed in a future version..

The supplier this entity is linked to. | | | `companyId` | *JsonNullable\* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiaryInput.md) | :heavy_minus_sign: | N/A | | | `reconciled` | *JsonNullable\* | :heavy_minus_sign: | Indicates if the transaction has been reconciled. | true | | `status` | [Optional\](../../models/components/PaymentStatus.md) | :heavy_minus_sign: | Status of payment | authorised | | `type` | [Optional\](../../models/components/PaymentType.md) | :heavy_minus_sign: | Type of payment | accounts_receivable | diff --git a/docs/models/components/UpdateWebhookRequest.md b/docs/models/components/UpdateWebhookRequest.md index aacb249fd..2207959fb 100644 --- a/docs/models/components/UpdateWebhookRequest.md +++ b/docs/models/components/UpdateWebhookRequest.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `description` | *JsonNullable\* | :heavy_minus_sign: | A description of the object. | A description | -| `status` | [Optional\](../../models/components/Status.md) | :heavy_minus_sign: | The status of the webhook. | enabled | -| `deliveryUrl` | *Optional\* | :heavy_minus_sign: | The delivery url of the webhook endpoint. | https://example.com/my/webhook/endpoint | -| `events` | List\<[WebhookEventType](../../models/components/WebhookEventType.md)> | :heavy_minus_sign: | The list of subscribed events for this webhook. [`*`] indicates that all events are enabled. | [
"vault.connection.created",
"vault.connection.updated"
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `description` | *JsonNullable\* | :heavy_minus_sign: | A description of the object. | A description | +| `status` | [Optional\](../../models/components/Status.md) | :heavy_minus_sign: | The status of the webhook. | enabled | +| `deliveryUrl` | *Optional\* | :heavy_minus_sign: | The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the delivery is recorded as failed. | https://example.com/my/webhook/endpoint | +| `events` | List\<[WebhookEventType](../../models/components/WebhookEventType.md)> | :heavy_minus_sign: | The list of subscribed events for this webhook. [`*`] indicates that all events are enabled. | [
"vault.connection.created",
"vault.connection.updated"
] | \ No newline at end of file diff --git a/docs/models/components/Webhook.md b/docs/models/components/Webhook.md index 8c1966a9c..42243949f 100644 --- a/docs/models/components/Webhook.md +++ b/docs/models/components/Webhook.md @@ -10,7 +10,7 @@ | `unifiedApi` | [UnifiedApiId](../../models/components/UnifiedApiId.md) | :heavy_check_mark: | Name of Apideck Unified API | crm | | `status` | [Status](../../models/components/Status.md) | :heavy_check_mark: | The status of the webhook. | enabled | | `disabledReason` | [Optional\](../../models/components/DisabledReason.md) | :heavy_minus_sign: | Indicates why the webhook has been disabled. `retry_limit`: webhook reached its retry limit. `usage_limit`: account is over its usage limit. `delivery_url_validation_failed`: delivery URL failed validation during webhook creation or update. | retry_limit | -| `deliveryUrl` | *String* | :heavy_check_mark: | The delivery url of the webhook endpoint. | https://example.com/my/webhook/endpoint | +| `deliveryUrl` | *String* | :heavy_check_mark: | The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the delivery is recorded as failed. | https://example.com/my/webhook/endpoint | | `executeBaseUrl` | *String* | :heavy_check_mark: | The Unify Base URL events from connectors will be sent to after service id is appended. | https://unify.apideck.com/webhook/webhooks/1234/execute | | `events` | List\<[WebhookEventType](../../models/components/WebhookEventType.md)> | :heavy_check_mark: | The list of subscribed events for this webhook. [`*`] indicates that all events are enabled. | [
"vault.connection.created",
"vault.connection.updated"
] | | `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index 7da5dd66a..a1947e226 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -75,6 +75,8 @@ Create a webhook subscription to receive events. **Delivery URL Validation**: The provided `delivery_url` will be validated synchronously by sending an HTTP POST request with an HMAC signature. If validation fails (network error, timeout, non-2xx response), the webhook will still be created but with `status: "disabled"` and `disabled_reason: "delivery_url_validation_failed"`. +**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly (HTTP 2xx) and defer work asynchronously. + **Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the webhook is active. @@ -204,6 +206,8 @@ Update a webhook subscription. **Delivery URL Validation**: When updating the `delivery_url`, it will be validated synchronously by sending an HTTP POST request with an HMAC signature. If validation fails (network error, timeout, non-2xx response), the webhook will still be updated but with `status: "disabled"` and `disabled_reason: "delivery_url_validation_failed"`. Validation only occurs when the URL is changed. +**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly (HTTP 2xx) and defer work asynchronously. + **Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the webhook is active. diff --git a/gradle.properties b/gradle.properties index 835460205..994fa0afa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.apideck artifactId=unify -version=0.31.13 +version=0.31.14 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/src/main/java/com/apideck/unify/AsyncWebhooks.java b/src/main/java/com/apideck/unify/AsyncWebhooks.java index 2cec95a9b..6662d507d 100644 --- a/src/main/java/com/apideck/unify/AsyncWebhooks.java +++ b/src/main/java/com/apideck/unify/AsyncWebhooks.java @@ -120,6 +120,11 @@ public CompletableFuture list( * response), the webhook will still be created but with `status: "disabled"` and `disabled_reason: * "delivery_url_validation_failed"`. * + *

**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not + * respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on + * the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly + * (HTTP 2xx) and defer work asynchronously. + * *

**Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the * webhook is active. * @@ -139,6 +144,11 @@ public WebhookWebhooksAddRequestBuilder create() { * response), the webhook will still be created but with `status: "disabled"` and `disabled_reason: * "delivery_url_validation_failed"`. * + *

**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not + * respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on + * the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly + * (HTTP 2xx) and defer work asynchronously. + * *

**Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the * webhook is active. * @@ -159,6 +169,11 @@ public CompletableFuture create(CreateWebhookRequest * response), the webhook will still be created but with `status: "disabled"` and `disabled_reason: * "delivery_url_validation_failed"`. * + *

**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not + * respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on + * the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly + * (HTTP 2xx) and defer work asynchronously. + * *

**Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the * webhook is active. * @@ -246,6 +261,11 @@ public CompletableFuture get( * non-2xx response), the webhook will still be updated but with `status: "disabled"` and * `disabled_reason: "delivery_url_validation_failed"`. Validation only occurs when the URL is changed. * + *

**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not + * respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on + * the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly + * (HTTP 2xx) and defer work asynchronously. + * *

**Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the * webhook is active. * @@ -265,6 +285,11 @@ public WebhookWebhooksUpdateRequestBuilder update() { * non-2xx response), the webhook will still be updated but with `status: "disabled"` and * `disabled_reason: "delivery_url_validation_failed"`. Validation only occurs when the URL is changed. * + *

**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not + * respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on + * the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly + * (HTTP 2xx) and defer work asynchronously. + * *

**Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the * webhook is active. * @@ -288,6 +313,11 @@ public CompletableFuture update(String id, Update * non-2xx response), the webhook will still be updated but with `status: "disabled"` and * `disabled_reason: "delivery_url_validation_failed"`. Validation only occurs when the URL is changed. * + *

**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not + * respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on + * the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly + * (HTTP 2xx) and defer work asynchronously. + * *

**Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the * webhook is active. * diff --git a/src/main/java/com/apideck/unify/SDKConfiguration.java b/src/main/java/com/apideck/unify/SDKConfiguration.java index 79e9a1922..cb4943f5f 100644 --- a/src/main/java/com/apideck/unify/SDKConfiguration.java +++ b/src/main/java/com/apideck/unify/SDKConfiguration.java @@ -20,9 +20,9 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; - public static final String OPENAPI_DOC_VERSION = "10.24.34"; - public static final String SDK_VERSION = "0.31.13"; - public static final String GEN_VERSION = "2.885.1"; + public static final String OPENAPI_DOC_VERSION = "10.24.39"; + public static final String SDK_VERSION = "0.31.14"; + public static final String GEN_VERSION = "2.893.0"; private static final String BASE_PACKAGE = "com.apideck.unify"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/com/apideck/unify/Webhooks.java b/src/main/java/com/apideck/unify/Webhooks.java index bc9d95e6e..cf91f0b99 100644 --- a/src/main/java/com/apideck/unify/Webhooks.java +++ b/src/main/java/com/apideck/unify/Webhooks.java @@ -115,6 +115,11 @@ public WebhookWebhooksAllResponse list( * response), the webhook will still be created but with `status: "disabled"` and `disabled_reason: * "delivery_url_validation_failed"`. * + *

**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not + * respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on + * the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly + * (HTTP 2xx) and defer work asynchronously. + * *

**Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the * webhook is active. * @@ -134,6 +139,11 @@ public WebhookWebhooksAddRequestBuilder create() { * response), the webhook will still be created but with `status: "disabled"` and `disabled_reason: * "delivery_url_validation_failed"`. * + *

**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not + * respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on + * the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly + * (HTTP 2xx) and defer work asynchronously. + * *

**Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the * webhook is active. * @@ -155,6 +165,11 @@ public WebhookWebhooksAddResponse create(CreateWebhookRequest createWebhookReque * response), the webhook will still be created but with `status: "disabled"` and `disabled_reason: * "delivery_url_validation_failed"`. * + *

**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not + * respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on + * the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly + * (HTTP 2xx) and defer work asynchronously. + * *

**Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the * webhook is active. * @@ -237,6 +252,11 @@ public WebhookWebhooksOneResponse get( * non-2xx response), the webhook will still be updated but with `status: "disabled"` and * `disabled_reason: "delivery_url_validation_failed"`. Validation only occurs when the URL is changed. * + *

**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not + * respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on + * the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly + * (HTTP 2xx) and defer work asynchronously. + * *

**Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the * webhook is active. * @@ -256,6 +276,11 @@ public WebhookWebhooksUpdateRequestBuilder update() { * non-2xx response), the webhook will still be updated but with `status: "disabled"` and * `disabled_reason: "delivery_url_validation_failed"`. Validation only occurs when the URL is changed. * + *

**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not + * respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on + * the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly + * (HTTP 2xx) and defer work asynchronously. + * *

**Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the * webhook is active. * @@ -279,6 +304,11 @@ public WebhookWebhooksUpdateResponse update(String id, UpdateWebhookRequest upda * non-2xx response), the webhook will still be updated but with `status: "disabled"` and * `disabled_reason: "delivery_url_validation_failed"`. Validation only occurs when the URL is changed. * + *

**Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not + * respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on + * the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly + * (HTTP 2xx) and defer work asynchronously. + * *

**Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the * webhook is active. * diff --git a/src/main/java/com/apideck/unify/models/components/Bill.java b/src/main/java/com/apideck/unify/models/components/Bill.java index bda204236..f71d4d47a 100644 --- a/src/main/java/com/apideck/unify/models/components/Bill.java +++ b/src/main/java/com/apideck/unify/models/components/Bill.java @@ -66,6 +66,11 @@ public class Bill { @JsonProperty("company_id") private JsonNullable companyId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsidiary") + private JsonNullable subsidiary; + /** * The ID of the location */ @@ -390,6 +395,7 @@ public Bill( @JsonProperty("bill_number") JsonNullable billNumber, @JsonProperty("supplier") JsonNullable supplier, @JsonProperty("company_id") JsonNullable companyId, + @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("location_id") JsonNullable locationId, @JsonProperty("department_id") JsonNullable departmentId, @JsonProperty("currency") JsonNullable currency, @@ -442,6 +448,7 @@ public Bill( Utils.checkNotNull(billNumber, "billNumber"); Utils.checkNotNull(supplier, "supplier"); Utils.checkNotNull(companyId, "companyId"); + Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(locationId, "locationId"); Utils.checkNotNull(departmentId, "departmentId"); Utils.checkNotNull(currency, "currency"); @@ -494,6 +501,7 @@ public Bill( this.billNumber = billNumber; this.supplier = supplier; this.companyId = companyId; + this.subsidiary = subsidiary; this.locationId = locationId; this.departmentId = departmentId; this.currency = currency; @@ -548,19 +556,19 @@ public Bill() { JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), - Optional.empty()); + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), JsonNullable.undefined(), Optional.empty(), + JsonNullable.undefined(), Optional.empty()); } /** @@ -612,6 +620,12 @@ public JsonNullable companyId() { return companyId; } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable subsidiary() { + return (JsonNullable) subsidiary; + } + /** * The ID of the location */ @@ -1094,6 +1108,18 @@ public Bill withCompanyId(JsonNullable companyId) { return this; } + public Bill withSubsidiary(LinkedSubsidiary subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Bill withSubsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + /** * The ID of the location */ @@ -1919,6 +1945,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.billNumber, other.billNumber) && Utils.enhancedDeepEquals(this.supplier, other.supplier) && Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.locationId, other.locationId) && Utils.enhancedDeepEquals(this.departmentId, other.departmentId) && Utils.enhancedDeepEquals(this.currency, other.currency) && @@ -1972,22 +1999,22 @@ public int hashCode() { return Utils.enhancedHash( id, downstreamId, displayId, billNumber, supplier, companyId, - locationId, departmentId, currency, - currencyRate, taxInclusive, billDate, - dueDate, paidDate, poNumber, - reference, lineItems, terms, - termsId, balance, deposit, - subTotal, totalTax, total, - taxCode, notes, status, - ledgerAccount, paymentMethod, channel, - language, accountingByRow, bankAccount, - discountPercentage, templateId, approvedBy, - amortizationType, taxMethod, documentReceived, - sourceDocumentUrl, paymentAllocations, trackingCategories, - updatedBy, createdBy, updatedAt, - createdAt, rowVersion, customFields, - customMappings, passThrough, accountingPeriod, - attachments); + subsidiary, locationId, departmentId, + currency, currencyRate, taxInclusive, + billDate, dueDate, paidDate, + poNumber, reference, lineItems, + terms, termsId, balance, + deposit, subTotal, totalTax, + total, taxCode, notes, + status, ledgerAccount, paymentMethod, + channel, language, accountingByRow, + bankAccount, discountPercentage, templateId, + approvedBy, amortizationType, taxMethod, + documentReceived, sourceDocumentUrl, paymentAllocations, + trackingCategories, updatedBy, createdBy, + updatedAt, createdAt, rowVersion, + customFields, customMappings, passThrough, + accountingPeriod, attachments); } @Override @@ -1999,6 +2026,7 @@ public String toString() { "billNumber", billNumber, "supplier", supplier, "companyId", companyId, + "subsidiary", subsidiary, "locationId", locationId, "departmentId", departmentId, "currency", currency, @@ -2062,6 +2090,8 @@ public final static class Builder { private JsonNullable companyId = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); + private JsonNullable locationId = JsonNullable.undefined(); private JsonNullable departmentId = JsonNullable.undefined(); @@ -2273,6 +2303,19 @@ public Builder companyId(JsonNullable companyId) { } + public Builder subsidiary(LinkedSubsidiary subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Builder subsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + + /** * The ID of the location */ @@ -3127,22 +3170,22 @@ public Bill build() { return new Bill( id, downstreamId, displayId, billNumber, supplier, companyId, - locationId, departmentId, currency, - currencyRate, taxInclusive, billDate, - dueDate, paidDate, poNumber, - reference, lineItems, terms, - termsId, balance, deposit, - subTotal, totalTax, total, - taxCode, notes, status, - ledgerAccount, paymentMethod, channel, - language, accountingByRow, bankAccount, - discountPercentage, templateId, approvedBy, - amortizationType, taxMethod, documentReceived, - sourceDocumentUrl, paymentAllocations, trackingCategories, - updatedBy, createdBy, updatedAt, - createdAt, rowVersion, customFields, - customMappings, passThrough, accountingPeriod, - attachments); + subsidiary, locationId, departmentId, + currency, currencyRate, taxInclusive, + billDate, dueDate, paidDate, + poNumber, reference, lineItems, + terms, termsId, balance, + deposit, subTotal, totalTax, + total, taxCode, notes, + status, ledgerAccount, paymentMethod, + channel, language, accountingByRow, + bankAccount, discountPercentage, templateId, + approvedBy, amortizationType, taxMethod, + documentReceived, sourceDocumentUrl, paymentAllocations, + trackingCategories, updatedBy, createdBy, + updatedAt, createdAt, rowVersion, + customFields, customMappings, passThrough, + accountingPeriod, attachments); } } diff --git a/src/main/java/com/apideck/unify/models/components/BillInput.java b/src/main/java/com/apideck/unify/models/components/BillInput.java index 1d37ac79a..c4ca0f48d 100644 --- a/src/main/java/com/apideck/unify/models/components/BillInput.java +++ b/src/main/java/com/apideck/unify/models/components/BillInput.java @@ -49,6 +49,11 @@ public class BillInput { @JsonProperty("company_id") private JsonNullable companyId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsidiary") + private JsonNullable subsidiary; + /** * The ID of the location */ @@ -336,6 +341,7 @@ public BillInput( @JsonProperty("bill_number") JsonNullable billNumber, @JsonProperty("supplier") JsonNullable supplier, @JsonProperty("company_id") JsonNullable companyId, + @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("location_id") JsonNullable locationId, @JsonProperty("department_id") JsonNullable departmentId, @JsonProperty("currency") JsonNullable currency, @@ -381,6 +387,7 @@ public BillInput( Utils.checkNotNull(billNumber, "billNumber"); Utils.checkNotNull(supplier, "supplier"); Utils.checkNotNull(companyId, "companyId"); + Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(locationId, "locationId"); Utils.checkNotNull(departmentId, "departmentId"); Utils.checkNotNull(currency, "currency"); @@ -426,6 +433,7 @@ public BillInput( this.billNumber = billNumber; this.supplier = supplier; this.companyId = companyId; + this.subsidiary = subsidiary; this.locationId = locationId; this.departmentId = departmentId; this.currency = currency; @@ -474,17 +482,18 @@ public BillInput() { JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - Optional.empty(), JsonNullable.undefined(), Optional.empty()); + Optional.empty(), Optional.empty(), JsonNullable.undefined(), + Optional.empty()); } /** @@ -520,6 +529,12 @@ public JsonNullable companyId() { return companyId; } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable subsidiary() { + return (JsonNullable) subsidiary; + } + /** * The ID of the location */ @@ -924,6 +939,18 @@ public BillInput withCompanyId(JsonNullable companyId) { return this; } + public BillInput withSubsidiary(LinkedSubsidiaryInput subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public BillInput withSubsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + /** * The ID of the location */ @@ -1657,6 +1684,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.billNumber, other.billNumber) && Utils.enhancedDeepEquals(this.supplier, other.supplier) && Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.locationId, other.locationId) && Utils.enhancedDeepEquals(this.departmentId, other.departmentId) && Utils.enhancedDeepEquals(this.currency, other.currency) && @@ -1704,20 +1732,21 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Utils.enhancedHash( displayId, billNumber, supplier, - companyId, locationId, departmentId, - currency, currencyRate, taxInclusive, - billDate, dueDate, paidDate, - poNumber, reference, lineItems, - terms, termsId, balance, - deposit, subTotal, totalTax, - total, taxCode, notes, - status, ledgerAccount, paymentMethod, - channel, language, accountingByRow, - bankAccount, discountPercentage, templateId, - approvedBy, amortizationType, taxMethod, - documentReceived, sourceDocumentUrl, paymentAllocations, - trackingCategories, rowVersion, customFields, - passThrough, accountingPeriod, attachments); + companyId, subsidiary, locationId, + departmentId, currency, currencyRate, + taxInclusive, billDate, dueDate, + paidDate, poNumber, reference, + lineItems, terms, termsId, + balance, deposit, subTotal, + totalTax, total, taxCode, + notes, status, ledgerAccount, + paymentMethod, channel, language, + accountingByRow, bankAccount, discountPercentage, + templateId, approvedBy, amortizationType, + taxMethod, documentReceived, sourceDocumentUrl, + paymentAllocations, trackingCategories, rowVersion, + customFields, passThrough, accountingPeriod, + attachments); } @Override @@ -1727,6 +1756,7 @@ public String toString() { "billNumber", billNumber, "supplier", supplier, "companyId", companyId, + "subsidiary", subsidiary, "locationId", locationId, "departmentId", departmentId, "currency", currency, @@ -1781,6 +1811,8 @@ public final static class Builder { private JsonNullable companyId = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); + private JsonNullable locationId = JsonNullable.undefined(); private JsonNullable departmentId = JsonNullable.undefined(); @@ -1944,6 +1976,19 @@ public Builder companyId(JsonNullable companyId) { } + public Builder subsidiary(LinkedSubsidiaryInput subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Builder subsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + + /** * The ID of the location */ @@ -2702,20 +2747,21 @@ public BillInput build() { return new BillInput( displayId, billNumber, supplier, - companyId, locationId, departmentId, - currency, currencyRate, taxInclusive, - billDate, dueDate, paidDate, - poNumber, reference, lineItems, - terms, termsId, balance, - deposit, subTotal, totalTax, - total, taxCode, notes, - status, ledgerAccount, paymentMethod, - channel, language, accountingByRow, - bankAccount, discountPercentage, templateId, - approvedBy, amortizationType, taxMethod, - documentReceived, sourceDocumentUrl, paymentAllocations, - trackingCategories, rowVersion, customFields, - passThrough, accountingPeriod, attachments); + companyId, subsidiary, locationId, + departmentId, currency, currencyRate, + taxInclusive, billDate, dueDate, + paidDate, poNumber, reference, + lineItems, terms, termsId, + balance, deposit, subTotal, + totalTax, total, taxCode, + notes, status, ledgerAccount, + paymentMethod, channel, language, + accountingByRow, bankAccount, discountPercentage, + templateId, approvedBy, amortizationType, + taxMethod, documentReceived, sourceDocumentUrl, + paymentAllocations, trackingCategories, rowVersion, + customFields, passThrough, accountingPeriod, + attachments); } } diff --git a/src/main/java/com/apideck/unify/models/components/BillPayment.java b/src/main/java/com/apideck/unify/models/components/BillPayment.java index 38b471f2a..be93dd87d 100644 --- a/src/main/java/com/apideck/unify/models/components/BillPayment.java +++ b/src/main/java/com/apideck/unify/models/components/BillPayment.java @@ -112,6 +112,11 @@ public class BillPayment { @JsonProperty("company_id") private JsonNullable companyId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsidiary") + private JsonNullable subsidiary; + /** * Indicates if the transaction has been reconciled. */ @@ -237,6 +242,7 @@ public BillPayment( @JsonProperty("transaction_date") Optional transactionDate, @JsonProperty("supplier") JsonNullable supplier, @JsonProperty("company_id") JsonNullable companyId, + @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("reconciled") JsonNullable reconciled, @JsonProperty("status") Optional status, @JsonProperty("type") Optional type, @@ -266,6 +272,7 @@ public BillPayment( Utils.checkNotNull(transactionDate, "transactionDate"); Utils.checkNotNull(supplier, "supplier"); Utils.checkNotNull(companyId, "companyId"); + Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(reconciled, "reconciled"); Utils.checkNotNull(status, "status"); Utils.checkNotNull(type, "type"); @@ -295,6 +302,7 @@ public BillPayment( this.transactionDate = transactionDate; this.supplier = supplier; this.companyId = companyId; + this.subsidiary = subsidiary; this.reconciled = reconciled; this.status = status; this.type = type; @@ -319,12 +327,12 @@ public BillPayment( JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - Optional.empty(), Optional.empty(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), Optional.empty()); + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); } /** @@ -432,6 +440,12 @@ public JsonNullable companyId() { return companyId; } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable subsidiary() { + return (JsonNullable) subsidiary; + } + /** * Indicates if the transaction has been reconciled. */ @@ -791,6 +805,18 @@ public BillPayment withCompanyId(JsonNullable companyId) { return this; } + public BillPayment withSubsidiary(LinkedSubsidiary subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public BillPayment withSubsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + /** * Indicates if the transaction has been reconciled. */ @@ -1099,6 +1125,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.transactionDate, other.transactionDate) && Utils.enhancedDeepEquals(this.supplier, other.supplier) && Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.reconciled, other.reconciled) && Utils.enhancedDeepEquals(this.status, other.status) && Utils.enhancedDeepEquals(this.type, other.type) && @@ -1124,12 +1151,12 @@ public int hashCode() { currencyRate, totalAmount, reference, paymentMethod, paymentMethodReference, paymentMethodId, account, transactionDate, supplier, - companyId, reconciled, status, - type, allocations, note, - number, trackingCategories, customFields, - rowVersion, displayId, customMappings, - updatedBy, createdBy, createdAt, - updatedAt, passThrough); + companyId, subsidiary, reconciled, + status, type, allocations, + note, number, trackingCategories, + customFields, rowVersion, displayId, + customMappings, updatedBy, createdBy, + createdAt, updatedAt, passThrough); } @Override @@ -1148,6 +1175,7 @@ public String toString() { "transactionDate", transactionDate, "supplier", supplier, "companyId", companyId, + "subsidiary", subsidiary, "reconciled", reconciled, "status", status, "type", type, @@ -1195,6 +1223,8 @@ public final static class Builder { private JsonNullable companyId = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); + private JsonNullable reconciled = JsonNullable.undefined(); private Optional status = Optional.empty(); @@ -1466,6 +1496,19 @@ public Builder companyId(JsonNullable companyId) { } + public Builder subsidiary(LinkedSubsidiary subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Builder subsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + + /** * Indicates if the transaction has been reconciled. */ @@ -1768,12 +1811,12 @@ public BillPayment build() { currencyRate, totalAmount, reference, paymentMethod, paymentMethodReference, paymentMethodId, account, transactionDate, supplier, - companyId, reconciled, status, - type, allocations, note, - number, trackingCategories, customFields, - rowVersion, displayId, customMappings, - updatedBy, createdBy, createdAt, - updatedAt, passThrough); + companyId, subsidiary, reconciled, + status, type, allocations, + note, number, trackingCategories, + customFields, rowVersion, displayId, + customMappings, updatedBy, createdBy, + createdAt, updatedAt, passThrough); } } diff --git a/src/main/java/com/apideck/unify/models/components/BillPaymentInput.java b/src/main/java/com/apideck/unify/models/components/BillPaymentInput.java index bf28b465e..2a4aa04bc 100644 --- a/src/main/java/com/apideck/unify/models/components/BillPaymentInput.java +++ b/src/main/java/com/apideck/unify/models/components/BillPaymentInput.java @@ -97,6 +97,11 @@ public class BillPaymentInput { @JsonProperty("company_id") private JsonNullable companyId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsidiary") + private JsonNullable subsidiary; + /** * Indicates if the transaction has been reconciled. */ @@ -185,6 +190,7 @@ public BillPaymentInput( @JsonProperty("transaction_date") Optional transactionDate, @JsonProperty("supplier") JsonNullable supplier, @JsonProperty("company_id") JsonNullable companyId, + @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("reconciled") JsonNullable reconciled, @JsonProperty("status") Optional status, @JsonProperty("type") Optional type, @@ -207,6 +213,7 @@ public BillPaymentInput( Utils.checkNotNull(transactionDate, "transactionDate"); Utils.checkNotNull(supplier, "supplier"); Utils.checkNotNull(companyId, "companyId"); + Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(reconciled, "reconciled"); Utils.checkNotNull(status, "status"); Utils.checkNotNull(type, "type"); @@ -229,6 +236,7 @@ public BillPaymentInput( this.transactionDate = transactionDate; this.supplier = supplier; this.companyId = companyId; + this.subsidiary = subsidiary; this.reconciled = reconciled; this.status = status; this.type = type; @@ -247,10 +255,10 @@ public BillPaymentInput() { JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty(), Optional.empty(), Optional.empty(), - JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty()); + JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined(), Optional.empty()); } /** @@ -342,6 +350,12 @@ public JsonNullable companyId() { return companyId; } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable subsidiary() { + return (JsonNullable) subsidiary; + } + /** * Indicates if the transaction has been reconciled. */ @@ -633,6 +647,18 @@ public BillPaymentInput withCompanyId(JsonNullable companyId) { return this; } + public BillPaymentInput withSubsidiary(LinkedSubsidiaryInput subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public BillPaymentInput withSubsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + /** * Indicates if the transaction has been reconciled. */ @@ -849,6 +875,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.transactionDate, other.transactionDate) && Utils.enhancedDeepEquals(this.supplier, other.supplier) && Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.reconciled, other.reconciled) && Utils.enhancedDeepEquals(this.status, other.status) && Utils.enhancedDeepEquals(this.type, other.type) && @@ -868,11 +895,11 @@ public int hashCode() { currency, currencyRate, totalAmount, reference, paymentMethod, paymentMethodReference, paymentMethodId, account, transactionDate, - supplier, companyId, reconciled, - status, type, allocations, - note, number, trackingCategories, - customFields, rowVersion, displayId, - passThrough); + supplier, companyId, subsidiary, + reconciled, status, type, + allocations, note, number, + trackingCategories, customFields, rowVersion, + displayId, passThrough); } @Override @@ -889,6 +916,7 @@ public String toString() { "transactionDate", transactionDate, "supplier", supplier, "companyId", companyId, + "subsidiary", subsidiary, "reconciled", reconciled, "status", status, "type", type, @@ -927,6 +955,8 @@ public final static class Builder { private JsonNullable companyId = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); + private JsonNullable reconciled = JsonNullable.undefined(); private Optional status = Optional.empty(); @@ -1159,6 +1189,19 @@ public Builder companyId(JsonNullable companyId) { } + public Builder subsidiary(LinkedSubsidiaryInput subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Builder subsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + + /** * Indicates if the transaction has been reconciled. */ @@ -1365,11 +1408,11 @@ public BillPaymentInput build() { currency, currencyRate, totalAmount, reference, paymentMethod, paymentMethodReference, paymentMethodId, account, transactionDate, - supplier, companyId, reconciled, - status, type, allocations, - note, number, trackingCategories, - customFields, rowVersion, displayId, - passThrough); + supplier, companyId, subsidiary, + reconciled, status, type, + allocations, note, number, + trackingCategories, customFields, rowVersion, + displayId, passThrough); } } diff --git a/src/main/java/com/apideck/unify/models/components/CreateWebhookRequest.java b/src/main/java/com/apideck/unify/models/components/CreateWebhookRequest.java index 4bce45fea..012847083 100644 --- a/src/main/java/com/apideck/unify/models/components/CreateWebhookRequest.java +++ b/src/main/java/com/apideck/unify/models/components/CreateWebhookRequest.java @@ -36,7 +36,8 @@ public class CreateWebhookRequest { private Status status; /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ @JsonProperty("delivery_url") private String deliveryUrl; @@ -100,7 +101,8 @@ public Status status() { } /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ @JsonIgnore public String deliveryUrl() { @@ -157,7 +159,8 @@ public CreateWebhookRequest withStatus(Status status) { } /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ public CreateWebhookRequest withDeliveryUrl(String deliveryUrl) { Utils.checkNotNull(deliveryUrl, "deliveryUrl"); @@ -266,7 +269,8 @@ public Builder status(Status status) { /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ public Builder deliveryUrl(String deliveryUrl) { Utils.checkNotNull(deliveryUrl, "deliveryUrl"); diff --git a/src/main/java/com/apideck/unify/models/components/CreditNote.java b/src/main/java/com/apideck/unify/models/components/CreditNote.java index ce0d381f0..a7cc56bfa 100644 --- a/src/main/java/com/apideck/unify/models/components/CreditNote.java +++ b/src/main/java/com/apideck/unify/models/components/CreditNote.java @@ -50,6 +50,11 @@ public class CreditNote { @JsonProperty("company_id") private JsonNullable companyId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsidiary") + private JsonNullable subsidiary; + /** * The ID of the location */ @@ -277,6 +282,7 @@ public CreditNote( @JsonProperty("number") JsonNullable number, @JsonProperty("customer") JsonNullable customer, @JsonProperty("company_id") JsonNullable companyId, + @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("location_id") JsonNullable locationId, @JsonProperty("department_id") JsonNullable departmentId, @JsonProperty("currency") JsonNullable currency, @@ -314,6 +320,7 @@ public CreditNote( Utils.checkNotNull(number, "number"); Utils.checkNotNull(customer, "customer"); Utils.checkNotNull(companyId, "companyId"); + Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(locationId, "locationId"); Utils.checkNotNull(departmentId, "departmentId"); Utils.checkNotNull(currency, "currency"); @@ -351,6 +358,7 @@ public CreditNote( this.number = number; this.customer = customer; this.companyId = companyId; + this.subsidiary = subsidiary; this.locationId = locationId; this.departmentId = departmentId; this.currency = currency; @@ -392,16 +400,16 @@ public CreditNote( this(id, JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), totalAmount, JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), totalAmount, JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), + Optional.empty(), JsonNullable.undefined(), Optional.empty(), + JsonNullable.undefined(), Optional.empty(), Optional.empty(), + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty()); + JsonNullable.undefined(), Optional.empty()); } /** @@ -437,6 +445,12 @@ public JsonNullable companyId() { return companyId; } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable subsidiary() { + return (JsonNullable) subsidiary; + } + /** * The ID of the location */ @@ -766,6 +780,18 @@ public CreditNote withCompanyId(JsonNullable companyId) { return this; } + public CreditNote withSubsidiary(LinkedSubsidiary subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public CreditNote withSubsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + /** * The ID of the location */ @@ -1344,6 +1370,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.number, other.number) && Utils.enhancedDeepEquals(this.customer, other.customer) && Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.locationId, other.locationId) && Utils.enhancedDeepEquals(this.departmentId, other.departmentId) && Utils.enhancedDeepEquals(this.currency, other.currency) && @@ -1383,18 +1410,18 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Utils.enhancedHash( id, number, customer, - companyId, locationId, departmentId, - currency, currencyRate, taxInclusive, - subTotal, totalAmount, totalTax, - taxCode, balance, remainingCredit, - status, reference, dateIssued, - datePaid, type, account, - lineItems, allocations, note, - terms, termsId, billingAddress, - shippingAddress, trackingCategories, customMappings, - customFields, rowVersion, updatedBy, - createdBy, updatedAt, createdAt, - passThrough); + companyId, subsidiary, locationId, + departmentId, currency, currencyRate, + taxInclusive, subTotal, totalAmount, + totalTax, taxCode, balance, + remainingCredit, status, reference, + dateIssued, datePaid, type, + account, lineItems, allocations, + note, terms, termsId, + billingAddress, shippingAddress, trackingCategories, + customMappings, customFields, rowVersion, + updatedBy, createdBy, updatedAt, + createdAt, passThrough); } @Override @@ -1404,6 +1431,7 @@ public String toString() { "number", number, "customer", customer, "companyId", companyId, + "subsidiary", subsidiary, "locationId", locationId, "departmentId", departmentId, "currency", currency, @@ -1450,6 +1478,8 @@ public final static class Builder { private JsonNullable companyId = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); + private JsonNullable locationId = JsonNullable.undefined(); private JsonNullable departmentId = JsonNullable.undefined(); @@ -1588,6 +1618,19 @@ public Builder companyId(JsonNullable companyId) { } + public Builder subsidiary(LinkedSubsidiary subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Builder subsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + + /** * The ID of the location */ @@ -2179,18 +2222,18 @@ public CreditNote build() { return new CreditNote( id, number, customer, - companyId, locationId, departmentId, - currency, currencyRate, taxInclusive, - subTotal, totalAmount, totalTax, - taxCode, balance, remainingCredit, - status, reference, dateIssued, - datePaid, type, account, - lineItems, allocations, note, - terms, termsId, billingAddress, - shippingAddress, trackingCategories, customMappings, - customFields, rowVersion, updatedBy, - createdBy, updatedAt, createdAt, - passThrough); + companyId, subsidiary, locationId, + departmentId, currency, currencyRate, + taxInclusive, subTotal, totalAmount, + totalTax, taxCode, balance, + remainingCredit, status, reference, + dateIssued, datePaid, type, + account, lineItems, allocations, + note, terms, termsId, + billingAddress, shippingAddress, trackingCategories, + customMappings, customFields, rowVersion, + updatedBy, createdBy, updatedAt, + createdAt, passThrough); } } diff --git a/src/main/java/com/apideck/unify/models/components/CreditNoteInput.java b/src/main/java/com/apideck/unify/models/components/CreditNoteInput.java index e469d6b90..414c6a175 100644 --- a/src/main/java/com/apideck/unify/models/components/CreditNoteInput.java +++ b/src/main/java/com/apideck/unify/models/components/CreditNoteInput.java @@ -42,6 +42,11 @@ public class CreditNoteInput { @JsonProperty("company_id") private JsonNullable companyId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsidiary") + private JsonNullable subsidiary; + /** * The ID of the location */ @@ -233,6 +238,7 @@ public CreditNoteInput( @JsonProperty("number") JsonNullable number, @JsonProperty("customer") JsonNullable customer, @JsonProperty("company_id") JsonNullable companyId, + @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("location_id") JsonNullable locationId, @JsonProperty("department_id") JsonNullable departmentId, @JsonProperty("currency") JsonNullable currency, @@ -264,6 +270,7 @@ public CreditNoteInput( Utils.checkNotNull(number, "number"); Utils.checkNotNull(customer, "customer"); Utils.checkNotNull(companyId, "companyId"); + Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(locationId, "locationId"); Utils.checkNotNull(departmentId, "departmentId"); Utils.checkNotNull(currency, "currency"); @@ -295,6 +302,7 @@ public CreditNoteInput( this.number = number; this.customer = customer; this.companyId = companyId; + this.subsidiary = subsidiary; this.locationId = locationId; this.departmentId = departmentId; this.currency = currency; @@ -330,14 +338,14 @@ public CreditNoteInput( this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - totalAmount, JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined(), totalAmount, JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), - Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), - Optional.empty()); + Optional.empty(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), + Optional.empty(), JsonNullable.undefined(), Optional.empty(), + JsonNullable.undefined(), Optional.empty()); } /** @@ -365,6 +373,12 @@ public JsonNullable companyId() { return companyId; } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable subsidiary() { + return (JsonNullable) subsidiary; + } + /** * The ID of the location */ @@ -644,6 +658,18 @@ public CreditNoteInput withCompanyId(JsonNullable companyId) { return this; } + public CreditNoteInput withSubsidiary(LinkedSubsidiaryInput subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public CreditNoteInput withSubsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + /** * The ID of the location */ @@ -1131,6 +1157,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.number, other.number) && Utils.enhancedDeepEquals(this.customer, other.customer) && Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.locationId, other.locationId) && Utils.enhancedDeepEquals(this.departmentId, other.departmentId) && Utils.enhancedDeepEquals(this.currency, other.currency) && @@ -1165,16 +1192,16 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Utils.enhancedHash( number, customer, companyId, - locationId, departmentId, currency, - currencyRate, taxInclusive, subTotal, - totalAmount, totalTax, taxCode, - balance, remainingCredit, status, - reference, dateIssued, datePaid, - type, account, lineItems, - allocations, note, terms, - termsId, billingAddress, shippingAddress, - trackingCategories, customFields, rowVersion, - passThrough); + subsidiary, locationId, departmentId, + currency, currencyRate, taxInclusive, + subTotal, totalAmount, totalTax, + taxCode, balance, remainingCredit, + status, reference, dateIssued, + datePaid, type, account, + lineItems, allocations, note, + terms, termsId, billingAddress, + shippingAddress, trackingCategories, customFields, + rowVersion, passThrough); } @Override @@ -1183,6 +1210,7 @@ public String toString() { "number", number, "customer", customer, "companyId", companyId, + "subsidiary", subsidiary, "locationId", locationId, "departmentId", departmentId, "currency", currency, @@ -1222,6 +1250,8 @@ public final static class Builder { private JsonNullable companyId = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); + private JsonNullable locationId = JsonNullable.undefined(); private JsonNullable departmentId = JsonNullable.undefined(); @@ -1340,6 +1370,19 @@ public Builder companyId(JsonNullable companyId) { } + public Builder subsidiary(LinkedSubsidiaryInput subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Builder subsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + + /** * The ID of the location */ @@ -1836,16 +1879,16 @@ public CreditNoteInput build() { return new CreditNoteInput( number, customer, companyId, - locationId, departmentId, currency, - currencyRate, taxInclusive, subTotal, - totalAmount, totalTax, taxCode, - balance, remainingCredit, status, - reference, dateIssued, datePaid, - type, account, lineItems, - allocations, note, terms, - termsId, billingAddress, shippingAddress, - trackingCategories, customFields, rowVersion, - passThrough); + subsidiary, locationId, departmentId, + currency, currencyRate, taxInclusive, + subTotal, totalAmount, totalTax, + taxCode, balance, remainingCredit, + status, reference, dateIssued, + datePaid, type, account, + lineItems, allocations, note, + terms, termsId, billingAddress, + shippingAddress, trackingCategories, customFields, + rowVersion, passThrough); } } diff --git a/src/main/java/com/apideck/unify/models/components/Invoice.java b/src/main/java/com/apideck/unify/models/components/Invoice.java index ffa745ad9..e7b30b4d9 100644 --- a/src/main/java/com/apideck/unify/models/components/Invoice.java +++ b/src/main/java/com/apideck/unify/models/components/Invoice.java @@ -74,6 +74,11 @@ public class Invoice { @JsonProperty("company_id") private JsonNullable companyId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsidiary") + private JsonNullable subsidiary; + /** * The ID of the location */ @@ -388,6 +393,7 @@ public Invoice( @JsonProperty("number") JsonNullable number, @JsonProperty("customer") JsonNullable customer, @JsonProperty("company_id") JsonNullable companyId, + @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("location_id") JsonNullable locationId, @JsonProperty("department_id") JsonNullable departmentId, @JsonProperty("invoice_date") JsonNullable invoiceDate, @@ -439,6 +445,7 @@ public Invoice( Utils.checkNotNull(number, "number"); Utils.checkNotNull(customer, "customer"); Utils.checkNotNull(companyId, "companyId"); + Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(locationId, "locationId"); Utils.checkNotNull(departmentId, "departmentId"); Utils.checkNotNull(invoiceDate, "invoiceDate"); @@ -490,6 +497,7 @@ public Invoice( this.number = number; this.customer = customer; this.companyId = companyId; + this.subsidiary = subsidiary; this.locationId = locationId; this.departmentId = departmentId; this.invoiceDate = invoiceDate; @@ -542,18 +550,19 @@ public Invoice() { JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), Optional.empty(), Optional.empty(), - Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), + Optional.empty(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty()); } /** @@ -614,6 +623,12 @@ public JsonNullable companyId() { return companyId; } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable subsidiary() { + return (JsonNullable) subsidiary; + } + /** * The ID of the location */ @@ -1102,6 +1117,18 @@ public Invoice withCompanyId(JsonNullable companyId) { return this; } + public Invoice withSubsidiary(LinkedSubsidiary subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Invoice withSubsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + /** * The ID of the location */ @@ -1900,6 +1927,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.number, other.number) && Utils.enhancedDeepEquals(this.customer, other.customer) && Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.locationId, other.locationId) && Utils.enhancedDeepEquals(this.departmentId, other.departmentId) && Utils.enhancedDeepEquals(this.invoiceDate, other.invoiceDate) && @@ -1951,21 +1979,22 @@ public int hashCode() { return Utils.enhancedHash( id, downstreamId, displayId, type, number, customer, - companyId, locationId, departmentId, - invoiceDate, dueDate, terms, - termsId, poNumber, reference, - status, invoiceSent, currency, - currencyRate, taxInclusive, subTotal, - totalTax, taxCode, discountPercentage, - discountAmount, total, balance, - deposit, customerMemo, trackingCategory, - trackingCategories, lineItems, billingAddress, - shippingAddress, templateId, sourceDocumentUrl, - paymentAllocations, paymentMethod, channel, - language, accountingByRow, bankAccount, - ledgerAccount, customMappings, customFields, - rowVersion, updatedBy, createdBy, - updatedAt, createdAt, passThrough); + companyId, subsidiary, locationId, + departmentId, invoiceDate, dueDate, + terms, termsId, poNumber, + reference, status, invoiceSent, + currency, currencyRate, taxInclusive, + subTotal, totalTax, taxCode, + discountPercentage, discountAmount, total, + balance, deposit, customerMemo, + trackingCategory, trackingCategories, lineItems, + billingAddress, shippingAddress, templateId, + sourceDocumentUrl, paymentAllocations, paymentMethod, + channel, language, accountingByRow, + bankAccount, ledgerAccount, customMappings, + customFields, rowVersion, updatedBy, + createdBy, updatedAt, createdAt, + passThrough); } @Override @@ -1978,6 +2007,7 @@ public String toString() { "number", number, "customer", customer, "companyId", companyId, + "subsidiary", subsidiary, "locationId", locationId, "departmentId", departmentId, "invoiceDate", invoiceDate, @@ -2041,6 +2071,8 @@ public final static class Builder { private JsonNullable companyId = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); + private JsonNullable locationId = JsonNullable.undefined(); private JsonNullable departmentId = JsonNullable.undefined(); @@ -2268,6 +2300,19 @@ public Builder companyId(JsonNullable companyId) { } + public Builder subsidiary(LinkedSubsidiary subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Builder subsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + + /** * The ID of the location */ @@ -3090,21 +3135,22 @@ public Invoice build() { return new Invoice( id, downstreamId, displayId, type, number, customer, - companyId, locationId, departmentId, - invoiceDate, dueDate, terms, - termsId, poNumber, reference, - status, invoiceSent, currency, - currencyRate, taxInclusive, subTotal, - totalTax, taxCode, discountPercentage, - discountAmount, total, balance, - deposit, customerMemo, trackingCategory, - trackingCategories, lineItems, billingAddress, - shippingAddress, templateId, sourceDocumentUrl, - paymentAllocations, paymentMethod, channel, - language, accountingByRow, bankAccount, - ledgerAccount, customMappings, customFields, - rowVersion, updatedBy, createdBy, - updatedAt, createdAt, passThrough); + companyId, subsidiary, locationId, + departmentId, invoiceDate, dueDate, + terms, termsId, poNumber, + reference, status, invoiceSent, + currency, currencyRate, taxInclusive, + subTotal, totalTax, taxCode, + discountPercentage, discountAmount, total, + balance, deposit, customerMemo, + trackingCategory, trackingCategories, lineItems, + billingAddress, shippingAddress, templateId, + sourceDocumentUrl, paymentAllocations, paymentMethod, + channel, language, accountingByRow, + bankAccount, ledgerAccount, customMappings, + customFields, rowVersion, updatedBy, + createdBy, updatedAt, createdAt, + passThrough); } } diff --git a/src/main/java/com/apideck/unify/models/components/InvoiceInput.java b/src/main/java/com/apideck/unify/models/components/InvoiceInput.java index 9db0b4d0d..7ae74f80b 100644 --- a/src/main/java/com/apideck/unify/models/components/InvoiceInput.java +++ b/src/main/java/com/apideck/unify/models/components/InvoiceInput.java @@ -57,6 +57,11 @@ public class InvoiceInput { @JsonProperty("company_id") private JsonNullable companyId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsidiary") + private JsonNullable subsidiary; + /** * The ID of the location */ @@ -334,6 +339,7 @@ public InvoiceInput( @JsonProperty("number") JsonNullable number, @JsonProperty("customer") JsonNullable customer, @JsonProperty("company_id") JsonNullable companyId, + @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("location_id") JsonNullable locationId, @JsonProperty("department_id") JsonNullable departmentId, @JsonProperty("invoice_date") JsonNullable invoiceDate, @@ -378,6 +384,7 @@ public InvoiceInput( Utils.checkNotNull(number, "number"); Utils.checkNotNull(customer, "customer"); Utils.checkNotNull(companyId, "companyId"); + Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(locationId, "locationId"); Utils.checkNotNull(departmentId, "departmentId"); Utils.checkNotNull(invoiceDate, "invoiceDate"); @@ -422,6 +429,7 @@ public InvoiceInput( this.number = number; this.customer = customer; this.companyId = companyId; + this.subsidiary = subsidiary; this.locationId = locationId; this.departmentId = departmentId; this.invoiceDate = invoiceDate; @@ -468,17 +476,17 @@ public InvoiceInput() { JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty(), JsonNullable.undefined(), Optional.empty(), - JsonNullable.undefined(), Optional.empty()); + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), + Optional.empty(), JsonNullable.undefined(), Optional.empty()); } /** @@ -523,6 +531,12 @@ public JsonNullable companyId() { return companyId; } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable subsidiary() { + return (JsonNullable) subsidiary; + } + /** * The ID of the location */ @@ -933,6 +947,18 @@ public InvoiceInput withCompanyId(JsonNullable companyId) { return this; } + public InvoiceInput withSubsidiary(LinkedSubsidiaryInput subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public InvoiceInput withSubsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + /** * The ID of the location */ @@ -1639,6 +1665,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.number, other.number) && Utils.enhancedDeepEquals(this.customer, other.customer) && Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.locationId, other.locationId) && Utils.enhancedDeepEquals(this.departmentId, other.departmentId) && Utils.enhancedDeepEquals(this.invoiceDate, other.invoiceDate) && @@ -1684,20 +1711,20 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Utils.enhancedHash( displayId, type, number, - customer, companyId, locationId, - departmentId, invoiceDate, dueDate, - terms, termsId, poNumber, - reference, status, invoiceSent, - currency, currencyRate, taxInclusive, - subTotal, totalTax, taxCode, - discountPercentage, discountAmount, total, - balance, deposit, customerMemo, - trackingCategory, trackingCategories, lineItems, - billingAddress, shippingAddress, templateId, - sourceDocumentUrl, paymentAllocations, paymentMethod, - channel, language, accountingByRow, - bankAccount, ledgerAccount, customFields, - rowVersion, passThrough); + customer, companyId, subsidiary, + locationId, departmentId, invoiceDate, + dueDate, terms, termsId, + poNumber, reference, status, + invoiceSent, currency, currencyRate, + taxInclusive, subTotal, totalTax, + taxCode, discountPercentage, discountAmount, + total, balance, deposit, + customerMemo, trackingCategory, trackingCategories, + lineItems, billingAddress, shippingAddress, + templateId, sourceDocumentUrl, paymentAllocations, + paymentMethod, channel, language, + accountingByRow, bankAccount, ledgerAccount, + customFields, rowVersion, passThrough); } @Override @@ -1708,6 +1735,7 @@ public String toString() { "number", number, "customer", customer, "companyId", companyId, + "subsidiary", subsidiary, "locationId", locationId, "departmentId", departmentId, "invoiceDate", invoiceDate, @@ -1762,6 +1790,8 @@ public final static class Builder { private JsonNullable companyId = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); + private JsonNullable locationId = JsonNullable.undefined(); private JsonNullable departmentId = JsonNullable.undefined(); @@ -1941,6 +1971,19 @@ public Builder companyId(JsonNullable companyId) { } + public Builder subsidiary(LinkedSubsidiaryInput subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Builder subsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + + /** * The ID of the location */ @@ -2667,20 +2710,20 @@ public InvoiceInput build() { return new InvoiceInput( displayId, type, number, - customer, companyId, locationId, - departmentId, invoiceDate, dueDate, - terms, termsId, poNumber, - reference, status, invoiceSent, - currency, currencyRate, taxInclusive, - subTotal, totalTax, taxCode, - discountPercentage, discountAmount, total, - balance, deposit, customerMemo, - trackingCategory, trackingCategories, lineItems, - billingAddress, shippingAddress, templateId, - sourceDocumentUrl, paymentAllocations, paymentMethod, - channel, language, accountingByRow, - bankAccount, ledgerAccount, customFields, - rowVersion, passThrough); + customer, companyId, subsidiary, + locationId, departmentId, invoiceDate, + dueDate, terms, termsId, + poNumber, reference, status, + invoiceSent, currency, currencyRate, + taxInclusive, subTotal, totalTax, + taxCode, discountPercentage, discountAmount, + total, balance, deposit, + customerMemo, trackingCategory, trackingCategories, + lineItems, billingAddress, shippingAddress, + templateId, sourceDocumentUrl, paymentAllocations, + paymentMethod, channel, language, + accountingByRow, bankAccount, ledgerAccount, + customFields, rowVersion, passThrough); } } diff --git a/src/main/java/com/apideck/unify/models/components/JournalEntry.java b/src/main/java/com/apideck/unify/models/components/JournalEntry.java index 66b444a68..fe96907d5 100644 --- a/src/main/java/com/apideck/unify/models/components/JournalEntry.java +++ b/src/main/java/com/apideck/unify/models/components/JournalEntry.java @@ -74,6 +74,11 @@ public class JournalEntry { @JsonProperty("company_id") private JsonNullable companyId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsidiary") + private JsonNullable subsidiary; + /** * Requires a minimum of 2 line items that sum to 0 */ @@ -235,6 +240,7 @@ public JournalEntry( @JsonProperty("currency_rate") JsonNullable currencyRate, @JsonProperty("currency") JsonNullable currency, @JsonProperty("company_id") JsonNullable companyId, + @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("line_items") Optional> lineItems, @JsonProperty("status") JsonNullable status, @JsonProperty("memo") JsonNullable memo, @@ -263,6 +269,7 @@ public JournalEntry( Utils.checkNotNull(currencyRate, "currencyRate"); Utils.checkNotNull(currency, "currency"); Utils.checkNotNull(companyId, "companyId"); + Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(lineItems, "lineItems"); Utils.checkNotNull(status, "status"); Utils.checkNotNull(memo, "memo"); @@ -291,6 +298,7 @@ public JournalEntry( this.currencyRate = currencyRate; this.currency = currency; this.companyId = companyId; + this.subsidiary = subsidiary; this.lineItems = lineItems; this.status = status; this.memo = memo; @@ -317,14 +325,14 @@ public JournalEntry( public JournalEntry() { this(Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), - JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), + JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - Optional.empty()); + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), Optional.empty()); } /** @@ -385,6 +393,12 @@ public JsonNullable companyId() { return companyId; } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable subsidiary() { + return (JsonNullable) subsidiary; + } + /** * Requires a minimum of 2 line items that sum to 0 */ @@ -697,6 +711,18 @@ public JournalEntry withCompanyId(JsonNullable companyId) { return this; } + public JournalEntry withSubsidiary(LinkedSubsidiary subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public JournalEntry withSubsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + /** * Requires a minimum of 2 line items that sum to 0 */ @@ -1104,6 +1130,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.currencyRate, other.currencyRate) && Utils.enhancedDeepEquals(this.currency, other.currency) && Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.lineItems, other.lineItems) && Utils.enhancedDeepEquals(this.status, other.status) && Utils.enhancedDeepEquals(this.memo, other.memo) && @@ -1132,14 +1159,14 @@ public int hashCode() { return Utils.enhancedHash( id, downstreamId, displayId, title, currencyRate, currency, - companyId, lineItems, status, - memo, postedAt, journalSymbol, - taxType, taxCode, number, - trackingCategories, accountingPeriod, taxInclusive, - sourceType, sourceId, customMappings, - updatedBy, createdBy, updatedAt, - createdAt, rowVersion, customFields, - passThrough); + companyId, subsidiary, lineItems, + status, memo, postedAt, + journalSymbol, taxType, taxCode, + number, trackingCategories, accountingPeriod, + taxInclusive, sourceType, sourceId, + customMappings, updatedBy, createdBy, + updatedAt, createdAt, rowVersion, + customFields, passThrough); } @Override @@ -1152,6 +1179,7 @@ public String toString() { "currencyRate", currencyRate, "currency", currency, "companyId", companyId, + "subsidiary", subsidiary, "lineItems", lineItems, "status", status, "memo", memo, @@ -1192,6 +1220,8 @@ public final static class Builder { private JsonNullable companyId = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); + private Optional> lineItems = Optional.empty(); private JsonNullable status = JsonNullable.undefined(); @@ -1375,6 +1405,19 @@ public Builder companyId(JsonNullable companyId) { } + public Builder subsidiary(LinkedSubsidiary subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Builder subsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + + /** * Requires a minimum of 2 line items that sum to 0 */ @@ -1786,14 +1829,14 @@ public JournalEntry build() { return new JournalEntry( id, downstreamId, displayId, title, currencyRate, currency, - companyId, lineItems, status, - memo, postedAt, journalSymbol, - taxType, taxCode, number, - trackingCategories, accountingPeriod, taxInclusive, - sourceType, sourceId, customMappings, - updatedBy, createdBy, updatedAt, - createdAt, rowVersion, customFields, - passThrough); + companyId, subsidiary, lineItems, + status, memo, postedAt, + journalSymbol, taxType, taxCode, + number, trackingCategories, accountingPeriod, + taxInclusive, sourceType, sourceId, + customMappings, updatedBy, createdBy, + updatedAt, createdAt, rowVersion, + customFields, passThrough); } } diff --git a/src/main/java/com/apideck/unify/models/components/JournalEntryInput.java b/src/main/java/com/apideck/unify/models/components/JournalEntryInput.java index 601226c19..8b17ea16d 100644 --- a/src/main/java/com/apideck/unify/models/components/JournalEntryInput.java +++ b/src/main/java/com/apideck/unify/models/components/JournalEntryInput.java @@ -58,6 +58,11 @@ public class JournalEntryInput { @JsonProperty("company_id") private JsonNullable companyId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsidiary") + private JsonNullable subsidiary; + /** * Requires a minimum of 2 line items that sum to 0 */ @@ -182,6 +187,7 @@ public JournalEntryInput( @JsonProperty("currency_rate") JsonNullable currencyRate, @JsonProperty("currency") JsonNullable currency, @JsonProperty("company_id") JsonNullable companyId, + @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("line_items") Optional> lineItems, @JsonProperty("status") JsonNullable status, @JsonProperty("memo") JsonNullable memo, @@ -203,6 +209,7 @@ public JournalEntryInput( Utils.checkNotNull(currencyRate, "currencyRate"); Utils.checkNotNull(currency, "currency"); Utils.checkNotNull(companyId, "companyId"); + Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(lineItems, "lineItems"); Utils.checkNotNull(status, "status"); Utils.checkNotNull(memo, "memo"); @@ -224,6 +231,7 @@ public JournalEntryInput( this.currencyRate = currencyRate; this.currency = currency; this.companyId = companyId; + this.subsidiary = subsidiary; this.lineItems = lineItems; this.status = status; this.memo = memo; @@ -244,12 +252,13 @@ public JournalEntryInput( public JournalEntryInput() { this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), Optional.empty(), Optional.empty()); + JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), + Optional.empty()); } /** @@ -294,6 +303,12 @@ public JsonNullable companyId() { return companyId; } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable subsidiary() { + return (JsonNullable) subsidiary; + } + /** * Requires a minimum of 2 line items that sum to 0 */ @@ -528,6 +543,18 @@ public JournalEntryInput withCompanyId(JsonNullable companyId) { return this; } + public JournalEntryInput withSubsidiary(LinkedSubsidiaryInput subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public JournalEntryInput withSubsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + /** * Requires a minimum of 2 line items that sum to 0 */ @@ -843,6 +870,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.currencyRate, other.currencyRate) && Utils.enhancedDeepEquals(this.currency, other.currency) && Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.lineItems, other.lineItems) && Utils.enhancedDeepEquals(this.status, other.status) && Utils.enhancedDeepEquals(this.memo, other.memo) && @@ -865,12 +893,13 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Utils.enhancedHash( displayId, title, currencyRate, - currency, companyId, lineItems, - status, memo, postedAt, - journalSymbol, taxType, taxCode, - number, trackingCategories, accountingPeriod, - taxInclusive, sourceType, sourceId, - rowVersion, customFields, passThrough); + currency, companyId, subsidiary, + lineItems, status, memo, + postedAt, journalSymbol, taxType, + taxCode, number, trackingCategories, + accountingPeriod, taxInclusive, sourceType, + sourceId, rowVersion, customFields, + passThrough); } @Override @@ -881,6 +910,7 @@ public String toString() { "currencyRate", currencyRate, "currency", currency, "companyId", companyId, + "subsidiary", subsidiary, "lineItems", lineItems, "status", status, "memo", memo, @@ -912,6 +942,8 @@ public final static class Builder { private JsonNullable companyId = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); + private Optional> lineItems = Optional.empty(); private JsonNullable status = JsonNullable.undefined(); @@ -1047,6 +1079,19 @@ public Builder companyId(JsonNullable companyId) { } + public Builder subsidiary(LinkedSubsidiaryInput subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Builder subsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + + /** * Requires a minimum of 2 line items that sum to 0 */ @@ -1362,12 +1407,13 @@ public JournalEntryInput build() { return new JournalEntryInput( displayId, title, currencyRate, - currency, companyId, lineItems, - status, memo, postedAt, - journalSymbol, taxType, taxCode, - number, trackingCategories, accountingPeriod, - taxInclusive, sourceType, sourceId, - rowVersion, customFields, passThrough); + currency, companyId, subsidiary, + lineItems, status, memo, + postedAt, journalSymbol, taxType, + taxCode, number, trackingCategories, + accountingPeriod, taxInclusive, sourceType, + sourceId, rowVersion, customFields, + passThrough); } } diff --git a/src/main/java/com/apideck/unify/models/components/LogsFilter.java b/src/main/java/com/apideck/unify/models/components/LogsFilter.java index 6f893d4c7..2b2cbfac2 100644 --- a/src/main/java/com/apideck/unify/models/components/LogsFilter.java +++ b/src/main/java/com/apideck/unify/models/components/LogsFilter.java @@ -3,23 +3,66 @@ */ package com.apideck.unify.models.components; +import com.apideck.unify.utils.LazySingletonValue; import com.apideck.unify.utils.SpeakeasyMetadata; import com.apideck.unify.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Double; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; public class LogsFilter { - + /** + * Filter by connector ID. Known limitation: this field is not currently applied at the log query + * resolver — connector filtering is performed via the service identifier internally (see GH-10099). + */ @SpeakeasyMetadata("queryParam:name=connector_id") private JsonNullable connectorId; + /** + * Filter by request path. Match behavior is controlled by path_match_mode (defaults to CONTAINS). + */ + @SpeakeasyMetadata("queryParam:name=path") + private JsonNullable path; + + /** + * How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor + * the match; EXACT requires the whole path to match. Only applied when path is set. + */ + @SpeakeasyMetadata("queryParam:name=path_match_mode") + private JsonNullable pathMatchMode; + + /** + * Filter by a single HTTP method. + */ + @SpeakeasyMetadata("queryParam:name=http_method") + private JsonNullable httpMethod; + + /** + * Filter by multiple HTTP methods. + */ + @SpeakeasyMetadata("queryParam:name=http_methods") + private JsonNullable> httpMethods; + + /** + * Filter logs at or after this ISO 8601 date-time (inclusive). + */ + @SpeakeasyMetadata("queryParam:name=start_date") + private JsonNullable startDate; + + /** + * Filter logs at or before this ISO 8601 date-time (inclusive). Must be on or after start_date. + */ + @SpeakeasyMetadata("queryParam:name=end_date") + private JsonNullable endDate; + /** * Filter by a single HTTP status code. For backward compatibility - use status_codes for multiple * values. @@ -41,14 +84,32 @@ public class LogsFilter { @JsonCreator public LogsFilter( JsonNullable connectorId, + JsonNullable path, + JsonNullable pathMatchMode, + JsonNullable httpMethod, + JsonNullable> httpMethods, + JsonNullable startDate, + JsonNullable endDate, JsonNullable statusCode, JsonNullable> statusCodes, JsonNullable excludeUnifiedApis) { Utils.checkNotNull(connectorId, "connectorId"); + Utils.checkNotNull(path, "path"); + Utils.checkNotNull(pathMatchMode, "pathMatchMode"); + Utils.checkNotNull(httpMethod, "httpMethod"); + Utils.checkNotNull(httpMethods, "httpMethods"); + Utils.checkNotNull(startDate, "startDate"); + Utils.checkNotNull(endDate, "endDate"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(statusCodes, "statusCodes"); Utils.checkNotNull(excludeUnifiedApis, "excludeUnifiedApis"); this.connectorId = connectorId; + this.path = path; + this.pathMatchMode = pathMatchMode; + this.httpMethod = httpMethod; + this.httpMethods = httpMethods; + this.startDate = startDate; + this.endDate = endDate; this.statusCode = statusCode; this.statusCodes = statusCodes; this.excludeUnifiedApis = excludeUnifiedApis; @@ -56,14 +117,71 @@ public LogsFilter( public LogsFilter() { this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined()); } + /** + * Filter by connector ID. Known limitation: this field is not currently applied at the log query + * resolver — connector filtering is performed via the service identifier internally (see GH-10099). + */ @JsonIgnore public JsonNullable connectorId() { return connectorId; } + /** + * Filter by request path. Match behavior is controlled by path_match_mode (defaults to CONTAINS). + */ + @JsonIgnore + public JsonNullable path() { + return path; + } + + /** + * How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor + * the match; EXACT requires the whole path to match. Only applied when path is set. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable pathMatchMode() { + return (JsonNullable) pathMatchMode; + } + + /** + * Filter by a single HTTP method. + */ + @JsonIgnore + public JsonNullable httpMethod() { + return httpMethod; + } + + /** + * Filter by multiple HTTP methods. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> httpMethods() { + return (JsonNullable>) httpMethods; + } + + /** + * Filter logs at or after this ISO 8601 date-time (inclusive). + */ + @JsonIgnore + public JsonNullable startDate() { + return startDate; + } + + /** + * Filter logs at or before this ISO 8601 date-time (inclusive). Must be on or after start_date. + */ + @JsonIgnore + public JsonNullable endDate() { + return endDate; + } + /** * Filter by a single HTTP status code. For backward compatibility - use status_codes for multiple * values. @@ -93,18 +211,136 @@ public static Builder builder() { } + /** + * Filter by connector ID. Known limitation: this field is not currently applied at the log query + * resolver — connector filtering is performed via the service identifier internally (see GH-10099). + */ public LogsFilter withConnectorId(String connectorId) { Utils.checkNotNull(connectorId, "connectorId"); this.connectorId = JsonNullable.of(connectorId); return this; } + /** + * Filter by connector ID. Known limitation: this field is not currently applied at the log query + * resolver — connector filtering is performed via the service identifier internally (see GH-10099). + */ public LogsFilter withConnectorId(JsonNullable connectorId) { Utils.checkNotNull(connectorId, "connectorId"); this.connectorId = connectorId; return this; } + /** + * Filter by request path. Match behavior is controlled by path_match_mode (defaults to CONTAINS). + */ + public LogsFilter withPath(String path) { + Utils.checkNotNull(path, "path"); + this.path = JsonNullable.of(path); + return this; + } + + /** + * Filter by request path. Match behavior is controlled by path_match_mode (defaults to CONTAINS). + */ + public LogsFilter withPath(JsonNullable path) { + Utils.checkNotNull(path, "path"); + this.path = path; + return this; + } + + /** + * How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor + * the match; EXACT requires the whole path to match. Only applied when path is set. + */ + public LogsFilter withPathMatchMode(PathMatchMode pathMatchMode) { + Utils.checkNotNull(pathMatchMode, "pathMatchMode"); + this.pathMatchMode = JsonNullable.of(pathMatchMode); + return this; + } + + /** + * How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor + * the match; EXACT requires the whole path to match. Only applied when path is set. + */ + public LogsFilter withPathMatchMode(JsonNullable pathMatchMode) { + Utils.checkNotNull(pathMatchMode, "pathMatchMode"); + this.pathMatchMode = pathMatchMode; + return this; + } + + /** + * Filter by a single HTTP method. + */ + public LogsFilter withHttpMethod(String httpMethod) { + Utils.checkNotNull(httpMethod, "httpMethod"); + this.httpMethod = JsonNullable.of(httpMethod); + return this; + } + + /** + * Filter by a single HTTP method. + */ + public LogsFilter withHttpMethod(JsonNullable httpMethod) { + Utils.checkNotNull(httpMethod, "httpMethod"); + this.httpMethod = httpMethod; + return this; + } + + /** + * Filter by multiple HTTP methods. + */ + public LogsFilter withHttpMethods(List httpMethods) { + Utils.checkNotNull(httpMethods, "httpMethods"); + this.httpMethods = JsonNullable.of(httpMethods); + return this; + } + + /** + * Filter by multiple HTTP methods. + */ + public LogsFilter withHttpMethods(JsonNullable> httpMethods) { + Utils.checkNotNull(httpMethods, "httpMethods"); + this.httpMethods = httpMethods; + return this; + } + + /** + * Filter logs at or after this ISO 8601 date-time (inclusive). + */ + public LogsFilter withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = JsonNullable.of(startDate); + return this; + } + + /** + * Filter logs at or after this ISO 8601 date-time (inclusive). + */ + public LogsFilter withStartDate(JsonNullable startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * Filter logs at or before this ISO 8601 date-time (inclusive). Must be on or after start_date. + */ + public LogsFilter withEndDate(OffsetDateTime endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = JsonNullable.of(endDate); + return this; + } + + /** + * Filter logs at or before this ISO 8601 date-time (inclusive). Must be on or after start_date. + */ + public LogsFilter withEndDate(JsonNullable endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = endDate; + return this; + } + /** * Filter by a single HTTP status code. For backward compatibility - use status_codes for multiple * values. @@ -168,6 +404,12 @@ public boolean equals(java.lang.Object o) { LogsFilter other = (LogsFilter) o; return Utils.enhancedDeepEquals(this.connectorId, other.connectorId) && + Utils.enhancedDeepEquals(this.path, other.path) && + Utils.enhancedDeepEquals(this.pathMatchMode, other.pathMatchMode) && + Utils.enhancedDeepEquals(this.httpMethod, other.httpMethod) && + Utils.enhancedDeepEquals(this.httpMethods, other.httpMethods) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.statusCodes, other.statusCodes) && Utils.enhancedDeepEquals(this.excludeUnifiedApis, other.excludeUnifiedApis); @@ -176,7 +418,9 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - connectorId, statusCode, statusCodes, + connectorId, path, pathMatchMode, + httpMethod, httpMethods, startDate, + endDate, statusCode, statusCodes, excludeUnifiedApis); } @@ -184,6 +428,12 @@ public int hashCode() { public String toString() { return Utils.toString(LogsFilter.class, "connectorId", connectorId, + "path", path, + "pathMatchMode", pathMatchMode, + "httpMethod", httpMethod, + "httpMethods", httpMethods, + "startDate", startDate, + "endDate", endDate, "statusCode", statusCode, "statusCodes", statusCodes, "excludeUnifiedApis", excludeUnifiedApis); @@ -194,6 +444,18 @@ public final static class Builder { private JsonNullable connectorId = JsonNullable.undefined(); + private JsonNullable path = JsonNullable.undefined(); + + private JsonNullable pathMatchMode; + + private JsonNullable httpMethod = JsonNullable.undefined(); + + private JsonNullable> httpMethods = JsonNullable.undefined(); + + private JsonNullable startDate = JsonNullable.undefined(); + + private JsonNullable endDate = JsonNullable.undefined(); + private JsonNullable statusCode = JsonNullable.undefined(); private JsonNullable> statusCodes = JsonNullable.undefined(); @@ -205,12 +467,20 @@ private Builder() { } + /** + * Filter by connector ID. Known limitation: this field is not currently applied at the log query + * resolver — connector filtering is performed via the service identifier internally (see GH-10099). + */ public Builder connectorId(String connectorId) { Utils.checkNotNull(connectorId, "connectorId"); this.connectorId = JsonNullable.of(connectorId); return this; } + /** + * Filter by connector ID. Known limitation: this field is not currently applied at the log query + * resolver — connector filtering is performed via the service identifier internally (see GH-10099). + */ public Builder connectorId(JsonNullable connectorId) { Utils.checkNotNull(connectorId, "connectorId"); this.connectorId = connectorId; @@ -218,6 +488,122 @@ public Builder connectorId(JsonNullable connectorId) { } + /** + * Filter by request path. Match behavior is controlled by path_match_mode (defaults to CONTAINS). + */ + public Builder path(String path) { + Utils.checkNotNull(path, "path"); + this.path = JsonNullable.of(path); + return this; + } + + /** + * Filter by request path. Match behavior is controlled by path_match_mode (defaults to CONTAINS). + */ + public Builder path(JsonNullable path) { + Utils.checkNotNull(path, "path"); + this.path = path; + return this; + } + + + /** + * How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor + * the match; EXACT requires the whole path to match. Only applied when path is set. + */ + public Builder pathMatchMode(PathMatchMode pathMatchMode) { + Utils.checkNotNull(pathMatchMode, "pathMatchMode"); + this.pathMatchMode = JsonNullable.of(pathMatchMode); + return this; + } + + /** + * How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor + * the match; EXACT requires the whole path to match. Only applied when path is set. + */ + public Builder pathMatchMode(JsonNullable pathMatchMode) { + Utils.checkNotNull(pathMatchMode, "pathMatchMode"); + this.pathMatchMode = pathMatchMode; + return this; + } + + + /** + * Filter by a single HTTP method. + */ + public Builder httpMethod(String httpMethod) { + Utils.checkNotNull(httpMethod, "httpMethod"); + this.httpMethod = JsonNullable.of(httpMethod); + return this; + } + + /** + * Filter by a single HTTP method. + */ + public Builder httpMethod(JsonNullable httpMethod) { + Utils.checkNotNull(httpMethod, "httpMethod"); + this.httpMethod = httpMethod; + return this; + } + + + /** + * Filter by multiple HTTP methods. + */ + public Builder httpMethods(List httpMethods) { + Utils.checkNotNull(httpMethods, "httpMethods"); + this.httpMethods = JsonNullable.of(httpMethods); + return this; + } + + /** + * Filter by multiple HTTP methods. + */ + public Builder httpMethods(JsonNullable> httpMethods) { + Utils.checkNotNull(httpMethods, "httpMethods"); + this.httpMethods = httpMethods; + return this; + } + + + /** + * Filter logs at or after this ISO 8601 date-time (inclusive). + */ + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = JsonNullable.of(startDate); + return this; + } + + /** + * Filter logs at or after this ISO 8601 date-time (inclusive). + */ + public Builder startDate(JsonNullable startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + + /** + * Filter logs at or before this ISO 8601 date-time (inclusive). Must be on or after start_date. + */ + public Builder endDate(OffsetDateTime endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = JsonNullable.of(endDate); + return this; + } + + /** + * Filter logs at or before this ISO 8601 date-time (inclusive). Must be on or after start_date. + */ + public Builder endDate(JsonNullable endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = endDate; + return this; + } + + /** * Filter by a single HTTP status code. For backward compatibility - use status_codes for multiple * values. @@ -273,11 +659,22 @@ public Builder excludeUnifiedApis(JsonNullable excludeUnifiedApis) { } public LogsFilter build() { + if (pathMatchMode == null) { + pathMatchMode = _SINGLETON_VALUE_PathMatchMode.value(); + } return new LogsFilter( - connectorId, statusCode, statusCodes, + connectorId, path, pathMatchMode, + httpMethod, httpMethods, startDate, + endDate, statusCode, statusCodes, excludeUnifiedApis); } + + private static final LazySingletonValue> _SINGLETON_VALUE_PathMatchMode = + new LazySingletonValue<>( + "path_match_mode", + "\"CONTAINS\"", + new TypeReference>() {}); } } diff --git a/src/main/java/com/apideck/unify/models/components/PathMatchMode.java b/src/main/java/com/apideck/unify/models/components/PathMatchMode.java new file mode 100644 index 000000000..bc5a132f7 --- /dev/null +++ b/src/main/java/com/apideck/unify/models/components/PathMatchMode.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.apideck.unify.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.Override; +import java.lang.String; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +/** + * Wrapper for an "open" enum that can handle unknown values from API responses + * without runtime errors. Instances are immutable singletons with reference equality. + * Use {@code asEnum()} for switch expressions. + */ +/** + * PathMatchMode + * + *

How the path filter is matched. CONTAINS matches the path anywhere; STARTS_WITH / ENDS_WITH anchor + * the match; EXACT requires the whole path to match. Only applied when path is set. + */ +public class PathMatchMode { + + public static final PathMatchMode CONTAINS = new PathMatchMode("CONTAINS"); + public static final PathMatchMode STARTS_WITH = new PathMatchMode("STARTS_WITH"); + public static final PathMatchMode ENDS_WITH = new PathMatchMode("ENDS_WITH"); + public static final PathMatchMode EXACT = new PathMatchMode("EXACT"); + + // This map will grow whenever a Color gets created with a new + // unrecognized value (a potential memory leak if the user is not + // careful). Keep this field lower case to avoid clashing with + // generated member names which will always be upper cased (Java + // convention) + private static final Map values = createValuesMap(); + private static final Map enums = createEnumsMap(); + + private final String value; + + private PathMatchMode(String value) { + this.value = value; + } + + /** + * Returns a PathMatchMode with the given value. For a specific value the + * returned object will always be a singleton so reference equality + * is satisfied when the values are the same. + * + * @param value value to be wrapped as PathMatchMode + */ + @JsonCreator + public static PathMatchMode of(String value) { + synchronized (PathMatchMode.class) { + return values.computeIfAbsent(value, v -> new PathMatchMode(v)); + } + } + + @JsonValue + public String value() { + return value; + } + + public Optional asEnum() { + return Optional.ofNullable(enums.getOrDefault(value, null)); + } + + public boolean isKnown() { + return asEnum().isPresent(); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + PathMatchMode other = (PathMatchMode) obj; + return Objects.equals(value, other.value); + } + + @Override + public String toString() { + return "PathMatchMode [value=" + value + "]"; + } + + // return an array just like an enum + public static PathMatchMode[] values() { + synchronized (PathMatchMode.class) { + return values.values().toArray(new PathMatchMode[] {}); + } + } + + private static final Map createValuesMap() { + Map map = new LinkedHashMap<>(); + map.put("CONTAINS", CONTAINS); + map.put("STARTS_WITH", STARTS_WITH); + map.put("ENDS_WITH", ENDS_WITH); + map.put("EXACT", EXACT); + return map; + } + + private static final Map createEnumsMap() { + Map map = new HashMap<>(); + map.put("CONTAINS", PathMatchModeEnum.CONTAINS); + map.put("STARTS_WITH", PathMatchModeEnum.STARTS_WITH); + map.put("ENDS_WITH", PathMatchModeEnum.ENDS_WITH); + map.put("EXACT", PathMatchModeEnum.EXACT); + return map; + } + + + public enum PathMatchModeEnum { + + CONTAINS("CONTAINS"), + STARTS_WITH("STARTS_WITH"), + ENDS_WITH("ENDS_WITH"), + EXACT("EXACT"),; + + private final String value; + + private PathMatchModeEnum(String value) { + this.value = value; + } + + public String value() { + return value; + } + } +} + diff --git a/src/main/java/com/apideck/unify/models/components/Payment.java b/src/main/java/com/apideck/unify/models/components/Payment.java index 8c3004563..f5079e8bc 100644 --- a/src/main/java/com/apideck/unify/models/components/Payment.java +++ b/src/main/java/com/apideck/unify/models/components/Payment.java @@ -143,6 +143,11 @@ public class Payment { @JsonProperty("company_id") private JsonNullable companyId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsidiary") + private JsonNullable subsidiary; + /** * Indicates if the transaction has been reconciled. */ @@ -271,6 +276,7 @@ public Payment( @JsonProperty("customer") JsonNullable customer, @JsonProperty("supplier") JsonNullable supplier, @JsonProperty("company_id") JsonNullable companyId, + @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("reconciled") JsonNullable reconciled, @JsonProperty("status") Optional status, @JsonProperty("type") Optional type, @@ -303,6 +309,7 @@ public Payment( Utils.checkNotNull(customer, "customer"); Utils.checkNotNull(supplier, "supplier"); Utils.checkNotNull(companyId, "companyId"); + Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(reconciled, "reconciled"); Utils.checkNotNull(status, "status"); Utils.checkNotNull(type, "type"); @@ -335,6 +342,7 @@ public Payment( this.customer = customer; this.supplier = supplier; this.companyId = companyId; + this.subsidiary = subsidiary; this.reconciled = reconciled; this.status = status; this.type = type; @@ -360,12 +368,12 @@ public Payment( JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - Optional.empty(), Optional.empty(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), Optional.empty()); + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); } /** @@ -507,6 +515,12 @@ public JsonNullable companyId() { return companyId; } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable subsidiary() { + return (JsonNullable) subsidiary; + } + /** * Indicates if the transaction has been reconciled. */ @@ -938,6 +952,18 @@ public Payment withCompanyId(JsonNullable companyId) { return this; } + public Payment withSubsidiary(LinkedSubsidiary subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Payment withSubsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + /** * Indicates if the transaction has been reconciled. */ @@ -1249,6 +1275,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.customer, other.customer) && Utils.enhancedDeepEquals(this.supplier, other.supplier) && Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.reconciled, other.reconciled) && Utils.enhancedDeepEquals(this.status, other.status) && Utils.enhancedDeepEquals(this.type, other.type) && @@ -1275,12 +1302,12 @@ public int hashCode() { paymentMethod, paymentMethodReference, paymentMethodId, accountsReceivableAccountType, accountsReceivableAccountId, account, transactionDate, customer, supplier, - companyId, reconciled, status, - type, allocations, note, - number, trackingCategories, customFields, - rowVersion, displayId, customMappings, - updatedBy, createdBy, createdAt, - updatedAt, passThrough); + companyId, subsidiary, reconciled, + status, type, allocations, + note, number, trackingCategories, + customFields, rowVersion, displayId, + customMappings, updatedBy, createdBy, + createdAt, updatedAt, passThrough); } @Override @@ -1302,6 +1329,7 @@ public String toString() { "customer", customer, "supplier", supplier, "companyId", companyId, + "subsidiary", subsidiary, "reconciled", reconciled, "status", status, "type", type, @@ -1358,6 +1386,8 @@ public final static class Builder { private JsonNullable companyId = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); + private JsonNullable reconciled = JsonNullable.undefined(); private Optional status = Optional.empty(); @@ -1704,6 +1734,19 @@ public Builder companyId(JsonNullable companyId) { } + public Builder subsidiary(LinkedSubsidiary subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Builder subsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + + /** * Indicates if the transaction has been reconciled. */ @@ -2007,12 +2050,12 @@ public Payment build() { paymentMethod, paymentMethodReference, paymentMethodId, accountsReceivableAccountType, accountsReceivableAccountId, account, transactionDate, customer, supplier, - companyId, reconciled, status, - type, allocations, note, - number, trackingCategories, customFields, - rowVersion, displayId, customMappings, - updatedBy, createdBy, createdAt, - updatedAt, passThrough); + companyId, subsidiary, reconciled, + status, type, allocations, + note, number, trackingCategories, + customFields, rowVersion, displayId, + customMappings, updatedBy, createdBy, + createdAt, updatedAt, passThrough); } } diff --git a/src/main/java/com/apideck/unify/models/components/PaymentInput.java b/src/main/java/com/apideck/unify/models/components/PaymentInput.java index e596c4ac5..185396681 100644 --- a/src/main/java/com/apideck/unify/models/components/PaymentInput.java +++ b/src/main/java/com/apideck/unify/models/components/PaymentInput.java @@ -128,6 +128,11 @@ public class PaymentInput { @JsonProperty("company_id") private JsonNullable companyId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsidiary") + private JsonNullable subsidiary; + /** * Indicates if the transaction has been reconciled. */ @@ -219,6 +224,7 @@ public PaymentInput( @JsonProperty("customer") JsonNullable customer, @JsonProperty("supplier") JsonNullable supplier, @JsonProperty("company_id") JsonNullable companyId, + @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("reconciled") JsonNullable reconciled, @JsonProperty("status") Optional status, @JsonProperty("type") Optional type, @@ -244,6 +250,7 @@ public PaymentInput( Utils.checkNotNull(customer, "customer"); Utils.checkNotNull(supplier, "supplier"); Utils.checkNotNull(companyId, "companyId"); + Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(reconciled, "reconciled"); Utils.checkNotNull(status, "status"); Utils.checkNotNull(type, "type"); @@ -269,6 +276,7 @@ public PaymentInput( this.customer = customer; this.supplier = supplier; this.companyId = companyId; + this.subsidiary = subsidiary; this.reconciled = reconciled; this.status = status; this.type = type; @@ -288,10 +296,10 @@ public PaymentInput() { JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty(), Optional.empty(), Optional.empty(), - JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty()); + JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined(), Optional.empty()); } /** @@ -417,6 +425,12 @@ public JsonNullable companyId() { return companyId; } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable subsidiary() { + return (JsonNullable) subsidiary; + } + /** * Indicates if the transaction has been reconciled. */ @@ -780,6 +794,18 @@ public PaymentInput withCompanyId(JsonNullable companyId) { return this; } + public PaymentInput withSubsidiary(LinkedSubsidiaryInput subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public PaymentInput withSubsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + /** * Indicates if the transaction has been reconciled. */ @@ -999,6 +1025,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.customer, other.customer) && Utils.enhancedDeepEquals(this.supplier, other.supplier) && Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.reconciled, other.reconciled) && Utils.enhancedDeepEquals(this.status, other.status) && Utils.enhancedDeepEquals(this.type, other.type) && @@ -1019,11 +1046,11 @@ public int hashCode() { reference, paymentMethod, paymentMethodReference, paymentMethodId, accountsReceivableAccountType, accountsReceivableAccountId, account, transactionDate, customer, - supplier, companyId, reconciled, - status, type, allocations, - note, number, trackingCategories, - customFields, rowVersion, displayId, - passThrough); + supplier, companyId, subsidiary, + reconciled, status, type, + allocations, note, number, + trackingCategories, customFields, rowVersion, + displayId, passThrough); } @Override @@ -1043,6 +1070,7 @@ public String toString() { "customer", customer, "supplier", supplier, "companyId", companyId, + "subsidiary", subsidiary, "reconciled", reconciled, "status", status, "type", type, @@ -1090,6 +1118,8 @@ public final static class Builder { private JsonNullable companyId = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); + private JsonNullable reconciled = JsonNullable.undefined(); private Optional status = Optional.empty(); @@ -1397,6 +1427,19 @@ public Builder companyId(JsonNullable companyId) { } + public Builder subsidiary(LinkedSubsidiaryInput subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = JsonNullable.of(subsidiary); + return this; + } + + public Builder subsidiary(JsonNullable subsidiary) { + Utils.checkNotNull(subsidiary, "subsidiary"); + this.subsidiary = subsidiary; + return this; + } + + /** * Indicates if the transaction has been reconciled. */ @@ -1604,11 +1647,11 @@ public PaymentInput build() { reference, paymentMethod, paymentMethodReference, paymentMethodId, accountsReceivableAccountType, accountsReceivableAccountId, account, transactionDate, customer, - supplier, companyId, reconciled, - status, type, allocations, - note, number, trackingCategories, - customFields, rowVersion, displayId, - passThrough); + supplier, companyId, subsidiary, + reconciled, status, type, + allocations, note, number, + trackingCategories, customFields, rowVersion, + displayId, passThrough); } } diff --git a/src/main/java/com/apideck/unify/models/components/UpdateWebhookRequest.java b/src/main/java/com/apideck/unify/models/components/UpdateWebhookRequest.java index 392a1e2d0..8f5d94910 100644 --- a/src/main/java/com/apideck/unify/models/components/UpdateWebhookRequest.java +++ b/src/main/java/com/apideck/unify/models/components/UpdateWebhookRequest.java @@ -33,7 +33,8 @@ public class UpdateWebhookRequest { private Optional status; /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("delivery_url") @@ -85,7 +86,8 @@ public Optional status() { } /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ @JsonIgnore public Optional deliveryUrl() { @@ -144,7 +146,8 @@ public UpdateWebhookRequest withStatus(Optional status) { } /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ public UpdateWebhookRequest withDeliveryUrl(String deliveryUrl) { Utils.checkNotNull(deliveryUrl, "deliveryUrl"); @@ -154,7 +157,8 @@ public UpdateWebhookRequest withDeliveryUrl(String deliveryUrl) { /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ public UpdateWebhookRequest withDeliveryUrl(Optional deliveryUrl) { Utils.checkNotNull(deliveryUrl, "deliveryUrl"); @@ -268,7 +272,8 @@ public Builder status(Optional status) { /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ public Builder deliveryUrl(String deliveryUrl) { Utils.checkNotNull(deliveryUrl, "deliveryUrl"); @@ -277,7 +282,8 @@ public Builder deliveryUrl(String deliveryUrl) { } /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ public Builder deliveryUrl(Optional deliveryUrl) { Utils.checkNotNull(deliveryUrl, "deliveryUrl"); diff --git a/src/main/java/com/apideck/unify/models/components/Webhook.java b/src/main/java/com/apideck/unify/models/components/Webhook.java index ac5d20fbb..2c3cf677c 100644 --- a/src/main/java/com/apideck/unify/models/components/Webhook.java +++ b/src/main/java/com/apideck/unify/models/components/Webhook.java @@ -54,7 +54,8 @@ public class Webhook { private Optional disabledReason; /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ @JsonProperty("delivery_url") private String deliveryUrl; @@ -173,7 +174,8 @@ public Optional disabledReason() { } /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ @JsonIgnore public String deliveryUrl() { @@ -292,7 +294,8 @@ public Webhook withDisabledReason(Optional disabledRea } /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ public Webhook withDeliveryUrl(String deliveryUrl) { Utils.checkNotNull(deliveryUrl, "deliveryUrl"); @@ -506,7 +509,8 @@ public Builder disabledReason(Optional disabledReason) /** - * The delivery url of the webhook endpoint. + * The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the + * delivery is recorded as failed. */ public Builder deliveryUrl(String deliveryUrl) { Utils.checkNotNull(deliveryUrl, "deliveryUrl"); From 5992d442f3969c74f073544893a7ee0249945cb5 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 05:33:01 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow