diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b788344c2..f6a076a12 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,26 +1,26 @@ lockVersion: 2.0.0 id: 38254260-287a-40b6-9ac5-c2fcb654c9cc management: - docChecksum: f402853440b8568ae75a98c0815d8bff - docVersion: 10.25.1 - speakeasyVersion: 1.789.2 - generationVersion: 2.916.4 - releaseVersion: 0.32.0 - configChecksum: 069c61abd882264512852a5886b74271 + docChecksum: 9f39fe18bdbacbeb00fe1029e42846b6 + docVersion: 10.27.0 + speakeasyVersion: 1.790.3 + generationVersion: 2.918.4 + releaseVersion: 0.33.0 + configChecksum: f0a0f333445bcfe73246eaacdb3f8c76 repoURL: https://github.com/apideck-libraries/sdk-java.git installationURL: https://github.com/apideck-libraries/sdk-java published: true persistentEdits: - generation_id: fafdbe1a-5d8d-450a-b3c8-452e852ed38b - pristine_commit_hash: ec5e29a3bc278c094079376b09e598d81c1ae854 - pristine_tree_hash: 053151c9f94548e200dfdd6a9ea3cd8f7ef30c1a + generation_id: 217dc3f8-425d-41eb-8e46-eb4e561934dc + pristine_commit_hash: a29684ad90e8d727ce96b068b998203b7c1ae54f + pristine_tree_hash: 40a3c545ebf0492d7af99b72db890aaf1a9df462 features: java: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 - additionalProperties: 0.0.1 + additionalProperties: 0.0.2 constsAndDefaults: 0.1.3 - core: 3.55.30 + core: 3.55.31 deprecations: 2.81.2 downloadStreams: 0.1.1 errors: 1.0.2 @@ -34,7 +34,7 @@ features: inputOutputModels: 2.83.0 methodServerURLs: 2.82.2 nameOverrides: 2.81.5 - nullables: 0.1.0 + nullables: 0.1.1 openEnums: 0.2.0 pagination: 1.0.4 retries: 0.1.3 @@ -53,8 +53,8 @@ trackedFiles: pristine_git_object: b7bfd820476371ca4b7f2111243df8c5a45b71f8 build.gradle: id: f07866736216 - last_write_checksum: sha1:364e3903426230e99720b75e8e0a0865b1019fab - pristine_git_object: db9384ad360d0bd8f12f118c884836c7877a351c + last_write_checksum: sha1:9cd952aea13bdae70d806df9c26addf610d98a43 + pristine_git_object: 72b59f3c332219ad206eabdd875cccb9a84dd172 docs/models/components/AccountStatus.md: id: 966119f1a994 last_write_checksum: sha1:9b252c7252322754b0bd12b72c734c063fdb6f52 @@ -461,8 +461,8 @@ trackedFiles: pristine_git_object: 2a3be5413f54cf9ae72abc2e08a4748cdb2ac56e docs/models/components/BillsFilter.md: id: e3853bf92a55 - last_write_checksum: sha1:c901283600549ebb70606d8073e65176c038a5da - pristine_git_object: d86cc0e5dfa1e0a0f89310038e9349fa9459f082 + last_write_checksum: sha1:3b0ad7c012f2f509e91a5d79a60df5033c09c075 + pristine_git_object: 01ff78887b56a34f56aad4809fe3536001e6118a docs/models/components/BillsFilterStatus.md: id: e5bd2b1895a6 last_write_checksum: sha1:6851baa13b1f9d476ac293978b43b08008499838 @@ -1685,16 +1685,16 @@ trackedFiles: pristine_git_object: a1833aaa3634788e306008defe2ddd368cc34193 docs/models/components/ExpenseReport.md: id: 91b5755d76ca - last_write_checksum: sha1:90d0f00dc462fa69927ec95341e8f4ae8a4a87af - pristine_git_object: eb377dde6faf829945133f096dfa04761e4918eb + last_write_checksum: sha1:789943d93fae2c4b57278539272ade9a4c20b616 + pristine_git_object: dedce3f764ca2d9e62e364ae7f752fc64948c61f docs/models/components/ExpenseReportEmployee.md: id: 3167a3021434 last_write_checksum: sha1:16bb79bfc8f5533165ae5d2e37cc34bb46c2c9be pristine_git_object: eb4e288dfe93b5bafe83caa42c25c77a3695a63d docs/models/components/ExpenseReportInput.md: id: e6769f1fc3fe - last_write_checksum: sha1:4b60fbe596160e5cc55ab5c25231450d089450de - pristine_git_object: b26adbadb1ba407d3b0295fc5d9420016e840896 + last_write_checksum: sha1:a6a2b963d3c290b1ea0bcbd8fa543eaf4d72b426 + pristine_git_object: 779b00775d935c221da9bd6004160a802017cb78 docs/models/components/ExpenseReportLineItem.md: id: d63076a2a79c last_write_checksum: sha1:3598d4c0ca584c53508ae03a0c21a2d91c59d709 @@ -3933,8 +3933,8 @@ trackedFiles: pristine_git_object: 42243949f9be77d2dd7dc7c06d1dace2879186d2 docs/models/components/WebhookEventType.md: id: b443ab58ee9b - last_write_checksum: sha1:236deb27c010e82b26b3ece220c324637865087a - pristine_git_object: 26d0971673593462be75dbd9d0e01681ebf9ec88 + last_write_checksum: sha1:4940427cfe34f4154efbb1582b8f988a8d66ac36 + pristine_git_object: e70823f15c8bf4ddee0b511b76a585f1bf17c13a docs/models/components/WebhookSubscription.md: id: 1307d98a814a last_write_checksum: sha1:0619ab465e2edf6adf1be4927cb39a85c684689e @@ -4277,8 +4277,8 @@ trackedFiles: pristine_git_object: e25f4d473935c6b4b47e8c496c7eb882eb342ddd docs/models/operations/AccountingBillsAllRequest.md: id: b6c81876e8d0 - last_write_checksum: sha1:1207d082803674186939e330df754ef151606320 - pristine_git_object: 2789c8adf03b651116177cf63ea2f4e06efd83d0 + last_write_checksum: sha1:ccd20be76a0d11ee85bd42ef1101ee2b8fab8bc8 + pristine_git_object: 63efacf3a5dda054c236bec56edfc85ecb2eeded docs/models/operations/AccountingBillsAllResponse.md: id: e8ca8011510c last_write_checksum: sha1:e326665874a8675f6b91ffe9c04648609ffe841c @@ -6997,8 +6997,8 @@ trackedFiles: pristine_git_object: 53e0acf70a68264901ccb38b6965302cfe30707f docs/sdks/expensereports/README.md: id: bd1c9bec7278 - last_write_checksum: sha1:befdaeab05f644244a0f19a5f83f9cf3eab02789 - pristine_git_object: 91b13d4399b75843fd84a8c34ce232e29be5b035 + last_write_checksum: sha1:a39d751b9847f9d2d1ef87045d5def62d459b01a + pristine_git_object: c809f87775d15a0a927eef47b950095ab6a57150 docs/sdks/expenses/README.md: id: 5692d1aab79d last_write_checksum: sha1:0dc76a57ce80b110f14848abce6a6efb1345c275 @@ -7161,8 +7161,8 @@ trackedFiles: pristine_git_object: c755c6aa377f358344e761e9cc3e7b67bc1fb479 gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:d02bc87d47ac12657b6b0301c69d4d3d7a8f7391 - pristine_git_object: d012c024324082ee60c30a3f284091c0a354467e + last_write_checksum: sha1:a82f17395844d85a3c4c8ffb36a5e3b94e3d3d1b + pristine_git_object: 2b368b12a70c85a9d8e1611dc1c7010dadba2bca gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -7969,8 +7969,8 @@ trackedFiles: pristine_git_object: 7296db7ebcdcff7ee348d1f993fc4aa2a7e6c145 src/main/java/com/apideck/unify/SDKConfiguration.java: id: a2b330a87142 - last_write_checksum: sha1:75c7aea52986e1bb073ae9f88ebd93dbb4ec16cc - pristine_git_object: fcad2195179048e43e1b5e1b298454a0e49816fa + last_write_checksum: sha1:1dfcdfe260063a85694b310226c78570090d8cbc + pristine_git_object: 2822610acb1f13df33bbfa8cffa45c7d751d2bb0 src/main/java/com/apideck/unify/SecuritySource.java: id: e4566c6c806b last_write_checksum: sha1:101bf1a9f5cf4e8c37abb4540147276eebb2bab0 @@ -8441,8 +8441,8 @@ trackedFiles: pristine_git_object: c969729e2a96eae220b9633cb89d5322dacf69b9 src/main/java/com/apideck/unify/models/components/BillsFilter.java: id: 6a88816c0e0b - last_write_checksum: sha1:95551d022f6e5e32fb3d6d37e40ffa5b3db20a49 - pristine_git_object: 71bd30ab64102450486f0db2bcdee0093b76a546 + last_write_checksum: sha1:cda0da1dcffe436c0bc0d0ae21314f0c63757ab7 + pristine_git_object: 4b241b9de7e8892170a44c81d357ad273065dcfc src/main/java/com/apideck/unify/models/components/BillsFilterStatus.java: id: 685ee6e14077 last_write_checksum: sha1:c8abc43a6089da2fc243528be0944625c9bf7e5a @@ -9665,16 +9665,16 @@ trackedFiles: pristine_git_object: f26f20b44f1f54de4f5b31327218f7f9c3c8f9a1 src/main/java/com/apideck/unify/models/components/ExpenseReport.java: id: 9e9a3cfe908d - last_write_checksum: sha1:277a6aa141c515542da5032e39d6aba2478bc3c8 - pristine_git_object: fe313a8ac3ada1e422a01b3fe0d0701616d58e26 + last_write_checksum: sha1:16fdda781eaf5b32ea0091fe0057f773ddbb598d + pristine_git_object: 430edbd3094c2048ccc3de74efe8cfa7e74c7c71 src/main/java/com/apideck/unify/models/components/ExpenseReportEmployee.java: id: d4178cafa946 last_write_checksum: sha1:3ce224e68b8f973d0ed84494ca48e6c5620ab1f8 pristine_git_object: 81b76dcf5d73f89cbe26ff640add4d5900d45d15 src/main/java/com/apideck/unify/models/components/ExpenseReportInput.java: id: 497221990faa - last_write_checksum: sha1:b320207aa7473bbbab07a5efbae3ccd96738fc02 - pristine_git_object: d8144b0d36a7b7ccdc6033e8575d6f447c7cc56c + last_write_checksum: sha1:50391bf3af25f6ede65df4690589b3d52a0667fa + pristine_git_object: f5592ea2e0f70cfa8a0d11be6d11444b6fa0ea9f src/main/java/com/apideck/unify/models/components/ExpenseReportLineItem.java: id: 540e3089dcbc last_write_checksum: sha1:d50d78736c605b1a40df2a877c2ccef618048a97 @@ -11921,8 +11921,8 @@ trackedFiles: pristine_git_object: 2c3cf677cddbb8b85498dc214a2fc342dc6d3ca4 src/main/java/com/apideck/unify/models/components/WebhookEventType.java: id: 52b34fc99481 - last_write_checksum: sha1:de57c97892cc874ed9affc20b34bffbae3ae489c - pristine_git_object: b76d02c3327ef8096f6a7a090d8ee52b1833021b + last_write_checksum: sha1:ac5754d46c65a4f3eb5b56b9c5d9ecbf63217397 + pristine_git_object: 6b2cb62a4594bfcc0a4bf8499cf3d0011acb7c26 src/main/java/com/apideck/unify/models/components/WebhookSubscription.java: id: 2d8529e830c7 last_write_checksum: sha1:ab40b4b0cda4d3f01e762a0f4b6d377d9afa9fce @@ -20804,7 +20804,7 @@ examples: query: raw: false limit: 20 - filter: {"id_since": "1", "updated_since": "2020-09-30T07:43:32.000Z", "status": "paid"} + filter: {"id_since": "1", "updated_since": "2020-09-30T07:43:32.000Z", "billed_since": "2020-09-30", "due_since": "2020-09-30", "status": "paid"} sort: {"by": "updated_at", "direction": "desc"} pass_through: {"search": "San Francisco"} fields: "id,updated_at" @@ -36516,7 +36516,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "123456", "number": "ER-001", "title": "Q1 Business Travel", "employee": {"id": "12345", "display_name": "John Doe"}, "status": "submitted", "transaction_date": "2021-05-01T12:00:00.000Z", "posting_date": "2024-06-01", "due_date": "2024-06-15", "currency": "USD", "currency_rate": 0.69, "sub_total": 250, "total_tax": 25, "total_amount": 1250.75, "reimbursable_amount": 1100, "memo": "Business travel expenses for Q1 client meetings", "department": {"display_id": "123456", "name": "Acme Inc."}, "location": {"id": "123456", "display_id": "123456", "name": "New York Office"}, "account": null, "accounting_period": {"id": "12345", "name": "Q1 2024"}, "line_items": [], "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "tracking_categories": [{"id": "123456", "code": "100", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "tax_inclusive": true, "approved_by": {"id": "12345", "display_name": "Jane Smith"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "123456", "number": "ER-001", "title": "Q1 Business Travel", "employee": {"id": "12345", "display_name": "John Doe"}, "status": "submitted", "transaction_date": "2021-05-01T12:00:00.000Z", "posting_date": "2024-06-01", "due_date": "2024-06-15", "currency": "USD", "currency_rate": 0.69, "sub_total": 250, "total_tax": 25, "total_amount": 1250.75, "reimbursable_amount": 1100, "memo": "Business travel expenses for Q1 client meetings", "department": {"display_id": "123456", "name": "Acme Inc."}, "location": {"id": "123456", "display_id": "123456", "name": "New York Office"}, "account": null, "accounting_period": {"id": "12345", "name": "Q1 2024"}, "line_items": [], "reference": "INV-2024-001", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "tracking_categories": [{"id": "123456", "code": "100", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "tax_inclusive": true, "approved_by": {"id": "12345", "display_name": "Jane Smith"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "netsuite", "resource": "ExpenseReports", "operation": "add", "data": {"id": "12345"}} @@ -36546,7 +36546,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "netsuite", "resource": "ExpenseReports", "operation": "one", "data": {"id": "12345", "display_id": "123456", "number": "ER-001", "title": "Q1 Business Travel", "employee": {"id": "12345", "display_name": "John Doe"}, "status": "submitted", "transaction_date": "2021-05-01T12:00:00.000Z", "posting_date": "2024-06-01", "due_date": "2024-06-15", "currency": "USD", "currency_rate": 0.69, "sub_total": 250, "total_tax": 25, "total_amount": 1250.75, "reimbursable_amount": 1100, "memo": "Business travel expenses for Q1 client meetings", "department": {"id": "12345", "display_id": "123456", "name": "Acme Inc.", "downstream_id": "12345"}, "location": {"id": "123456", "display_id": "123456", "name": "New York Office", "downstream_id": "12345"}, "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "accounting_period": {"id": "12345", "name": "Q1 2024"}, "line_items": [{"id": "12345", "line_number": 1, "expense_category": {"id": "12345", "downstream_id": "12345", "display_id": "Airfare", "name": "Airfare"}, "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "description": "Flight to New York", "quantity": 1, "unit_price": 27500.5, "amount": 275, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_amount": 27.5, "total_amount": 302.5, "transaction_date": "2024-05-15", "billable": true, "reimbursable": true, "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "department": {"id": "12345", "display_id": "123456", "name": "Acme Inc.", "downstream_id": "12345"}, "location": null, "tracking_categories": [{"id": "123456", "code": "100", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "receipt_url": "https://example.com/receipts/123.pdf", "currency": "USD", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}], "subsidiary": {"id": "12345", "display_id": "123456", "name": "Acme Inc."}, "tracking_categories": [{"id": "123456", "code": "100", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "tax_inclusive": true, "approved_by": {"id": "12345", "display_name": "Jane Smith"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}, "total_count": 1, "warnings": [{"type": "downstream_request_failed", "status_code": 429, "operation": "getManager"}]}} + application/json: {"status_code": 200, "status": "OK", "service": "netsuite", "resource": "ExpenseReports", "operation": "one", "data": {"id": "12345", "display_id": "123456", "number": "ER-001", "title": "Q1 Business Travel", "employee": {"id": "12345", "display_name": "John Doe"}, "status": "submitted", "transaction_date": "2021-05-01T12:00:00.000Z", "posting_date": "2024-06-01", "due_date": "2024-06-15", "currency": "USD", "currency_rate": 0.69, "sub_total": 250, "total_tax": 25, "total_amount": 1250.75, "reimbursable_amount": 1100, "memo": "Business travel expenses for Q1 client meetings", "department": {"id": "12345", "display_id": "123456", "name": "Acme Inc.", "downstream_id": "12345"}, "location": {"id": "123456", "display_id": "123456", "name": "New York Office", "downstream_id": "12345"}, "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "accounting_period": {"id": "12345", "name": "Q1 2024"}, "line_items": [{"id": "12345", "line_number": 1, "expense_category": {"id": "12345", "downstream_id": "12345", "display_id": "Airfare", "name": "Airfare"}, "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "description": "Flight to New York", "quantity": 1, "unit_price": 27500.5, "amount": 275, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_amount": 27.5, "total_amount": 302.5, "transaction_date": "2024-05-15", "billable": true, "reimbursable": true, "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "department": {"id": "12345", "display_id": "123456", "name": "Acme Inc.", "downstream_id": "12345"}, "location": null, "tracking_categories": [{"id": "123456", "code": "100", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "receipt_url": "https://example.com/receipts/123.pdf", "currency": "USD", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}], "reference": "INV-2024-001", "subsidiary": {"id": "12345", "display_id": "123456", "name": "Acme Inc."}, "tracking_categories": [{"id": "123456", "code": "100", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "tax_inclusive": true, "approved_by": {"id": "12345", "display_name": "Jane Smith"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}, "total_count": 1, "warnings": [{"type": "downstream_request_failed", "status_code": 429, "operation": "getManager"}]}} "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": @@ -36571,7 +36571,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "123456", "number": "ER-001", "title": "Q1 Business Travel", "employee": {"id": "12345", "display_name": "John Doe"}, "status": "submitted", "transaction_date": "2021-05-01T12:00:00.000Z", "posting_date": "2024-06-01", "due_date": "2024-06-15", "currency": "USD", "currency_rate": 0.69, "sub_total": 250, "total_tax": 25, "total_amount": 1250.75, "reimbursable_amount": 1100, "memo": "Business travel expenses for Q1 client meetings", "department": {"display_id": "123456", "name": "Acme Inc."}, "location": {"id": "123456", "display_id": "123456", "name": "New York Office"}, "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "accounting_period": {"id": "12345", "name": "Q1 2024"}, "line_items": [], "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "tracking_categories": null, "tax_inclusive": true, "approved_by": {"id": "12345", "display_name": "Jane Smith"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "123456", "number": "ER-001", "title": "Q1 Business Travel", "employee": {"id": "12345", "display_name": "John Doe"}, "status": "submitted", "transaction_date": "2021-05-01T12:00:00.000Z", "posting_date": "2024-06-01", "due_date": "2024-06-15", "currency": "USD", "currency_rate": 0.69, "sub_total": 250, "total_tax": 25, "total_amount": 1250.75, "reimbursable_amount": 1100, "memo": "Business travel expenses for Q1 client meetings", "department": {"display_id": "123456", "name": "Acme Inc."}, "location": {"id": "123456", "display_id": "123456", "name": "New York Office"}, "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "accounting_period": {"id": "12345", "name": "Q1 2024"}, "line_items": [], "reference": "INV-2024-001", "subsidiary": {"display_id": "123456", "name": "Acme Inc."}, "tracking_categories": null, "tax_inclusive": true, "approved_by": {"id": "12345", "display_name": "Jane Smith"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "netsuite", "resource": "ExpenseReports", "operation": "update", "data": {"id": "12345"}} @@ -36971,7 +36971,7 @@ examples: application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Java SDK Changes:\n* `apideck.vault.consumers.create()`: `response.data.connections[].metadata` **Changed** (Breaking ⚠️)\n* `apideck.vault.connectionSettings.update()`: \n * `request.connection.metadata` **Changed** (Breaking ⚠️)\n * `response.data.metadata` **Changed** (Breaking ⚠️)\n* `apideck.vault.connectionSettings.list()`: `response.data.metadata` **Changed** (Breaking ⚠️)\n* `apideck.vault.connections.token()`: `response.data.metadata` **Changed** (Breaking ⚠️)\n* `apideck.vault.connections.imports()`: `response.data.metadata` **Changed** (Breaking ⚠️)\n* `apideck.vault.connections.update()`: \n * `request.connection.metadata` **Changed** (Breaking ⚠️)\n * `response.data.metadata` **Changed** (Breaking ⚠️)\n* `apideck.vault.connections.get()`: `response.data.metadata` **Changed** (Breaking ⚠️)\n* `apideck.vault.connections.list()`: `response.data[].metadata` **Changed** (Breaking ⚠️)\n* `apideck.vault.consumers.update()`: `response.data.connections[].metadata` **Changed** (Breaking ⚠️)\n* `apideck.vault.consumers.get()`: `response.data.connections[].metadata` **Changed** (Breaking ⚠️)\n* `apideck.accounting.departments.list()`: \n * `request.passThrough` **Added**\n* `apideck.accounting.expenseCategories.list()`: \n * `request.passThrough` **Added**\n* `apideck.accounting.expenseReports.list()`: \n * `request.passThrough` **Added**\n* `apideck.accounting.employees.list()`: \n * `request.passThrough` **Added**\n* `apideck.accounting.quotes.list()`: \n * `request.passThrough` **Added**\n* `apideck.accounting.categories.list()`: \n * `request.passThrough` **Added**\n* `apideck.accounting.expenses.list()`: \n * `request.passThrough` **Added**\n* `apideck.accounting.attachments.list()`: \n * `request.passThrough` **Added**\n* `apideck.crm.lists.list()`: **Added**\n* `apideck.accounting.locations.list()`: \n * `request.passThrough` **Added**\n* `apideck.accounting.subsidiaries.list()`: \n * `request.passThrough` **Added**\n* `apideck.accounting.companies.list()`: \n * `request.passThrough` **Added**\n* `apideck.crm.lists.get()`: **Added**\n" +releaseNotes: "## Java SDK Changes:\n* `apideck.accounting.bills.list()`: \n * `request.filter` **Changed**\n* `apideck.accounting.expenseReports.list()`: `response.data[].reference` **Added**\n* `apideck.accounting.expenseReports.create()`: \n * `request.expenseReport.reference` **Added**\n* `apideck.accounting.expenseReports.get()`: `response.data.reference` **Added**\n* `apideck.accounting.expenseReports.update()`: \n * `request.expenseReport.reference` **Added**\n* `apideck.webhook.webhooks.list()`: `response.data[].events[]` **Changed**\n* `apideck.webhook.webhooks.create()`: \n * `request.createWebhookRequest.events[]` **Changed**\n * `response.data.events[]` **Changed**\n* `apideck.webhook.webhooks.get()`: `response.data.events[]` **Changed**\n* `apideck.webhook.webhooks.update()`: \n * `request.updateWebhookRequest.events[]` **Changed**\n * `response.data.events[]` **Changed**\n* `apideck.webhook.webhooks.delete()`: `response.data.events[]` **Changed**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index c37a58ceb..bc5eb2daf 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 0.32.0 + version: 0.33.0 additionalDependencies: [] additionalPlugins: [] artifactID: unify diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 5c665f927..40377e447 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,20 @@ -speakeasyVersion: 1.789.2 +speakeasyVersion: 1.790.3 sources: Apideck-OAS: sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:3a56eb3e811902ebe5178838424aa121e63011842c462dd723554a3143e65aa3 - sourceBlobDigest: sha256:fae6678b45bbc58554f5cad529b88e682840885b79983a4227bf60cda74815d7 + sourceRevisionDigest: sha256:8c66ab2eebb4448f4045d971e09e64df0af052fc667fb2ba68df222b4bf2b24b + sourceBlobDigest: sha256:6161b5e10ad68c05b9eea4397d7988994f082591df87d26d022aa00a16c3a1fb tags: - latest - - 10.25.1 + - 10.27.0 targets: apideck: source: Apideck-OAS sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:3a56eb3e811902ebe5178838424aa121e63011842c462dd723554a3143e65aa3 - sourceBlobDigest: sha256:fae6678b45bbc58554f5cad529b88e682840885b79983a4227bf60cda74815d7 + sourceRevisionDigest: sha256:8c66ab2eebb4448f4045d971e09e64df0af052fc667fb2ba68df222b4bf2b24b + sourceBlobDigest: sha256:6161b5e10ad68c05b9eea4397d7988994f082591df87d26d022aa00a16c3a1fb codeSamplesNamespace: apideck-oas-java-code-samples - codeSamplesRevisionDigest: sha256:18ef61d850ef73888ea2b6df5a20f120622d59e86d4bfa4d00ad74184262c385 + codeSamplesRevisionDigest: sha256:75ef06d80c9e49395677d789d1e8ce0ddb2550a06fd0e1ea3e1e3c7c0a055ac8 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 30d6d1d4e..8832ed51e 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.32.0' +implementation 'com.apideck:unify:0.33.0' ``` Maven: @@ -59,7 +59,7 @@ Maven: com.apideck unify - 0.32.0 + 0.33.0 ``` diff --git a/RELEASES.md b/RELEASES.md index 2537d790a..25145894d 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1008,4 +1008,14 @@ Based on: ### Generated - [java v0.32.0] . ### Releases -- [Maven Central v0.32.0] https://central.sonatype.com/artifact/com.apideck/unify/0.32.0 - . \ No newline at end of file +- [Maven Central v0.32.0] https://central.sonatype.com/artifact/com.apideck/unify/0.32.0 - . + +## 2026-07-23 08:57:09 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.790.3 (2.918.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.33.0] . +### Releases +- [Maven Central v0.33.0] https://central.sonatype.com/artifact/com.apideck/unify/0.33.0 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index db9384ad3..72b59f3c3 100644 --- a/build.gradle +++ b/build.gradle @@ -75,7 +75,7 @@ javadocJar { dependencies { api 'com.fasterxml.jackson.core:jackson-annotations:2.22' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.22.0' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.22.1' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.22.0' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.22.0' api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} diff --git a/docs/models/components/BillsFilter.md b/docs/models/components/BillsFilter.md index d86cc0e5d..01ff78887 100644 --- a/docs/models/components/BillsFilter.md +++ b/docs/models/components/BillsFilter.md @@ -7,5 +7,7 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `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 | +| `billedSince` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | Return bills with a document date (`bill_date`) on or after the given date (YYYY-MM-DD). | 2020-09-30 | +| `dueSince` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | Return bills with a due date (`due_date`) on or after the given date (YYYY-MM-DD). | 2020-09-30 | | `status` | [Optional\](../../models/components/BillsFilterStatus.md) | :heavy_minus_sign: | Filter by bill status | paid | | `subsidiaryId` | *Optional\* | :heavy_minus_sign: | Filter by the subsidiary (legal entity) the record belongs to. Only honored on connectors that support multi-entity scoping (e.g. NetSuite OneWorld); ignored elsewhere. | 12345 | \ No newline at end of file diff --git a/docs/models/components/ExpenseReport.md b/docs/models/components/ExpenseReport.md index eb377dde6..dedce3f76 100644 --- a/docs/models/components/ExpenseReport.md +++ b/docs/models/components/ExpenseReport.md @@ -26,6 +26,7 @@ | `account` | [JsonNullable\](../../models/components/LinkedLedgerAccount.md) | :heavy_minus_sign: | N/A | | | `accountingPeriod` | [JsonNullable\](../../models/components/AccountingPeriod.md) | :heavy_minus_sign: | The accounting period the expense report is posted to. | | | `lineItems` | List\<[ExpenseReportLineItem](../../models/components/ExpenseReportLineItem.md)> | :heavy_check_mark: | Expense line items linked to this expense report. | | +| `reference` | *JsonNullable\* | :heavy_minus_sign: | Optional reference identifier for the transaction. | INV-2024-001 | | `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiary.md) | :heavy_minus_sign: | N/A | | | `trackingCategories` | List\<[LinkedTrackingCategory](../../models/components/LinkedTrackingCategory.md)> | :heavy_minus_sign: | A list of linked tracking categories. | | | `taxInclusive` | *JsonNullable\* | :heavy_minus_sign: | Amounts are including tax | true | diff --git a/docs/models/components/ExpenseReportInput.md b/docs/models/components/ExpenseReportInput.md index b26adbadb..779b00775 100644 --- a/docs/models/components/ExpenseReportInput.md +++ b/docs/models/components/ExpenseReportInput.md @@ -25,6 +25,7 @@ | `account` | [JsonNullable\](../../models/components/LinkedLedgerAccount.md) | :heavy_minus_sign: | N/A | | | `accountingPeriod` | [JsonNullable\](../../models/components/AccountingPeriod.md) | :heavy_minus_sign: | The accounting period the expense report is posted to. | | | `lineItems` | List\<[ExpenseReportLineItemInput](../../models/components/ExpenseReportLineItemInput.md)> | :heavy_check_mark: | Expense line items linked to this expense report. | | +| `reference` | *JsonNullable\* | :heavy_minus_sign: | Optional reference identifier for the transaction. | INV-2024-001 | | `subsidiary` | [JsonNullable\](../../models/components/LinkedSubsidiaryInput.md) | :heavy_minus_sign: | N/A | | | `trackingCategories` | List\<[LinkedTrackingCategory](../../models/components/LinkedTrackingCategory.md)> | :heavy_minus_sign: | A list of linked tracking categories. | | | `taxInclusive` | *JsonNullable\* | :heavy_minus_sign: | Amounts are including tax | true | diff --git a/docs/models/components/WebhookEventType.md b/docs/models/components/WebhookEventType.md index 26d097167..e70823f15 100644 --- a/docs/models/components/WebhookEventType.md +++ b/docs/models/components/WebhookEventType.md @@ -119,6 +119,9 @@ WebhookEventType custom = WebhookEventType.of("custom_value"); | `HRIS_COMPANY_CREATED` | hris.company.created | | `HRIS_COMPANY_UPDATED` | hris.company.updated | | `HRIS_COMPANY_DELETED` | hris.company.deleted | +| `HRIS_TIME_OFF_REQUEST_CREATED` | hris.time-off-request.created | +| `HRIS_TIME_OFF_REQUEST_UPDATED` | hris.time-off-request.updated | +| `HRIS_TIME_OFF_REQUEST_DELETED` | hris.time-off-request.deleted | | `FILE_STORAGE_FILE_CREATED` | file-storage.file.created | | `FILE_STORAGE_FILE_UPDATED` | file-storage.file.updated | | `FILE_STORAGE_FILE_DELETED` | file-storage.file.deleted | diff --git a/docs/models/operations/AccountingBillsAllRequest.md b/docs/models/operations/AccountingBillsAllRequest.md index 2789c8adf..63efacf3a 100644 --- a/docs/models/operations/AccountingBillsAllRequest.md +++ b/docs/models/operations/AccountingBillsAllRequest.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/BillsFilter.md) | :heavy_minus_sign: | Apply filters | {
"updated_since": "2020-09-30T07:43:32.000Z",
"status": "paid",
"id_since": "1"
} | +| `filter` | [Optional\](../../models/components/BillsFilter.md) | :heavy_minus_sign: | Apply filters | {
"updated_since": "2020-09-30T07:43:32.000Z",
"status": "paid",
"id_since": "1",
"billed_since": "2020-09-30",
"due_since": "2020-09-30"
} | | `sort` | [Optional\](../../models/components/BillsSort.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/docs/sdks/expensereports/README.md b/docs/sdks/expensereports/README.md index 91b13d439..c809f8777 100644 --- a/docs/sdks/expensereports/README.md +++ b/docs/sdks/expensereports/README.md @@ -150,6 +150,7 @@ public class Application { .id("12345") .name("Q1 2024") .build()) + .reference("INV-2024-001") .subsidiary(LinkedSubsidiaryInput.builder() .displayId("123456") .name("Acme Inc.") @@ -361,6 +362,7 @@ public class Application { .id("12345") .name("Q1 2024") .build()) + .reference("INV-2024-001") .subsidiary(LinkedSubsidiaryInput.builder() .displayId("123456") .name("Acme Inc.") diff --git a/gradle.properties b/gradle.properties index d012c0243..2b368b12a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.apideck artifactId=unify -version=0.32.0 +version=0.33.0 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 fcad21951..2822610ac 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.25.1"; - public static final String SDK_VERSION = "0.32.0"; - public static final String GEN_VERSION = "2.916.4"; + public static final String OPENAPI_DOC_VERSION = "10.27.0"; + public static final String SDK_VERSION = "0.33.0"; + public static final String GEN_VERSION = "2.918.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/BillsFilter.java b/src/main/java/com/apideck/unify/models/components/BillsFilter.java index 71bd30ab6..4b241b9de 100644 --- a/src/main/java/com/apideck/unify/models/components/BillsFilter.java +++ b/src/main/java/com/apideck/unify/models/components/BillsFilter.java @@ -10,6 +10,7 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.Optional; @@ -25,6 +26,18 @@ public class BillsFilter { @SpeakeasyMetadata("queryParam:name=updated_since") private Optional updatedSince; + /** + * Return bills with a document date (`bill_date`) on or after the given date (YYYY-MM-DD). + */ + @SpeakeasyMetadata("queryParam:name=billed_since") + private Optional billedSince; + + /** + * Return bills with a due date (`due_date`) on or after the given date (YYYY-MM-DD). + */ + @SpeakeasyMetadata("queryParam:name=due_since") + private Optional dueSince; + /** * Filter by bill status */ @@ -42,21 +55,27 @@ public class BillsFilter { public BillsFilter( Optional idSince, Optional updatedSince, + Optional billedSince, + Optional dueSince, Optional status, Optional subsidiaryId) { Utils.checkNotNull(idSince, "idSince"); Utils.checkNotNull(updatedSince, "updatedSince"); + Utils.checkNotNull(billedSince, "billedSince"); + Utils.checkNotNull(dueSince, "dueSince"); Utils.checkNotNull(status, "status"); Utils.checkNotNull(subsidiaryId, "subsidiaryId"); this.idSince = idSince; this.updatedSince = updatedSince; + this.billedSince = billedSince; + this.dueSince = dueSince; this.status = status; this.subsidiaryId = subsidiaryId; } public BillsFilter() { this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty()); + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -72,6 +91,22 @@ public Optional updatedSince() { return updatedSince; } + /** + * Return bills with a document date (`bill_date`) on or after the given date (YYYY-MM-DD). + */ + @JsonIgnore + public Optional billedSince() { + return billedSince; + } + + /** + * Return bills with a due date (`due_date`) on or after the given date (YYYY-MM-DD). + */ + @JsonIgnore + public Optional dueSince() { + return dueSince; + } + /** * Filter by bill status */ @@ -127,6 +162,44 @@ public BillsFilter withUpdatedSince(Optional updatedSince) { return this; } + /** + * Return bills with a document date (`bill_date`) on or after the given date (YYYY-MM-DD). + */ + public BillsFilter withBilledSince(LocalDate billedSince) { + Utils.checkNotNull(billedSince, "billedSince"); + this.billedSince = Optional.ofNullable(billedSince); + return this; + } + + + /** + * Return bills with a document date (`bill_date`) on or after the given date (YYYY-MM-DD). + */ + public BillsFilter withBilledSince(Optional billedSince) { + Utils.checkNotNull(billedSince, "billedSince"); + this.billedSince = billedSince; + return this; + } + + /** + * Return bills with a due date (`due_date`) on or after the given date (YYYY-MM-DD). + */ + public BillsFilter withDueSince(LocalDate dueSince) { + Utils.checkNotNull(dueSince, "dueSince"); + this.dueSince = Optional.ofNullable(dueSince); + return this; + } + + + /** + * Return bills with a due date (`due_date`) on or after the given date (YYYY-MM-DD). + */ + public BillsFilter withDueSince(Optional dueSince) { + Utils.checkNotNull(dueSince, "dueSince"); + this.dueSince = dueSince; + return this; + } + /** * Filter by bill status */ @@ -179,6 +252,8 @@ public boolean equals(java.lang.Object o) { return Utils.enhancedDeepEquals(this.idSince, other.idSince) && Utils.enhancedDeepEquals(this.updatedSince, other.updatedSince) && + Utils.enhancedDeepEquals(this.billedSince, other.billedSince) && + Utils.enhancedDeepEquals(this.dueSince, other.dueSince) && Utils.enhancedDeepEquals(this.status, other.status) && Utils.enhancedDeepEquals(this.subsidiaryId, other.subsidiaryId); } @@ -186,8 +261,8 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - idSince, updatedSince, status, - subsidiaryId); + idSince, updatedSince, billedSince, + dueSince, status, subsidiaryId); } @Override @@ -195,6 +270,8 @@ public String toString() { return Utils.toString(BillsFilter.class, "idSince", idSince, "updatedSince", updatedSince, + "billedSince", billedSince, + "dueSince", dueSince, "status", status, "subsidiaryId", subsidiaryId); } @@ -206,6 +283,10 @@ public final static class Builder { private Optional updatedSince = Optional.empty(); + private Optional billedSince = Optional.empty(); + + private Optional dueSince = Optional.empty(); + private Optional status = Optional.empty(); private Optional subsidiaryId = Optional.empty(); @@ -247,6 +328,44 @@ public Builder updatedSince(Optional updatedSince) { } + /** + * Return bills with a document date (`bill_date`) on or after the given date (YYYY-MM-DD). + */ + public Builder billedSince(LocalDate billedSince) { + Utils.checkNotNull(billedSince, "billedSince"); + this.billedSince = Optional.ofNullable(billedSince); + return this; + } + + /** + * Return bills with a document date (`bill_date`) on or after the given date (YYYY-MM-DD). + */ + public Builder billedSince(Optional billedSince) { + Utils.checkNotNull(billedSince, "billedSince"); + this.billedSince = billedSince; + return this; + } + + + /** + * Return bills with a due date (`due_date`) on or after the given date (YYYY-MM-DD). + */ + public Builder dueSince(LocalDate dueSince) { + Utils.checkNotNull(dueSince, "dueSince"); + this.dueSince = Optional.ofNullable(dueSince); + return this; + } + + /** + * Return bills with a due date (`due_date`) on or after the given date (YYYY-MM-DD). + */ + public Builder dueSince(Optional dueSince) { + Utils.checkNotNull(dueSince, "dueSince"); + this.dueSince = dueSince; + return this; + } + + /** * Filter by bill status */ @@ -289,8 +408,8 @@ public Builder subsidiaryId(Optional subsidiaryId) { public BillsFilter build() { return new BillsFilter( - idSince, updatedSince, status, - subsidiaryId); + idSince, updatedSince, billedSince, + dueSince, status, subsidiaryId); } } diff --git a/src/main/java/com/apideck/unify/models/components/ExpenseReport.java b/src/main/java/com/apideck/unify/models/components/ExpenseReport.java index fe313a8ac..430edbd30 100644 --- a/src/main/java/com/apideck/unify/models/components/ExpenseReport.java +++ b/src/main/java/com/apideck/unify/models/components/ExpenseReport.java @@ -164,6 +164,13 @@ public class ExpenseReport { @JsonProperty("line_items") private List lineItems; + /** + * Optional reference identifier for the transaction. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private JsonNullable reference; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("subsidiary") @@ -269,6 +276,7 @@ public ExpenseReport( @JsonProperty("account") JsonNullable account, @JsonProperty("accounting_period") JsonNullable accountingPeriod, @JsonProperty("line_items") List lineItems, + @JsonProperty("reference") JsonNullable reference, @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("tracking_categories") JsonNullable> trackingCategories, @JsonProperty("tax_inclusive") JsonNullable taxInclusive, @@ -302,6 +310,7 @@ public ExpenseReport( Utils.checkNotNull(account, "account"); Utils.checkNotNull(accountingPeriod, "accountingPeriod"); Utils.checkNotNull(lineItems, "lineItems"); + Utils.checkNotNull(reference, "reference"); Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(trackingCategories, "trackingCategories"); Utils.checkNotNull(taxInclusive, "taxInclusive"); @@ -335,6 +344,7 @@ public ExpenseReport( this.account = account; this.accountingPeriod = accountingPeriod; this.lineItems = lineItems; + this.reference = reference; this.subsidiary = subsidiary; this.trackingCategories = trackingCategories; this.taxInclusive = taxInclusive; @@ -360,9 +370,10 @@ public ExpenseReport( JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), lineItems, JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty()); } /** @@ -531,6 +542,14 @@ public List lineItems() { return lineItems; } + /** + * Optional reference identifier for the transaction. + */ + @JsonIgnore + public JsonNullable reference() { + return reference; + } + @SuppressWarnings("unchecked") @JsonIgnore public JsonNullable subsidiary() { @@ -980,6 +999,24 @@ public ExpenseReport withLineItems(List lineItems) { return this; } + /** + * Optional reference identifier for the transaction. + */ + public ExpenseReport withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = JsonNullable.of(reference); + return this; + } + + /** + * Optional reference identifier for the transaction. + */ + public ExpenseReport withReference(JsonNullable reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + public ExpenseReport withSubsidiary(LinkedSubsidiary subsidiary) { Utils.checkNotNull(subsidiary, "subsidiary"); this.subsidiary = JsonNullable.of(subsidiary); @@ -1221,6 +1258,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.account, other.account) && Utils.enhancedDeepEquals(this.accountingPeriod, other.accountingPeriod) && Utils.enhancedDeepEquals(this.lineItems, other.lineItems) && + Utils.enhancedDeepEquals(this.reference, other.reference) && Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.trackingCategories, other.trackingCategories) && Utils.enhancedDeepEquals(this.taxInclusive, other.taxInclusive) && @@ -1245,10 +1283,11 @@ public int hashCode() { totalTax, totalAmount, reimbursableAmount, memo, department, location, account, accountingPeriod, lineItems, - subsidiary, trackingCategories, taxInclusive, - approvedBy, customFields, customMappings, - rowVersion, updatedBy, createdBy, - updatedAt, createdAt, passThrough); + reference, subsidiary, trackingCategories, + taxInclusive, approvedBy, customFields, + customMappings, rowVersion, updatedBy, + createdBy, updatedAt, createdAt, + passThrough); } @Override @@ -1275,6 +1314,7 @@ public String toString() { "account", account, "accountingPeriod", accountingPeriod, "lineItems", lineItems, + "reference", reference, "subsidiary", subsidiary, "trackingCategories", trackingCategories, "taxInclusive", taxInclusive, @@ -1334,6 +1374,8 @@ public final static class Builder { private List lineItems; + private JsonNullable reference = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); private JsonNullable> trackingCategories = JsonNullable.undefined(); @@ -1728,6 +1770,25 @@ public Builder lineItems(List lineItems) { } + /** + * Optional reference identifier for the transaction. + */ + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = JsonNullable.of(reference); + return this; + } + + /** + * Optional reference identifier for the transaction. + */ + public Builder reference(JsonNullable reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public Builder subsidiary(LinkedSubsidiary subsidiary) { Utils.checkNotNull(subsidiary, "subsidiary"); this.subsidiary = JsonNullable.of(subsidiary); @@ -1957,10 +2018,11 @@ public ExpenseReport build() { totalTax, totalAmount, reimbursableAmount, memo, department, location, account, accountingPeriod, lineItems, - subsidiary, trackingCategories, taxInclusive, - approvedBy, customFields, customMappings, - rowVersion, updatedBy, createdBy, - updatedAt, createdAt, passThrough); + reference, subsidiary, trackingCategories, + taxInclusive, approvedBy, customFields, + customMappings, rowVersion, updatedBy, + createdBy, updatedAt, createdAt, + passThrough); } } diff --git a/src/main/java/com/apideck/unify/models/components/ExpenseReportInput.java b/src/main/java/com/apideck/unify/models/components/ExpenseReportInput.java index d8144b0d3..f5592ea2e 100644 --- a/src/main/java/com/apideck/unify/models/components/ExpenseReportInput.java +++ b/src/main/java/com/apideck/unify/models/components/ExpenseReportInput.java @@ -155,6 +155,13 @@ public class ExpenseReportInput { @JsonProperty("line_items") private List lineItems; + /** + * Optional reference identifier for the transaction. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private JsonNullable reference; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("subsidiary") @@ -224,6 +231,7 @@ public ExpenseReportInput( @JsonProperty("account") JsonNullable account, @JsonProperty("accounting_period") JsonNullable accountingPeriod, @JsonProperty("line_items") List lineItems, + @JsonProperty("reference") JsonNullable reference, @JsonProperty("subsidiary") JsonNullable subsidiary, @JsonProperty("tracking_categories") JsonNullable> trackingCategories, @JsonProperty("tax_inclusive") JsonNullable taxInclusive, @@ -251,6 +259,7 @@ public ExpenseReportInput( Utils.checkNotNull(account, "account"); Utils.checkNotNull(accountingPeriod, "accountingPeriod"); Utils.checkNotNull(lineItems, "lineItems"); + Utils.checkNotNull(reference, "reference"); Utils.checkNotNull(subsidiary, "subsidiary"); Utils.checkNotNull(trackingCategories, "trackingCategories"); Utils.checkNotNull(taxInclusive, "taxInclusive"); @@ -278,6 +287,7 @@ public ExpenseReportInput( this.account = account; this.accountingPeriod = accountingPeriod; this.lineItems = lineItems; + this.reference = reference; this.subsidiary = subsidiary; this.trackingCategories = trackingCategories; this.taxInclusive = taxInclusive; @@ -298,7 +308,8 @@ public ExpenseReportInput( JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), lineItems, JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty(), JsonNullable.undefined(), Optional.empty()); + JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), + Optional.empty()); } /** @@ -459,6 +470,14 @@ public List lineItems() { return lineItems; } + /** + * Optional reference identifier for the transaction. + */ + @JsonIgnore + public JsonNullable reference() { + return reference; + } + @SuppressWarnings("unchecked") @JsonIgnore public JsonNullable subsidiary() { @@ -848,6 +867,24 @@ public ExpenseReportInput withLineItems(List lineIte return this; } + /** + * Optional reference identifier for the transaction. + */ + public ExpenseReportInput withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = JsonNullable.of(reference); + return this; + } + + /** + * Optional reference identifier for the transaction. + */ + public ExpenseReportInput withReference(JsonNullable reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + public ExpenseReportInput withSubsidiary(LinkedSubsidiaryInput subsidiary) { Utils.checkNotNull(subsidiary, "subsidiary"); this.subsidiary = JsonNullable.of(subsidiary); @@ -998,6 +1035,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.account, other.account) && Utils.enhancedDeepEquals(this.accountingPeriod, other.accountingPeriod) && Utils.enhancedDeepEquals(this.lineItems, other.lineItems) && + Utils.enhancedDeepEquals(this.reference, other.reference) && Utils.enhancedDeepEquals(this.subsidiary, other.subsidiary) && Utils.enhancedDeepEquals(this.trackingCategories, other.trackingCategories) && Utils.enhancedDeepEquals(this.taxInclusive, other.taxInclusive) && @@ -1016,9 +1054,10 @@ public int hashCode() { currencyRate, subTotal, totalTax, totalAmount, reimbursableAmount, memo, department, location, account, - accountingPeriod, lineItems, subsidiary, - trackingCategories, taxInclusive, approvedBy, - customFields, rowVersion, passThrough); + accountingPeriod, lineItems, reference, + subsidiary, trackingCategories, taxInclusive, + approvedBy, customFields, rowVersion, + passThrough); } @Override @@ -1044,6 +1083,7 @@ public String toString() { "account", account, "accountingPeriod", accountingPeriod, "lineItems", lineItems, + "reference", reference, "subsidiary", subsidiary, "trackingCategories", trackingCategories, "taxInclusive", taxInclusive, @@ -1096,6 +1136,8 @@ public final static class Builder { private List lineItems; + private JsonNullable reference = JsonNullable.undefined(); + private JsonNullable subsidiary = JsonNullable.undefined(); private JsonNullable> trackingCategories = JsonNullable.undefined(); @@ -1461,6 +1503,25 @@ public Builder lineItems(List lineItems) { } + /** + * Optional reference identifier for the transaction. + */ + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = JsonNullable.of(reference); + return this; + } + + /** + * Optional reference identifier for the transaction. + */ + public Builder reference(JsonNullable reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public Builder subsidiary(LinkedSubsidiaryInput subsidiary) { Utils.checkNotNull(subsidiary, "subsidiary"); this.subsidiary = JsonNullable.of(subsidiary); @@ -1594,9 +1655,10 @@ public ExpenseReportInput build() { currencyRate, subTotal, totalTax, totalAmount, reimbursableAmount, memo, department, location, account, - accountingPeriod, lineItems, subsidiary, - trackingCategories, taxInclusive, approvedBy, - customFields, rowVersion, passThrough); + accountingPeriod, lineItems, reference, + subsidiary, trackingCategories, taxInclusive, + approvedBy, customFields, rowVersion, + passThrough); } } diff --git a/src/main/java/com/apideck/unify/models/components/WebhookEventType.java b/src/main/java/com/apideck/unify/models/components/WebhookEventType.java index b76d02c33..6b2cb62a4 100644 --- a/src/main/java/com/apideck/unify/models/components/WebhookEventType.java +++ b/src/main/java/com/apideck/unify/models/components/WebhookEventType.java @@ -123,6 +123,9 @@ public class WebhookEventType { public static final WebhookEventType HRIS_COMPANY_CREATED = new WebhookEventType("hris.company.created"); public static final WebhookEventType HRIS_COMPANY_UPDATED = new WebhookEventType("hris.company.updated"); public static final WebhookEventType HRIS_COMPANY_DELETED = new WebhookEventType("hris.company.deleted"); + public static final WebhookEventType HRIS_TIME_OFF_REQUEST_CREATED = new WebhookEventType("hris.time-off-request.created"); + public static final WebhookEventType HRIS_TIME_OFF_REQUEST_UPDATED = new WebhookEventType("hris.time-off-request.updated"); + public static final WebhookEventType HRIS_TIME_OFF_REQUEST_DELETED = new WebhookEventType("hris.time-off-request.deleted"); public static final WebhookEventType FILE_STORAGE_FILE_CREATED = new WebhookEventType("file-storage.file.created"); public static final WebhookEventType FILE_STORAGE_FILE_UPDATED = new WebhookEventType("file-storage.file.updated"); public static final WebhookEventType FILE_STORAGE_FILE_DELETED = new WebhookEventType("file-storage.file.deleted"); @@ -330,6 +333,9 @@ private static final Map createValuesMap() { map.put("hris.company.created", HRIS_COMPANY_CREATED); map.put("hris.company.updated", HRIS_COMPANY_UPDATED); map.put("hris.company.deleted", HRIS_COMPANY_DELETED); + map.put("hris.time-off-request.created", HRIS_TIME_OFF_REQUEST_CREATED); + map.put("hris.time-off-request.updated", HRIS_TIME_OFF_REQUEST_UPDATED); + map.put("hris.time-off-request.deleted", HRIS_TIME_OFF_REQUEST_DELETED); map.put("file-storage.file.created", FILE_STORAGE_FILE_CREATED); map.put("file-storage.file.updated", FILE_STORAGE_FILE_UPDATED); map.put("file-storage.file.deleted", FILE_STORAGE_FILE_DELETED); @@ -469,6 +475,9 @@ private static final Map createEnumsMap() { map.put("hris.company.created", WebhookEventTypeEnum.HRIS_COMPANY_CREATED); map.put("hris.company.updated", WebhookEventTypeEnum.HRIS_COMPANY_UPDATED); map.put("hris.company.deleted", WebhookEventTypeEnum.HRIS_COMPANY_DELETED); + map.put("hris.time-off-request.created", WebhookEventTypeEnum.HRIS_TIME_OFF_REQUEST_CREATED); + map.put("hris.time-off-request.updated", WebhookEventTypeEnum.HRIS_TIME_OFF_REQUEST_UPDATED); + map.put("hris.time-off-request.deleted", WebhookEventTypeEnum.HRIS_TIME_OFF_REQUEST_DELETED); map.put("file-storage.file.created", WebhookEventTypeEnum.FILE_STORAGE_FILE_CREATED); map.put("file-storage.file.updated", WebhookEventTypeEnum.FILE_STORAGE_FILE_UPDATED); map.put("file-storage.file.deleted", WebhookEventTypeEnum.FILE_STORAGE_FILE_DELETED); @@ -609,6 +618,9 @@ public enum WebhookEventTypeEnum { HRIS_COMPANY_CREATED("hris.company.created"), HRIS_COMPANY_UPDATED("hris.company.updated"), HRIS_COMPANY_DELETED("hris.company.deleted"), + HRIS_TIME_OFF_REQUEST_CREATED("hris.time-off-request.created"), + HRIS_TIME_OFF_REQUEST_UPDATED("hris.time-off-request.updated"), + HRIS_TIME_OFF_REQUEST_DELETED("hris.time-off-request.deleted"), FILE_STORAGE_FILE_CREATED("file-storage.file.created"), FILE_STORAGE_FILE_UPDATED("file-storage.file.updated"), FILE_STORAGE_FILE_DELETED("file-storage.file.deleted"),