diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 79f535db..eb06a1f0 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: 3d14620b634837c112ebcc60b87bf0e7 + docVersion: 10.24.33 + speakeasyVersion: 1.762.0 + generationVersion: 2.882.0 + 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: 4abc23d5-cf5e-40db-9cbb-3a5e74db3d5c + pristine_commit_hash: 35d1711d5bd2bc41cbba2896b7217723d2d07cf2 + pristine_tree_hash: 69642e7e2d08a3da3132a16c8bdab034877ecd3e 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 @@ -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 @@ -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:36ff22848711eeb047eb9d70a6cade35e01da2e7 + pristine_git_object: b6754e0c89487db70a7b1b116e669f11ab6a76eb 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 @@ -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 @@ -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": @@ -36515,9 +36523,17 @@ 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** + * `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** generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 7e058644..9e25ed46 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 7de63797..cce380b7 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,20 @@ -speakeasyVersion: 1.761.9 +speakeasyVersion: 1.762.0 sources: Apideck-OAS: sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:0a13bfd8dd214be2a1eb900f58d2137662875fc57ff002924d18083703687349 - sourceBlobDigest: sha256:57267224b35a3b4d15da03db3a65b4c2535a827573b9c23e650ce6d1c35ea7b5 + sourceRevisionDigest: sha256:1154e7d5351ccb31aebee32d619c6fa4e72ff2cd7ff4258ac38f6ce9b4f9091a + sourceBlobDigest: sha256:653c88543b86d3f0a0a8881de6cbb86e0219750a056a7dee1357a79192c69ec2 tags: - latest - - 10.24.29 + - 10.24.33 targets: apideck: source: Apideck-OAS sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:0a13bfd8dd214be2a1eb900f58d2137662875fc57ff002924d18083703687349 - sourceBlobDigest: sha256:57267224b35a3b4d15da03db3a65b4c2535a827573b9c23e650ce6d1c35ea7b5 + sourceRevisionDigest: sha256:1154e7d5351ccb31aebee32d619c6fa4e72ff2cd7ff4258ac38f6ce9b4f9091a + sourceBlobDigest: sha256:653c88543b86d3f0a0a8881de6cbb86e0219750a056a7dee1357a79192c69ec2 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 1bedd7f0..9fb065c4 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 af52def5..6fdb17dd 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-11 00:33:47 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.762.0 (2.882.0) 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 51ce02f3..4ef506b5 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 f81beb41..57498891 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 00000000..53824c8a --- /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 7549986c..68be89b6 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 4f78dd8d..b4104ef8 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/Health.md b/docs/models/components/Health.md index a3d609bd..ebe35dfa 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/gradle.properties b/gradle.properties index 72ee18dd..f144cedb 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 e2cdd8af..b6754e0c 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.882.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/models/components/AccountingMethod.java b/src/main/java/com/apideck/unify/models/components/AccountingMethod.java index 95bd8c9a..68e42d22 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 d814437c..0f37dc60 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 00000000..41064e59 --- /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 f156f26d..2fa5a833 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 e5467602..ea12d799 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/Health.java b/src/main/java/com/apideck/unify/models/components/Health.java index daab30cc..448637f5 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"),;