From 4c37592b611a3dd386e242ad162350f03bc60d35 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 16 May 2026 00:36:19 +0000 Subject: [PATCH 1/2] ## Java SDK Changes: * `apideck.accounting.creditNotes.list()`: * `request.filter` **Changed** * `apideck.accounting.companyInfo.get()`: `response.data.accountingMethod` **Added** * `apideck.vault.consumers.create()`: `response.data.connections[].health.enum(pendingConfirmation)` **Added** * `apideck.vault.consumers.get()`: `response.data.connections[].health.enum(pendingConfirmation)` **Added** * `apideck.vault.consumers.update()`: `response.data.connections[].health.enum(pendingConfirmation)` **Added** * `apideck.vault.connections.list()`: `response.data[].health.enum(pendingConfirmation)` **Added** * `apideck.vault.connections.get()`: `response.data.health.enum(pendingConfirmation)` **Added** * `apideck.vault.connections.update()`: `response.data.health.enum(pendingConfirmation)` **Added** * `apideck.vault.connections.imports()`: `response.data.health.enum(pendingConfirmation)` **Added** * `apideck.vault.connections.token()`: `response.data.health.enum(pendingConfirmation)` **Added** * `apideck.vault.connectionSettings.list()`: `response.data.health.enum(pendingConfirmation)` **Added** * `apideck.vault.connectionSettings.update()`: `response.data.health.enum(pendingConfirmation)` **Added** --- .speakeasy/gen.lock | 102 +++++++------- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 14 +- README.md | 4 +- RELEASES.md | 12 +- docs/models/components/AccountingMethod.md | 2 +- docs/models/components/BalanceSheetFilter.md | 2 +- .../BalanceSheetFilterAccountingMethod.md | 22 +++ docs/models/components/CompanyInfo.md | 1 + docs/models/components/ConnectionHealth.md | 17 +-- docs/models/components/CreditNotesFilter.md | 4 +- docs/models/components/Health.md | 17 +-- .../AccountingCreditNotesAllRequest.md | 2 +- gradle.properties | 2 +- .../com/apideck/unify/SDKConfiguration.java | 6 +- .../models/components/AccountingMethod.java | 2 +- .../models/components/BalanceSheetFilter.java | 18 +-- .../BalanceSheetFilterAccountingMethod.java | 132 ++++++++++++++++++ .../unify/models/components/CompanyInfo.java | 73 +++++++++- .../models/components/ConnectionHealth.java | 4 + .../models/components/CreditNotesFilter.java | 116 ++++++++++++++- .../unify/models/components/Health.java | 4 + 22 files changed, 453 insertions(+), 105 deletions(-) create mode 100644 docs/models/components/BalanceSheetFilterAccountingMethod.md create mode 100644 src/main/java/com/apideck/unify/models/components/BalanceSheetFilterAccountingMethod.java diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 79f535db0..27992d28b 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,29 +1,29 @@ lockVersion: 2.0.0 id: 38254260-287a-40b6-9ac5-c2fcb654c9cc management: - docChecksum: cecc7ac4b82e6459103483e1bf0b9d20 - docVersion: 10.24.29 - speakeasyVersion: 1.761.9 - generationVersion: 2.881.4 - releaseVersion: 0.31.10 - configChecksum: 77fa726b65f7bd2349e1001c1b8fd43d + docChecksum: bdedcf3d4acc6b9571ddac5a0a4bcae7 + docVersion: 10.24.33 + speakeasyVersion: 1.763.1 + generationVersion: 2.884.4 + releaseVersion: 0.31.11 + configChecksum: b6709dac1cd762a8942b57ee1c37c657 repoURL: https://github.com/apideck-libraries/sdk-java.git installationURL: https://github.com/apideck-libraries/sdk-java published: true persistentEdits: - generation_id: 0436fd0a-fb5a-4a5f-95a7-8619d35b8159 - pristine_commit_hash: a0e2930480e1ab148eab840951ee6d10dca7b749 - pristine_tree_hash: deb305447cf15e3c0b2732ad69fe086d87459349 + generation_id: a0b1c710-2912-4009-b730-365a46f73b11 + pristine_commit_hash: 36419e1fbc994420e4b2c661072d7c0ac1da8863 + pristine_tree_hash: 776dfdbfb3500d6a5cbd3d3420e90d445be9d783 features: java: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 additionalProperties: 0.0.1 constsAndDefaults: 0.1.3 - core: 3.55.23 + core: 3.55.24 deprecations: 2.81.2 downloadStreams: 0.1.1 - errors: 1.0.1 + errors: 1.0.2 flattening: 2.81.1 globalSecurity: 2.83.4 globalSecurityCallbacks: 0.1.0 @@ -36,7 +36,7 @@ features: nameOverrides: 2.81.5 nullables: 0.1.0 openEnums: 0.2.0 - pagination: 1.0.2 + pagination: 1.0.3 retries: 0.1.2 sdkHooks: 1.2.0 typeOverrides: 2.81.1 @@ -129,8 +129,8 @@ trackedFiles: pristine_git_object: 1906d08c779333d060ae0e3453d0428f19194c4e docs/models/components/AccountingMethod.md: id: 82320c53981e - last_write_checksum: sha1:fddc156f22f88abd54f6d02f73f9ff95e6c17cfb - pristine_git_object: 51ce02f3892e52904f08aacf549d0e02729b5a16 + last_write_checksum: sha1:910e78f7d4619365efae3f80e62f9532dda5e463 + pristine_git_object: 4ef506b5d72c357766025c0fcc3dd17a56fe0f3e docs/models/components/AccountingPeriod.md: id: 48f9562d3c67 last_write_checksum: sha1:4e08ecef84784a27acd68edab04744dd3a292ce6 @@ -329,8 +329,12 @@ trackedFiles: pristine_git_object: c6cab0aee1f52642c4ad3458fd2e91a5cd6d08a2 docs/models/components/BalanceSheetFilter.md: id: 9e5fd7cb3feb - last_write_checksum: sha1:ecd5f8f49d2fe00d22063d6f64235595453f1e7d - pristine_git_object: f81beb4126494c664045ba7abdc41f6e433b6631 + last_write_checksum: sha1:821159e1633aec9506254ccddde5f51da9b2770c + pristine_git_object: 57498891837fa1e94e3ad3b9de78e4ab47b66828 + docs/models/components/BalanceSheetFilterAccountingMethod.md: + id: 5c5ad1bf7331 + last_write_checksum: sha1:4214187bc1838178c5fec2fc9b4a47f3e8d3d3f4 + pristine_git_object: 53824c8a4d2ed7d658f5c1890e407991e27840cf docs/models/components/BalanceSheetLiabilitiesAccount.md: id: 69f6f313af32 last_write_checksum: sha1:c488b70d5cf70ae2b016451c49db1ceaf4192d81 @@ -569,8 +573,8 @@ trackedFiles: pristine_git_object: 30d76b563711f21093139c8bc5857a668a16bedd docs/models/components/CompanyInfo.md: id: e11ad1ab52a7 - last_write_checksum: sha1:df7cffc7c236f95ce15430fcd40a7bdee23ad759 - pristine_git_object: 7549986c2f29c473edfc09e55ee95d1ead33da2b + last_write_checksum: sha1:9481b3f8539f21247a9a82986d0131465f754291 + pristine_git_object: 68be89b6e6ac17ac90af3c3adc25b3ae15afdd33 docs/models/components/CompanyRowType.md: id: 7f9670413bc7 last_write_checksum: sha1:fdc086246903ddf7699e8ddafad69ba13773a701 @@ -605,8 +609,8 @@ trackedFiles: pristine_git_object: 63d8d4ad3e3790ac68af1cec3ad86e5aaf5a7da3 docs/models/components/ConnectionHealth.md: id: b5ccb4f74180 - last_write_checksum: sha1:03fb6e1490e1412cbef6e0a42c1a73752911ecbe - pristine_git_object: 4f78dd8d0707bffef2aaf048bb3ef8e545d0b369 + last_write_checksum: sha1:451bfd1e69ed7046c6ba2013e188840d1138c2cc + pristine_git_object: b4104ef82278c1bf38c84297fcb34b42ba7a3938 docs/models/components/ConnectionImportData.md: id: 081667dfc5f8 last_write_checksum: sha1:bbc7e86d8159026727cc8951a1f51ade7be784fc @@ -1025,8 +1029,8 @@ trackedFiles: pristine_git_object: a9f3593df5ba401a8ff17eb6b3e2935e39f33612 docs/models/components/CreditNotesFilter.md: id: 4dbf5ec9a97b - last_write_checksum: sha1:cbd8943b04ce4d8160532a69ded6de49926802e2 - pristine_git_object: 327b60c7a43086c65b2ae47c35cb891e1d449dd6 + last_write_checksum: sha1:f5a355b4cc9b803e92256c042df9722ca088824f + pristine_git_object: 8e1270accb3bcc1c6ec22c4f98f6da2072bf78d0 docs/models/components/CreditNotesSort.md: id: bbb7608ff153 last_write_checksum: sha1:9ac6a78301d6e5f0e4d40503b28df75eeda83d6e @@ -2389,8 +2393,8 @@ trackedFiles: pristine_git_object: 5bc8d5abf7c0bfccd35203dc866ec7b8f277580f docs/models/components/Health.md: id: a7a172adcc39 - last_write_checksum: sha1:38d279f9a9aa043c5067db702fd415a7d1b86839 - pristine_git_object: a3d609bdf703db4f85ebd09eccd210933fcbf8ef + last_write_checksum: sha1:1c0033e612791e588bdc0dca5c05fea30aabb0bd + pristine_git_object: ebe35dfa6f2d27427a16951e64a96d4c6a3dbc51 docs/models/components/HrisCompany.md: id: 33c1974002da last_write_checksum: sha1:09667235c410981ffde95ed511680c4040c59c14 @@ -4245,8 +4249,8 @@ trackedFiles: pristine_git_object: 32a12282f74c00c97d91166eade3c07df14131fd docs/models/operations/AccountingCreditNotesAllRequest.md: id: 1f2fe6303826 - last_write_checksum: sha1:6e10949e501964420d1d2bb738e9360f947d99d8 - pristine_git_object: d9e4b215a8989b3a68dedd4a6d7f49dde5c50e8c + last_write_checksum: sha1:e24257bf310bbd6949d2c1657c015bcc17564158 + pristine_git_object: 4e3aaf929f23db22aeb18ece99bf904032d5cde9 docs/models/operations/AccountingCreditNotesAllResponse.md: id: d8688d0123d9 last_write_checksum: sha1:9eda509b5d0c5a7cdebf119b8bd1b0d2ef298e89 @@ -7017,8 +7021,8 @@ trackedFiles: pristine_git_object: c755c6aa377f358344e761e9cc3e7b67bc1fb479 gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:40560cefd6b49207a837465a4f5077976b7ef229 - pristine_git_object: 72ee18dd88803a8685f002e912c57a724943f61d + last_write_checksum: sha1:6a96546230a5640494d310bb7e29a2116d172eb5 + pristine_git_object: f144cedb7bb27015f0c4c9e13b812750fc0361b0 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -7837,8 +7841,8 @@ trackedFiles: pristine_git_object: 7296db7ebcdcff7ee348d1f993fc4aa2a7e6c145 src/main/java/com/apideck/unify/SDKConfiguration.java: id: a2b330a87142 - last_write_checksum: sha1:fa8c8bfcc8824595bf44b8f76937f4699b3d2e42 - pristine_git_object: e2cdd8af987eda6313dced5a1f649001a06fc8fa + last_write_checksum: sha1:9c41ba312dab61833851432333236211da180f6d + pristine_git_object: 617de712e8d91b761babc264febc0d5f9f423e4c src/main/java/com/apideck/unify/SecuritySource.java: id: e4566c6c806b last_write_checksum: sha1:101bf1a9f5cf4e8c37abb4540147276eebb2bab0 @@ -7977,8 +7981,8 @@ trackedFiles: pristine_git_object: 65532410d26a567b6435e257ba27afc57f727700 src/main/java/com/apideck/unify/models/components/AccountingMethod.java: id: d540327bd2a1 - last_write_checksum: sha1:1841ccafd0fb6dba462ab1474da0997838f355ff - pristine_git_object: 95bd8c9a91cf0892d49bf1b7dc8dc1cd501d0c0e + last_write_checksum: sha1:a5f22f0e60184f4c7d815c43bb1df4c5098dc29e + pristine_git_object: 68e42d22e5e6d83fc330aa02812c15bfb5439277 src/main/java/com/apideck/unify/models/components/AccountingPeriod.java: id: 42ff17c149c0 last_write_checksum: sha1:0ee4ae37b4173fd0115ee988ef9bcf6b65f4fe2a @@ -8177,8 +8181,12 @@ trackedFiles: pristine_git_object: bb47c7aa114bc75a67da758349bcc5bcf5d62911 src/main/java/com/apideck/unify/models/components/BalanceSheetFilter.java: id: 9462b2d770ff - last_write_checksum: sha1:12fae82a0be215b63e756ec63627c28c37f4af40 - pristine_git_object: d814437c409aec8cf5680fdb5d14deb006f21104 + last_write_checksum: sha1:60c0e11371278a4d1f53cb49cf33abf7e95929d7 + pristine_git_object: 0f37dc60a0554b090be43997b6c6655de56e3fcc + src/main/java/com/apideck/unify/models/components/BalanceSheetFilterAccountingMethod.java: + id: dd210dd29ee1 + last_write_checksum: sha1:401feabc44b9293f27aef7ce93c9270d72b17eae + pristine_git_object: 41064e5972224db3b698ec8c3ffe69b07ae91cd2 src/main/java/com/apideck/unify/models/components/BalanceSheetLiabilitiesAccount.java: id: 70067a53f9b8 last_write_checksum: sha1:d34d648beb41f5fd140762f1914c0efd086a5582 @@ -8417,8 +8425,8 @@ trackedFiles: pristine_git_object: 62a908b92ac04d51ed9aff0af2782e6af8c178aa src/main/java/com/apideck/unify/models/components/CompanyInfo.java: id: e43a75accc84 - last_write_checksum: sha1:814b2c26f84bd64fa399189614e8631cf5175d9e - pristine_git_object: f156f26da8c703f95f65e2883d53c137de5ab00c + last_write_checksum: sha1:06a37f774faa9248e36ed30c80ed41324d93a255 + pristine_git_object: 2fa5a833874e7df47b2cef7307fe9484098c0949 src/main/java/com/apideck/unify/models/components/CompanyRowType.java: id: e45087911601 last_write_checksum: sha1:90d12df3109223e50056f597bf68a25ba6410398 @@ -8453,8 +8461,8 @@ trackedFiles: pristine_git_object: 627530510884edb62e6186c68533225c7b52a7cc src/main/java/com/apideck/unify/models/components/ConnectionHealth.java: id: ef37b04e8ccb - last_write_checksum: sha1:5510abfdc8998e69a5458a2c3f57478d6da703cf - pristine_git_object: e5467602f5bc925835814e207861c28de094d635 + last_write_checksum: sha1:7fbac85dbfdb76b39030ff63eceded28fe0a16ad + pristine_git_object: ea12d799de264a87700adeb31c18bec274c7c379 src/main/java/com/apideck/unify/models/components/ConnectionImportData.java: id: de284826da0e last_write_checksum: sha1:2f61ad19d18ace13237494a18df57d327321db90 @@ -8873,8 +8881,8 @@ trackedFiles: pristine_git_object: e82ab4b3ef5268d86126b48a28d0df6be8d7d120 src/main/java/com/apideck/unify/models/components/CreditNotesFilter.java: id: bb84f996125e - last_write_checksum: sha1:6de215b6ab73218f3565ab6a8c0f22b149045e0e - pristine_git_object: 97b6b7d39fd451b9af87d72122e4e5f8f9e7c4c7 + last_write_checksum: sha1:e6cf259ac0951e8579e88627b96822ee27093654 + pristine_git_object: a7fca4346f404b38b491acd6e3c7fa503a37a049 src/main/java/com/apideck/unify/models/components/CreditNotesSort.java: id: 86c0e2c03e22 last_write_checksum: sha1:0b1ed15679a2f2029af41ed1d780f6898fdd72ac @@ -10241,8 +10249,8 @@ trackedFiles: pristine_git_object: 2c98acc94ee9d574e3407ec1d248add4cab70164 src/main/java/com/apideck/unify/models/components/Health.java: id: 69c74c3b675d - last_write_checksum: sha1:1b42a31764487c19d0b229260b9aebd734e32265 - pristine_git_object: daab30cc77b4d473ae56a9019137218ac78ebe0e + last_write_checksum: sha1:513cf64dbc5b02373c9b056f92d9ca3a22c90c4b + pristine_git_object: 448637f5a07b8e2c2ebef79d24221444672e700d src/main/java/com/apideck/unify/models/components/HrisCompany.java: id: d1b5184cc35e last_write_checksum: sha1:a367d68f549dfdc80eeaf549212abbf3e18be417 @@ -21555,7 +21563,7 @@ examples: query: raw: false limit: 20 - filter: {"id_since": "1", "updated_since": "2020-09-30T07:43:32.000Z"} + filter: {"id_since": "1", "updated_since": "2020-09-30T07:43:32.000Z", "created_since": "2020-09-30T07:43:32.000Z", "number": "OIT00546"} sort: {"by": "updated_at", "direction": "desc"} pass_through: {"search": "San Francisco"} fields: "id,updated_at" @@ -22642,7 +22650,7 @@ examples: x-apideck-company-id: "12345" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "company-info", "operation": "one", "data": {"id": "12345", "company_name": "SpaceX", "status": "active", "legal_name": "SpaceX Inc.", "country": "US", "sales_tax_number": "111.222.333", "default_sales_tax": {"id": "1234", "display_id": "12345", "name": "GST on Purchases", "code": "ABN", "description": "Reduced rate GST Purchases", "effective_tax_rate": 10, "country": "US", "total_tax_rate": 10, "tax_payable_account_id": "123456", "tax_remitted_account_id": "123456", "components": [{"id": "10", "name": "GST", "rate": 10, "compound": true}], "type": "NONE", "report_tax_type": "NONE", "original_tax_rate_id": "12345", "status": "active", "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"}}}]}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}]}, "currency": "USD", "language": "EN", "fiscal_year_start_month": "January", "company_start_date": "2015-06-05", "addresses": [{"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"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "tracking_categories_mode": "disabled", "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"}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "company-info", "operation": "one", "data": {"id": "12345", "company_name": "SpaceX", "status": "active", "legal_name": "SpaceX Inc.", "country": "US", "sales_tax_number": "111.222.333", "default_sales_tax": {"id": "1234", "display_id": "12345", "name": "GST on Purchases", "code": "ABN", "description": "Reduced rate GST Purchases", "effective_tax_rate": 10, "country": "US", "total_tax_rate": 10, "tax_payable_account_id": "123456", "tax_remitted_account_id": "123456", "components": [{"id": "10", "name": "GST", "rate": 10, "compound": true}], "type": "NONE", "report_tax_type": "NONE", "original_tax_rate_id": "12345", "status": "active", "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"}}}]}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}]}, "currency": "USD", "language": "EN", "fiscal_year_start_month": "January", "company_start_date": "2015-06-05", "addresses": [{"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"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "tracking_categories_mode": "disabled", "accounting_method": "accrual", "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"}} "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": @@ -36513,11 +36521,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: - * `apideck.accounting.bills.list()`: `request` **Changed** - * `apideck.accounting.invoices.list()`: `request` **Changed** - * `apideck.accounting.creditNotes.list()`: `request` **Changed** +releaseNotes: "## Java SDK Changes:\n* `apideck.accounting.creditNotes.list()`: \n * `request.filter` **Changed**\n* `apideck.accounting.companyInfo.get()`: `response.data.accountingMethod` **Added**\n* `apideck.vault.consumers.create()`: `response.data.connections[].health.enum(pendingConfirmation)` **Added**\n* `apideck.vault.consumers.get()`: `response.data.connections[].health.enum(pendingConfirmation)` **Added**\n* `apideck.vault.consumers.update()`: `response.data.connections[].health.enum(pendingConfirmation)` **Added**\n* `apideck.vault.connections.list()`: `response.data[].health.enum(pendingConfirmation)` **Added**\n* `apideck.vault.connections.get()`: `response.data.health.enum(pendingConfirmation)` **Added**\n* `apideck.vault.connections.update()`: `response.data.health.enum(pendingConfirmation)` **Added**\n* `apideck.vault.connections.imports()`: `response.data.health.enum(pendingConfirmation)` **Added**\n* `apideck.vault.connections.token()`: `response.data.health.enum(pendingConfirmation)` **Added**\n* `apideck.vault.connectionSettings.list()`: `response.data.health.enum(pendingConfirmation)` **Added**\n* `apideck.vault.connectionSettings.update()`: `response.data.health.enum(pendingConfirmation)` **Added**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 7e058644e..9e25ed462 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 0.31.10 + version: 0.31.11 additionalDependencies: [] additionalPlugins: [] artifactID: unify diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 7de63797e..799fae69f 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,20 @@ -speakeasyVersion: 1.761.9 +speakeasyVersion: 1.763.1 sources: Apideck-OAS: sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:0a13bfd8dd214be2a1eb900f58d2137662875fc57ff002924d18083703687349 - sourceBlobDigest: sha256:57267224b35a3b4d15da03db3a65b4c2535a827573b9c23e650ce6d1c35ea7b5 + sourceRevisionDigest: sha256:610834c412f375c81c94a9919c126e5526c5a6dc8ac3ca7cf34da9714bc91cee + sourceBlobDigest: sha256:5a2f2e258f90569f9c50dca7a591a1837121dfbe1cc2bdbb1872b34864e83bf6 tags: - latest - - 10.24.29 + - 10.24.33 targets: apideck: source: Apideck-OAS sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:0a13bfd8dd214be2a1eb900f58d2137662875fc57ff002924d18083703687349 - sourceBlobDigest: sha256:57267224b35a3b4d15da03db3a65b4c2535a827573b9c23e650ce6d1c35ea7b5 + sourceRevisionDigest: sha256:610834c412f375c81c94a9919c126e5526c5a6dc8ac3ca7cf34da9714bc91cee + sourceBlobDigest: sha256:5a2f2e258f90569f9c50dca7a591a1837121dfbe1cc2bdbb1872b34864e83bf6 codeSamplesNamespace: apideck-oas-java-code-samples - codeSamplesRevisionDigest: sha256:a9f863479976146b5942dffeab0d695596909e85df008fe4826fd5b44adc8633 + codeSamplesRevisionDigest: sha256:a08b969257a7806e8a1bb76b1882c9f517189ea74a40f52c712d5ed5da456110 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 1bedd7f06..9fb065c4d 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.10' +implementation 'com.apideck:unify:0.31.11' ``` Maven: @@ -59,7 +59,7 @@ Maven: com.apideck unify - 0.31.10 + 0.31.11 ``` diff --git a/RELEASES.md b/RELEASES.md index af52def53..0ed068377 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -838,4 +838,14 @@ Based on: ### Generated - [java v0.31.10] . ### Releases -- [Maven Central v0.31.10] https://central.sonatype.com/artifact/com.apideck/unify/0.31.10 - . \ No newline at end of file +- [Maven Central v0.31.10] https://central.sonatype.com/artifact/com.apideck/unify/0.31.10 - . + +## 2026-05-16 00:32:41 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.763.1 (2.884.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.31.11] . +### Releases +- [Maven Central v0.31.11] https://central.sonatype.com/artifact/com.apideck/unify/0.31.11 - . \ No newline at end of file diff --git a/docs/models/components/AccountingMethod.md b/docs/models/components/AccountingMethod.md index 51ce02f38..4ef506b5d 100644 --- a/docs/models/components/AccountingMethod.md +++ b/docs/models/components/AccountingMethod.md @@ -1,6 +1,6 @@ # AccountingMethod -The accounting method used for the report: cash or accrual. +The accounting basis used by the company for financial reports. ## Example Usage diff --git a/docs/models/components/BalanceSheetFilter.md b/docs/models/components/BalanceSheetFilter.md index f81beb412..574988918 100644 --- a/docs/models/components/BalanceSheetFilter.md +++ b/docs/models/components/BalanceSheetFilter.md @@ -10,4 +10,4 @@ | `periodCount` | *Optional\* | :heavy_minus_sign: | The number of periods to include in the resource. | 3 | | `periodType` | [Optional\](../../models/components/PeriodType.md) | :heavy_minus_sign: | The type of period to include in the resource: month, quarter, year. | month | | `locationId` | *Optional\* | :heavy_minus_sign: | The ID of the location to include in the resource. | 123 | -| `accountingMethod` | [Optional\](../../models/components/AccountingMethod.md) | :heavy_minus_sign: | The accounting method used for the report: cash or accrual. | accrual | \ No newline at end of file +| `accountingMethod` | [Optional\](../../models/components/BalanceSheetFilterAccountingMethod.md) | :heavy_minus_sign: | The accounting method used for the report: cash or accrual. | accrual | \ No newline at end of file diff --git a/docs/models/components/BalanceSheetFilterAccountingMethod.md b/docs/models/components/BalanceSheetFilterAccountingMethod.md new file mode 100644 index 000000000..53824c8a4 --- /dev/null +++ b/docs/models/components/BalanceSheetFilterAccountingMethod.md @@ -0,0 +1,22 @@ +# BalanceSheetFilterAccountingMethod + +The accounting method used for the report: cash or accrual. + +## Example Usage + +```java +import com.apideck.unify.models.components.BalanceSheetFilterAccountingMethod; + +BalanceSheetFilterAccountingMethod value = BalanceSheetFilterAccountingMethod.CASH; + +// Open enum: use .of() to create instances from custom string values +BalanceSheetFilterAccountingMethod custom = BalanceSheetFilterAccountingMethod.of("custom_value"); +``` + + +## Values + +| Name | Value | +| --------- | --------- | +| `CASH` | cash | +| `ACCRUAL` | accrual | \ No newline at end of file diff --git a/docs/models/components/CompanyInfo.md b/docs/models/components/CompanyInfo.md index 7549986c2..68be89b6e 100644 --- a/docs/models/components/CompanyInfo.md +++ b/docs/models/components/CompanyInfo.md @@ -24,6 +24,7 @@ | `customMappings` | Map\ | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | | `trackingCategoriesEnabled` | *Optional\* | :heavy_minus_sign: | Whether tracking categories are enabled for the company on transactions | | | `trackingCategoriesMode` | [Optional\](../../models/components/TrackingCategoriesMode.md) | :heavy_minus_sign: | The mode of tracking categories for the company on transactions | disabled | +| `accountingMethod` | [JsonNullable\](../../models/components/AccountingMethod.md) | :heavy_minus_sign: | The accounting basis used by the company for financial reports. | accrual | | `rowVersion` | *JsonNullable\* | :heavy_minus_sign: | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | 1-12345 | | `updatedBy` | *JsonNullable\* | :heavy_minus_sign: | The user who last updated the object. | 12345 | | `createdBy` | *JsonNullable\* | :heavy_minus_sign: | The user who created the object. | 12345 | diff --git a/docs/models/components/ConnectionHealth.md b/docs/models/components/ConnectionHealth.md index 4f78dd8d0..b4104ef82 100644 --- a/docs/models/components/ConnectionHealth.md +++ b/docs/models/components/ConnectionHealth.md @@ -16,11 +16,12 @@ ConnectionHealth custom = ConnectionHealth.of("custom_value"); ## Values -| Name | Value | -| ------------------ | ------------------ | -| `OK` | ok | -| `PENDING_REFRESH` | pending_refresh | -| `NEEDS_AUTH` | needs_auth | -| `NEEDS_CONSENT` | needs_consent | -| `REVOKED` | revoked | -| `MISSING_SETTINGS` | missing_settings | \ No newline at end of file +| Name | Value | +| ---------------------- | ---------------------- | +| `OK` | ok | +| `PENDING_REFRESH` | pending_refresh | +| `NEEDS_AUTH` | needs_auth | +| `PENDING_CONFIRMATION` | pending_confirmation | +| `NEEDS_CONSENT` | needs_consent | +| `REVOKED` | revoked | +| `MISSING_SETTINGS` | missing_settings | \ No newline at end of file diff --git a/docs/models/components/CreditNotesFilter.md b/docs/models/components/CreditNotesFilter.md index 327b60c7a..8e1270acc 100644 --- a/docs/models/components/CreditNotesFilter.md +++ b/docs/models/components/CreditNotesFilter.md @@ -6,4 +6,6 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `idSince` | *Optional\* | :heavy_minus_sign: | Return records with a row ID greater than or equal to the given value | 1 | -| `updatedSince` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2020-09-30T07:43:32.000Z | \ No newline at end of file +| `updatedSince` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2020-09-30T07:43:32.000Z | +| `createdSince` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2020-09-30T07:43:32.000Z | +| `number` | *Optional\* | :heavy_minus_sign: | Credit note number to search for | OIT00546 | \ No newline at end of file diff --git a/docs/models/components/Health.md b/docs/models/components/Health.md index a3d609bdf..ebe35dfa6 100644 --- a/docs/models/components/Health.md +++ b/docs/models/components/Health.md @@ -16,11 +16,12 @@ Health custom = Health.of("custom_value"); ## Values -| Name | Value | -| ------------------ | ------------------ | -| `REVOKED` | revoked | -| `MISSING_SETTINGS` | missing_settings | -| `NEEDS_CONSENT` | needs_consent | -| `NEEDS_AUTH` | needs_auth | -| `PENDING_REFRESH` | pending_refresh | -| `OK` | ok | \ No newline at end of file +| Name | Value | +| ---------------------- | ---------------------- | +| `REVOKED` | revoked | +| `MISSING_SETTINGS` | missing_settings | +| `NEEDS_CONSENT` | needs_consent | +| `PENDING_CONFIRMATION` | pending_confirmation | +| `NEEDS_AUTH` | needs_auth | +| `PENDING_REFRESH` | pending_refresh | +| `OK` | ok | \ No newline at end of file diff --git a/docs/models/operations/AccountingCreditNotesAllRequest.md b/docs/models/operations/AccountingCreditNotesAllRequest.md index d9e4b215a..4e3aaf929 100644 --- a/docs/models/operations/AccountingCreditNotesAllRequest.md +++ b/docs/models/operations/AccountingCreditNotesAllRequest.md @@ -12,7 +12,7 @@ | `companyId` | *Optional\* | :heavy_minus_sign: | The ID of the company to scope requests to. For connectors that support multi-company, this overrides the default company configured in connection settings. | 12345 | | `cursor` | *JsonNullable\* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | | `limit` | *Optional\* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `filter` | [Optional\](../../models/components/CreditNotesFilter.md) | :heavy_minus_sign: | Apply filters | {
"updated_since": "2020-09-30T07:43:32.000Z",
"id_since": "1"
} | +| `filter` | [Optional\](../../models/components/CreditNotesFilter.md) | :heavy_minus_sign: | Apply filters | {
"updated_since": "2020-09-30T07:43:32.000Z",
"created_since": "2020-09-30T07:43:32.000Z",
"number": "OIT00546",
"id_since": "1"
} | | `sort` | [Optional\](../../models/components/CreditNotesSort.md) | :heavy_minus_sign: | Apply sorting | {
"by": "updated_at",
"direction": "desc"
} | | `passThrough` | Map\ | :heavy_minus_sign: | Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads | {
"search": "San Francisco"
} | | `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 72ee18dd8..f144cedb7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.apideck artifactId=unify -version=0.31.10 +version=0.31.11 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/src/main/java/com/apideck/unify/SDKConfiguration.java b/src/main/java/com/apideck/unify/SDKConfiguration.java index e2cdd8af9..617de712e 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.29"; - public static final String SDK_VERSION = "0.31.10"; - public static final String GEN_VERSION = "2.881.4"; + public static final String OPENAPI_DOC_VERSION = "10.24.33"; + public static final String SDK_VERSION = "0.31.11"; + public static final String GEN_VERSION = "2.884.4"; 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/models/components/AccountingMethod.java b/src/main/java/com/apideck/unify/models/components/AccountingMethod.java index 95bd8c9a9..68e42d22e 100644 --- a/src/main/java/com/apideck/unify/models/components/AccountingMethod.java +++ b/src/main/java/com/apideck/unify/models/components/AccountingMethod.java @@ -21,7 +21,7 @@ /** * AccountingMethod * - *

The accounting method used for the report: cash or accrual. + *

The accounting basis used by the company for financial reports. */ public class AccountingMethod { diff --git a/src/main/java/com/apideck/unify/models/components/BalanceSheetFilter.java b/src/main/java/com/apideck/unify/models/components/BalanceSheetFilter.java index d814437c4..0f37dc60a 100644 --- a/src/main/java/com/apideck/unify/models/components/BalanceSheetFilter.java +++ b/src/main/java/com/apideck/unify/models/components/BalanceSheetFilter.java @@ -53,7 +53,7 @@ public class BalanceSheetFilter { * The accounting method used for the report: cash or accrual. */ @SpeakeasyMetadata("queryParam:name=accounting_method") - private Optional accountingMethod; + private Optional accountingMethod; @JsonCreator public BalanceSheetFilter( @@ -62,7 +62,7 @@ public BalanceSheetFilter( Optional periodCount, Optional periodType, Optional locationId, - Optional accountingMethod) { + Optional accountingMethod) { Utils.checkNotNull(startDate, "startDate"); Utils.checkNotNull(endDate, "endDate"); Utils.checkNotNull(periodCount, "periodCount"); @@ -131,8 +131,8 @@ public Optional locationId() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional accountingMethod() { - return (Optional) accountingMethod; + public Optional accountingMethod() { + return (Optional) accountingMethod; } public static Builder builder() { @@ -244,7 +244,7 @@ public BalanceSheetFilter withLocationId(Optional locationId) { /** * The accounting method used for the report: cash or accrual. */ - public BalanceSheetFilter withAccountingMethod(AccountingMethod accountingMethod) { + public BalanceSheetFilter withAccountingMethod(BalanceSheetFilterAccountingMethod accountingMethod) { Utils.checkNotNull(accountingMethod, "accountingMethod"); this.accountingMethod = Optional.ofNullable(accountingMethod); return this; @@ -254,7 +254,7 @@ public BalanceSheetFilter withAccountingMethod(AccountingMethod accountingMethod /** * The accounting method used for the report: cash or accrual. */ - public BalanceSheetFilter withAccountingMethod(Optional accountingMethod) { + public BalanceSheetFilter withAccountingMethod(Optional accountingMethod) { Utils.checkNotNull(accountingMethod, "accountingMethod"); this.accountingMethod = accountingMethod; return this; @@ -310,7 +310,7 @@ public final static class Builder { private Optional locationId = Optional.empty(); - private Optional accountingMethod = Optional.empty(); + private Optional accountingMethod = Optional.empty(); private Builder() { // force use of static builder() method @@ -421,7 +421,7 @@ public Builder locationId(Optional locationId) { /** * The accounting method used for the report: cash or accrual. */ - public Builder accountingMethod(AccountingMethod accountingMethod) { + public Builder accountingMethod(BalanceSheetFilterAccountingMethod accountingMethod) { Utils.checkNotNull(accountingMethod, "accountingMethod"); this.accountingMethod = Optional.ofNullable(accountingMethod); return this; @@ -430,7 +430,7 @@ public Builder accountingMethod(AccountingMethod accountingMethod) { /** * The accounting method used for the report: cash or accrual. */ - public Builder accountingMethod(Optional accountingMethod) { + public Builder accountingMethod(Optional accountingMethod) { Utils.checkNotNull(accountingMethod, "accountingMethod"); this.accountingMethod = accountingMethod; return this; diff --git a/src/main/java/com/apideck/unify/models/components/BalanceSheetFilterAccountingMethod.java b/src/main/java/com/apideck/unify/models/components/BalanceSheetFilterAccountingMethod.java new file mode 100644 index 000000000..41064e597 --- /dev/null +++ b/src/main/java/com/apideck/unify/models/components/BalanceSheetFilterAccountingMethod.java @@ -0,0 +1,132 @@ +/* + * 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. + */ +/** + * BalanceSheetFilterAccountingMethod + * + *

The accounting method used for the report: cash or accrual. + */ +public class BalanceSheetFilterAccountingMethod { + + public static final BalanceSheetFilterAccountingMethod CASH = new BalanceSheetFilterAccountingMethod("cash"); + public static final BalanceSheetFilterAccountingMethod ACCRUAL = new BalanceSheetFilterAccountingMethod("accrual"); + + // 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 BalanceSheetFilterAccountingMethod(String value) { + this.value = value; + } + + /** + * Returns a BalanceSheetFilterAccountingMethod 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 BalanceSheetFilterAccountingMethod + */ + @JsonCreator + public static BalanceSheetFilterAccountingMethod of(String value) { + synchronized (BalanceSheetFilterAccountingMethod.class) { + return values.computeIfAbsent(value, v -> new BalanceSheetFilterAccountingMethod(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; + BalanceSheetFilterAccountingMethod other = (BalanceSheetFilterAccountingMethod) obj; + return Objects.equals(value, other.value); + } + + @Override + public String toString() { + return "BalanceSheetFilterAccountingMethod [value=" + value + "]"; + } + + // return an array just like an enum + public static BalanceSheetFilterAccountingMethod[] values() { + synchronized (BalanceSheetFilterAccountingMethod.class) { + return values.values().toArray(new BalanceSheetFilterAccountingMethod[] {}); + } + } + + private static final Map createValuesMap() { + Map map = new LinkedHashMap<>(); + map.put("cash", CASH); + map.put("accrual", ACCRUAL); + return map; + } + + private static final Map createEnumsMap() { + Map map = new HashMap<>(); + map.put("cash", BalanceSheetFilterAccountingMethodEnum.CASH); + map.put("accrual", BalanceSheetFilterAccountingMethodEnum.ACCRUAL); + return map; + } + + + public enum BalanceSheetFilterAccountingMethodEnum { + + CASH("cash"), + ACCRUAL("accrual"),; + + private final String value; + + private BalanceSheetFilterAccountingMethodEnum(String value) { + this.value = value; + } + + public String value() { + return value; + } + } +} + diff --git a/src/main/java/com/apideck/unify/models/components/CompanyInfo.java b/src/main/java/com/apideck/unify/models/components/CompanyInfo.java index f156f26da..2fa5a8338 100644 --- a/src/main/java/com/apideck/unify/models/components/CompanyInfo.java +++ b/src/main/java/com/apideck/unify/models/components/CompanyInfo.java @@ -147,6 +147,13 @@ public class CompanyInfo { @JsonProperty("tracking_categories_mode") private Optional trackingCategoriesMode; + /** + * The accounting basis used by the company for financial reports. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("accounting_method") + private JsonNullable accountingMethod; + /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each * time an update is made to the object. @@ -204,6 +211,7 @@ public CompanyInfo( @JsonProperty("custom_mappings") JsonNullable> customMappings, @JsonProperty("tracking_categories_enabled") Optional trackingCategoriesEnabled, @JsonProperty("tracking_categories_mode") Optional trackingCategoriesMode, + @JsonProperty("accounting_method") JsonNullable accountingMethod, @JsonProperty("row_version") JsonNullable rowVersion, @JsonProperty("updated_by") JsonNullable updatedBy, @JsonProperty("created_by") JsonNullable createdBy, @@ -228,6 +236,7 @@ public CompanyInfo( Utils.checkNotNull(customMappings, "customMappings"); Utils.checkNotNull(trackingCategoriesEnabled, "trackingCategoriesEnabled"); Utils.checkNotNull(trackingCategoriesMode, "trackingCategoriesMode"); + Utils.checkNotNull(accountingMethod, "accountingMethod"); Utils.checkNotNull(rowVersion, "rowVersion"); Utils.checkNotNull(updatedBy, "updatedBy"); Utils.checkNotNull(createdBy, "createdBy"); @@ -252,6 +261,7 @@ public CompanyInfo( this.customMappings = customMappings; this.trackingCategoriesEnabled = trackingCategoriesEnabled; this.trackingCategoriesMode = trackingCategoriesMode; + this.accountingMethod = accountingMethod; this.rowVersion = rowVersion; this.updatedBy = updatedBy; this.createdBy = createdBy; @@ -267,7 +277,8 @@ public CompanyInfo() { Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined()); + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined()); } /** @@ -417,6 +428,15 @@ public Optional trackingCategoriesMode() { return (Optional) trackingCategoriesMode; } + /** + * The accounting basis used by the company for financial reports. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable accountingMethod() { + return (JsonNullable) accountingMethod; + } + /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each * time an update is made to the object. @@ -790,6 +810,24 @@ public CompanyInfo withTrackingCategoriesMode(Optional accountingMethod) { + Utils.checkNotNull(accountingMethod, "accountingMethod"); + this.accountingMethod = accountingMethod; + return this; + } + /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each * time an update is made to the object. @@ -911,6 +949,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.customMappings, other.customMappings) && Utils.enhancedDeepEquals(this.trackingCategoriesEnabled, other.trackingCategoriesEnabled) && Utils.enhancedDeepEquals(this.trackingCategoriesMode, other.trackingCategoriesMode) && + Utils.enhancedDeepEquals(this.accountingMethod, other.accountingMethod) && Utils.enhancedDeepEquals(this.rowVersion, other.rowVersion) && Utils.enhancedDeepEquals(this.updatedBy, other.updatedBy) && Utils.enhancedDeepEquals(this.createdBy, other.createdBy) && @@ -927,8 +966,9 @@ public int hashCode() { currency, language, fiscalYearStartMonth, companyStartDate, addresses, phoneNumbers, emails, customMappings, trackingCategoriesEnabled, - trackingCategoriesMode, rowVersion, updatedBy, - createdBy, updatedAt, createdAt); + trackingCategoriesMode, accountingMethod, rowVersion, + updatedBy, createdBy, updatedAt, + createdAt); } @Override @@ -953,6 +993,7 @@ public String toString() { "customMappings", customMappings, "trackingCategoriesEnabled", trackingCategoriesEnabled, "trackingCategoriesMode", trackingCategoriesMode, + "accountingMethod", accountingMethod, "rowVersion", rowVersion, "updatedBy", updatedBy, "createdBy", createdBy, @@ -1001,6 +1042,8 @@ public final static class Builder { private Optional trackingCategoriesMode = Optional.empty(); + private JsonNullable accountingMethod = JsonNullable.undefined(); + private JsonNullable rowVersion = JsonNullable.undefined(); private JsonNullable updatedBy = JsonNullable.undefined(); @@ -1349,6 +1392,25 @@ public Builder trackingCategoriesMode(Optional } + /** + * The accounting basis used by the company for financial reports. + */ + public Builder accountingMethod(AccountingMethod accountingMethod) { + Utils.checkNotNull(accountingMethod, "accountingMethod"); + this.accountingMethod = JsonNullable.of(accountingMethod); + return this; + } + + /** + * The accounting basis used by the company for financial reports. + */ + public Builder accountingMethod(JsonNullable accountingMethod) { + Utils.checkNotNull(accountingMethod, "accountingMethod"); + this.accountingMethod = accountingMethod; + return this; + } + + /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each * time an update is made to the object. @@ -1454,8 +1516,9 @@ public CompanyInfo build() { currency, language, fiscalYearStartMonth, companyStartDate, addresses, phoneNumbers, emails, customMappings, trackingCategoriesEnabled, - trackingCategoriesMode, rowVersion, updatedBy, - createdBy, updatedAt, createdAt); + trackingCategoriesMode, accountingMethod, rowVersion, + updatedBy, createdBy, updatedAt, + createdAt); } } diff --git a/src/main/java/com/apideck/unify/models/components/ConnectionHealth.java b/src/main/java/com/apideck/unify/models/components/ConnectionHealth.java index e5467602f..ea12d799d 100644 --- a/src/main/java/com/apideck/unify/models/components/ConnectionHealth.java +++ b/src/main/java/com/apideck/unify/models/components/ConnectionHealth.java @@ -28,6 +28,7 @@ public class ConnectionHealth { public static final ConnectionHealth OK = new ConnectionHealth("ok"); public static final ConnectionHealth PENDING_REFRESH = new ConnectionHealth("pending_refresh"); public static final ConnectionHealth NEEDS_AUTH = new ConnectionHealth("needs_auth"); + public static final ConnectionHealth PENDING_CONFIRMATION = new ConnectionHealth("pending_confirmation"); public static final ConnectionHealth NEEDS_CONSENT = new ConnectionHealth("needs_consent"); public static final ConnectionHealth REVOKED = new ConnectionHealth("revoked"); public static final ConnectionHealth MISSING_SETTINGS = new ConnectionHealth("missing_settings"); @@ -107,6 +108,7 @@ private static final Map createValuesMap() { map.put("ok", OK); map.put("pending_refresh", PENDING_REFRESH); map.put("needs_auth", NEEDS_AUTH); + map.put("pending_confirmation", PENDING_CONFIRMATION); map.put("needs_consent", NEEDS_CONSENT); map.put("revoked", REVOKED); map.put("missing_settings", MISSING_SETTINGS); @@ -118,6 +120,7 @@ private static final Map createEnumsMap() { map.put("ok", ConnectionHealthEnum.OK); map.put("pending_refresh", ConnectionHealthEnum.PENDING_REFRESH); map.put("needs_auth", ConnectionHealthEnum.NEEDS_AUTH); + map.put("pending_confirmation", ConnectionHealthEnum.PENDING_CONFIRMATION); map.put("needs_consent", ConnectionHealthEnum.NEEDS_CONSENT); map.put("revoked", ConnectionHealthEnum.REVOKED); map.put("missing_settings", ConnectionHealthEnum.MISSING_SETTINGS); @@ -130,6 +133,7 @@ public enum ConnectionHealthEnum { OK("ok"), PENDING_REFRESH("pending_refresh"), NEEDS_AUTH("needs_auth"), + PENDING_CONFIRMATION("pending_confirmation"), NEEDS_CONSENT("needs_consent"), REVOKED("revoked"), MISSING_SETTINGS("missing_settings"),; diff --git a/src/main/java/com/apideck/unify/models/components/CreditNotesFilter.java b/src/main/java/com/apideck/unify/models/components/CreditNotesFilter.java index 97b6b7d39..a7fca4346 100644 --- a/src/main/java/com/apideck/unify/models/components/CreditNotesFilter.java +++ b/src/main/java/com/apideck/unify/models/components/CreditNotesFilter.java @@ -24,18 +24,35 @@ public class CreditNotesFilter { @SpeakeasyMetadata("queryParam:name=updated_since") private Optional updatedSince; + + @SpeakeasyMetadata("queryParam:name=created_since") + private Optional createdSince; + + /** + * Credit note number to search for + */ + @SpeakeasyMetadata("queryParam:name=number") + private Optional number; + @JsonCreator public CreditNotesFilter( Optional idSince, - Optional updatedSince) { + Optional updatedSince, + Optional createdSince, + Optional number) { Utils.checkNotNull(idSince, "idSince"); Utils.checkNotNull(updatedSince, "updatedSince"); + Utils.checkNotNull(createdSince, "createdSince"); + Utils.checkNotNull(number, "number"); this.idSince = idSince; this.updatedSince = updatedSince; + this.createdSince = createdSince; + this.number = number; } public CreditNotesFilter() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -51,6 +68,19 @@ public Optional updatedSince() { return updatedSince; } + @JsonIgnore + public Optional createdSince() { + return createdSince; + } + + /** + * Credit note number to search for + */ + @JsonIgnore + public Optional number() { + return number; + } + public static Builder builder() { return new Builder(); } @@ -88,6 +118,38 @@ public CreditNotesFilter withUpdatedSince(Optional updatedSince) return this; } + public CreditNotesFilter withCreatedSince(OffsetDateTime createdSince) { + Utils.checkNotNull(createdSince, "createdSince"); + this.createdSince = Optional.ofNullable(createdSince); + return this; + } + + + public CreditNotesFilter withCreatedSince(Optional createdSince) { + Utils.checkNotNull(createdSince, "createdSince"); + this.createdSince = createdSince; + return this; + } + + /** + * Credit note number to search for + */ + public CreditNotesFilter withNumber(String number) { + Utils.checkNotNull(number, "number"); + this.number = Optional.ofNullable(number); + return this; + } + + + /** + * Credit note number to search for + */ + public CreditNotesFilter withNumber(Optional number) { + Utils.checkNotNull(number, "number"); + this.number = number; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -99,20 +161,25 @@ public boolean equals(java.lang.Object o) { CreditNotesFilter other = (CreditNotesFilter) o; return Utils.enhancedDeepEquals(this.idSince, other.idSince) && - Utils.enhancedDeepEquals(this.updatedSince, other.updatedSince); + Utils.enhancedDeepEquals(this.updatedSince, other.updatedSince) && + Utils.enhancedDeepEquals(this.createdSince, other.createdSince) && + Utils.enhancedDeepEquals(this.number, other.number); } @Override public int hashCode() { return Utils.enhancedHash( - idSince, updatedSince); + idSince, updatedSince, createdSince, + number); } @Override public String toString() { return Utils.toString(CreditNotesFilter.class, "idSince", idSince, - "updatedSince", updatedSince); + "updatedSince", updatedSince, + "createdSince", createdSince, + "number", number); } @SuppressWarnings("UnusedReturnValue") @@ -122,6 +189,10 @@ public final static class Builder { private Optional updatedSince = Optional.empty(); + private Optional createdSince = Optional.empty(); + + private Optional number = Optional.empty(); + private Builder() { // force use of static builder() method } @@ -158,10 +229,43 @@ public Builder updatedSince(Optional updatedSince) { return this; } + + public Builder createdSince(OffsetDateTime createdSince) { + Utils.checkNotNull(createdSince, "createdSince"); + this.createdSince = Optional.ofNullable(createdSince); + return this; + } + + public Builder createdSince(Optional createdSince) { + Utils.checkNotNull(createdSince, "createdSince"); + this.createdSince = createdSince; + return this; + } + + + /** + * Credit note number to search for + */ + public Builder number(String number) { + Utils.checkNotNull(number, "number"); + this.number = Optional.ofNullable(number); + return this; + } + + /** + * Credit note number to search for + */ + public Builder number(Optional number) { + Utils.checkNotNull(number, "number"); + this.number = number; + return this; + } + public CreditNotesFilter build() { return new CreditNotesFilter( - idSince, updatedSince); + idSince, updatedSince, createdSince, + number); } } diff --git a/src/main/java/com/apideck/unify/models/components/Health.java b/src/main/java/com/apideck/unify/models/components/Health.java index daab30cc7..448637f5a 100644 --- a/src/main/java/com/apideck/unify/models/components/Health.java +++ b/src/main/java/com/apideck/unify/models/components/Health.java @@ -28,6 +28,7 @@ public class Health { public static final Health REVOKED = new Health("revoked"); public static final Health MISSING_SETTINGS = new Health("missing_settings"); public static final Health NEEDS_CONSENT = new Health("needs_consent"); + public static final Health PENDING_CONFIRMATION = new Health("pending_confirmation"); public static final Health NEEDS_AUTH = new Health("needs_auth"); public static final Health PENDING_REFRESH = new Health("pending_refresh"); public static final Health OK = new Health("ok"); @@ -107,6 +108,7 @@ private static final Map createValuesMap() { map.put("revoked", REVOKED); map.put("missing_settings", MISSING_SETTINGS); map.put("needs_consent", NEEDS_CONSENT); + map.put("pending_confirmation", PENDING_CONFIRMATION); map.put("needs_auth", NEEDS_AUTH); map.put("pending_refresh", PENDING_REFRESH); map.put("ok", OK); @@ -118,6 +120,7 @@ private static final Map createEnumsMap() { map.put("revoked", HealthEnum.REVOKED); map.put("missing_settings", HealthEnum.MISSING_SETTINGS); map.put("needs_consent", HealthEnum.NEEDS_CONSENT); + map.put("pending_confirmation", HealthEnum.PENDING_CONFIRMATION); map.put("needs_auth", HealthEnum.NEEDS_AUTH); map.put("pending_refresh", HealthEnum.PENDING_REFRESH); map.put("ok", HealthEnum.OK); @@ -130,6 +133,7 @@ public enum HealthEnum { REVOKED("revoked"), MISSING_SETTINGS("missing_settings"), NEEDS_CONSENT("needs_consent"), + PENDING_CONFIRMATION("pending_confirmation"), NEEDS_AUTH("needs_auth"), PENDING_REFRESH("pending_refresh"), OK("ok"),; From f5b3b748c09232b490337f99edac8b15c913e9d4 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Sat, 16 May 2026 00:38:01 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow