diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 198f30d0..757ae79e 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 38254260-287a-40b6-9ac5-c2fcb654c9cc management: - docChecksum: 2b91077d3422f4b5c6cdfdac2d535068 - docVersion: 10.24.24 + docChecksum: bc0e5769ed741d22b3d967c30ad9e5f3 + docVersion: 10.24.27 speakeasyVersion: 1.761.9 generationVersion: 2.881.4 - releaseVersion: 0.31.8 - configChecksum: eaee2e64c02fc02cf3f1295e79bac028 + releaseVersion: 0.31.9 + configChecksum: 53dc237c1b66b760aa1c350182cba3a7 repoURL: https://github.com/apideck-libraries/sdk-java.git installationURL: https://github.com/apideck-libraries/sdk-java published: true persistentEdits: - generation_id: f1ad82e8-95d3-4db4-ae0c-a6d8675e7083 - pristine_commit_hash: cc191ed1e44e7bb19c060d98328bbd62d8b17383 - pristine_tree_hash: 1b60436cd4e7cc9da66906fb28b09f17b8d627a1 + generation_id: 850fbb31-5f07-48dd-82d8-dac2b0323130 + pristine_commit_hash: 60024f4aeb5541faaeac07833400e4fdec52fbe6 + pristine_tree_hash: e24dc09fb53fbe3272162e921764d4edf12f45fd features: java: acceptHeaders: 2.81.2 @@ -2957,8 +2957,12 @@ trackedFiles: pristine_git_object: 3c444a0ccb665ac600cfe6d05c336c12aa6156a2 docs/models/components/PaymentsFilter.md: id: f6689fee2b35 - last_write_checksum: sha1:5048ec70e96e6af5a61faafe2950fd7e80fedc05 - pristine_git_object: 14a6cc1653c10eba7df0d2379321062128da9090 + last_write_checksum: sha1:ecac8e0337554acf3e71c5b878cf4c79bb4848a3 + pristine_git_object: 04c152917c17d53aeb165aa50df68841da8478da + docs/models/components/PaymentsFilterPaymentStatus.md: + id: 47963fa493d7 + last_write_checksum: sha1:4769891d33dc30b95ef762c7fb6c12d1fe9c9df5 + pristine_git_object: c4c0c29210c891c79bd9ddabd4473c996b0ccc9b docs/models/components/PaymentsFilterType.md: id: fd73ce9455c3 last_write_checksum: sha1:6fcd2717de431e4b3a2609afcf8cc9fa4dbf6543 @@ -3153,8 +3157,8 @@ trackedFiles: pristine_git_object: 77ab496b35060411d8d96a122d7d4ce47df71431 docs/models/components/RebillStatus.md: id: 5e382ca5fd82 - last_write_checksum: sha1:ea33a85c771e0b544ff60500eec6409cec8c9b31 - pristine_git_object: 6fe11e3a4faaad4adb9daedf8339cc7db0bbae30 + last_write_checksum: sha1:f3c240b7b3957fc1969bc00947b9737994e48ae9 + pristine_git_object: f0723c1e4e1f5daeaf0766a9796739764ba2ea62 docs/models/components/Rebilling.md: id: 577c2ed79686 last_write_checksum: sha1:d461e8d2f5b560ac51616a977ef8888134ba55e4 @@ -4129,8 +4133,8 @@ trackedFiles: pristine_git_object: b0f2fd0a5115f072b3ab64583aa143624d0c2cd6 docs/models/operations/AccountingBillPaymentsAllRequest.md: id: 4e4cd2dd6e0f - last_write_checksum: sha1:a6f77d3049973be3b0d30ecfd5c4e30c825b5f85 - pristine_git_object: 6c2aac2d98ab9f064e3d5df049319b15a1a063b5 + last_write_checksum: sha1:77d59fae263e6b0c5c0acde1d76c6889b65575f7 + pristine_git_object: 648bef663be17834e4c39494a92a78868e885df1 docs/models/operations/AccountingBillPaymentsAllResponse.md: id: 6850c8e6f381 last_write_checksum: sha1:d16e00ee62e8328908af3a321a3ff08b0c367d85 @@ -4721,8 +4725,8 @@ trackedFiles: pristine_git_object: 48987c0643f922adec590cf9332b6120c57cebc1 docs/models/operations/AccountingPaymentsAllRequest.md: id: ac7045a11482 - last_write_checksum: sha1:426cf02773f2df4e5c8fd2eddade4b1dd12db771 - pristine_git_object: b8b6f8698bd8e1b0d405d67b44019a2513f711d0 + last_write_checksum: sha1:56e30ecc888db59fc476488926109ccaa45e3a72 + pristine_git_object: 3a86346223b82414c3a848859734f7466a42aa9e docs/models/operations/AccountingPaymentsAllResponse.md: id: 38fed743b109 last_write_checksum: sha1:9ec90b215cc71bae3cc43e78fd17172d65510241 @@ -7013,8 +7017,8 @@ trackedFiles: pristine_git_object: c755c6aa377f358344e761e9cc3e7b67bc1fb479 gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:15f82f22bba55fd5fe22183a57f137ec41c6da89 - pristine_git_object: 68ba23d835b8258845890d6e674dc9f206e58944 + last_write_checksum: sha1:6449f178783817e868a91f2c307be4dba670c084 + pristine_git_object: a4f6d0de232c3487e8a6aef18356c8279ec7e58e gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -7833,8 +7837,8 @@ trackedFiles: pristine_git_object: 7296db7ebcdcff7ee348d1f993fc4aa2a7e6c145 src/main/java/com/apideck/unify/SDKConfiguration.java: id: a2b330a87142 - last_write_checksum: sha1:c557c06c733f3e0bcee22713fee6706583088ddc - pristine_git_object: 9c6e8f9aaf14662befbe79569130afbeb1650703 + last_write_checksum: sha1:7a25552e1fc7cfa66f0635f700e11fecf887b9f7 + pristine_git_object: fd3a4d33659b93db0764d3dc105b108ae0996f12 src/main/java/com/apideck/unify/SecuritySource.java: id: e4566c6c806b last_write_checksum: sha1:101bf1a9f5cf4e8c37abb4540147276eebb2bab0 @@ -10805,8 +10809,12 @@ trackedFiles: pristine_git_object: 4f9c1044a6f44398c63667231eb852946d5816e9 src/main/java/com/apideck/unify/models/components/PaymentsFilter.java: id: 8eaedee76441 - last_write_checksum: sha1:0f96f0731e131e8c0b45c8f224b4d2031e6788a7 - pristine_git_object: ed34996dd7d13f9d0221e5cd9c73f4b7f25589c9 + last_write_checksum: sha1:01de023eb99f3a86d23c1ea1a47d6ac57c8f2e6e + pristine_git_object: 3a32d216e89de29ed90c78a1727f2450988e5de0 + src/main/java/com/apideck/unify/models/components/PaymentsFilterPaymentStatus.java: + id: c6d5bcb6229c + last_write_checksum: sha1:76933d3ebb947c15dba2e6751291d92f8d7fb1f7 + pristine_git_object: 775b6c0f772a357d9f5c6ae69cd014bd5b55bd45 src/main/java/com/apideck/unify/models/components/PaymentsFilterType.java: id: d0433e9576db last_write_checksum: sha1:81500c71738b9eedddf96a9322313ad7b9574a22 @@ -11001,8 +11009,8 @@ trackedFiles: pristine_git_object: ba3c394424430a41f35fb0a21bb7a90c29f33310 src/main/java/com/apideck/unify/models/components/RebillStatus.java: id: ebecea51f8c3 - last_write_checksum: sha1:4d428a1bfc1add66402a7e9622c6447c4c86c15c - pristine_git_object: a04d8083a80b7c6f99b23c5de86b4f752a381b19 + last_write_checksum: sha1:941f847ea09868248882472b5c8a61d150693adf + pristine_git_object: 99175d684d6ebdad5b2407e0c7fb3f3634d77df0 src/main/java/com/apideck/unify/models/components/Rebilling.java: id: 4142b0a6b981 last_write_checksum: sha1:8219e51c987ca0804b9d00ba056861e225d8d834 @@ -22359,7 +22367,7 @@ examples: query: raw: false limit: 20 - filter: {"updated_since": "2020-09-30T07:43:32.000Z", "invoice_id": "123", "bill_id": "123", "supplier_id": "123", "customer_id": "123abc", "type": "accounts_receivable"} + filter: {"updated_since": "2020-09-30T07:43:32.000Z", "invoice_id": "123", "bill_id": "123", "supplier_id": "123", "customer_id": "123abc", "type": "accounts_receivable", "status": "authorised"} sort: {"by": "updated_at", "direction": "desc"} pass_through: {"search": "San Francisco"} fields: "id,updated_at" @@ -24708,7 +24716,7 @@ examples: query: raw: false limit: 20 - filter: {"updated_since": "2020-09-30T07:43:32.000Z", "invoice_id": "123", "bill_id": "123", "supplier_id": "123", "customer_id": "123abc", "type": "accounts_receivable"} + filter: {"updated_since": "2020-09-30T07:43:32.000Z", "invoice_id": "123", "bill_id": "123", "supplier_id": "123", "customer_id": "123abc", "type": "accounts_receivable", "status": "authorised"} sort: {"by": "updated_at", "direction": "desc"} pass_through: {"search": "San Francisco"} fields: "id,updated_at" @@ -36505,7 +36513,7 @@ examples: application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Java SDK Changes:\n* `apideck.accounting.bills.list()`: `response.data[].paymentAllocations` **Added**\n* `apideck.accounting.bills.create()`: \n * `request.bill.paymentAllocations` **Added**\n* `apideck.accounting.bills.get()`: `response.data.paymentAllocations` **Added**\n* `apideck.accounting.bills.update()`: \n * `request.bill.paymentAllocations` **Added**\n* `apideck.accounting.payments.list()`: \n * `request.filter` **Changed**\n* `apideck.accounting.billPayments.list()`: \n * `request.filter` **Changed**\n" +releaseNotes: "## Java SDK Changes:\n* `apideck.accounting.bills.list()`: `response.data[].lineItems[].rebilling.rebillStatus.enum(other)` **Added**\n* `apideck.accounting.bills.create()`: \n * `request.bill.lineItems[].rebilling.rebillStatus.enum(other)` **Added**\n* `apideck.accounting.bills.get()`: `response.data.lineItems[].rebilling.rebillStatus.enum(other)` **Added**\n* `apideck.accounting.bills.update()`: \n * `request.bill.lineItems[].rebilling.rebillStatus.enum(other)` **Added**\n* `apideck.accounting.payments.list()`: \n * `request.filter` **Changed**\n* `apideck.accounting.billPayments.list()`: \n * `request.filter` **Changed**\n* `apideck.accounting.expenses.list()`: `response.data[].lineItems[].rebilling.rebillStatus.enum(other)` **Added**\n* `apideck.accounting.expenses.create()`: \n * `request.expense.lineItems[].rebilling.rebillStatus.enum(other)` **Added**\n* `apideck.accounting.expenses.get()`: `response.data.lineItems[].rebilling.rebillStatus.enum(other)` **Added**\n* `apideck.accounting.expenses.update()`: \n * `request.expense.lineItems[].rebilling.rebillStatus.enum(other)` **Added**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 58dcf989..31ff4e01 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 0.31.8 + version: 0.31.9 additionalDependencies: [] additionalPlugins: [] artifactID: unify diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 2c2c202b..cd176e4f 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,19 +2,19 @@ speakeasyVersion: 1.761.9 sources: Apideck-OAS: sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:c0d0d9f5576028414356efe057f492c84f4492a94189a61b7b6039ed1e1e0765 - sourceBlobDigest: sha256:3c0a71801c24c2877a1d100291ca60a4e5a38b2fcb03b261b9332640e70bb08f + sourceRevisionDigest: sha256:1796eff47fce74d2472826319a21e6f7a74025547e62d5c8f50ba2d7a6019de3 + sourceBlobDigest: sha256:64413a263c963dc0e16825fb19dcf8f87f92ffe2898c83dcde8a940930a23ca3 tags: - latest - - 10.24.24 + - 10.24.27 targets: apideck: source: Apideck-OAS sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:c0d0d9f5576028414356efe057f492c84f4492a94189a61b7b6039ed1e1e0765 - sourceBlobDigest: sha256:3c0a71801c24c2877a1d100291ca60a4e5a38b2fcb03b261b9332640e70bb08f + sourceRevisionDigest: sha256:1796eff47fce74d2472826319a21e6f7a74025547e62d5c8f50ba2d7a6019de3 + sourceBlobDigest: sha256:64413a263c963dc0e16825fb19dcf8f87f92ffe2898c83dcde8a940930a23ca3 codeSamplesNamespace: apideck-oas-java-code-samples - codeSamplesRevisionDigest: sha256:3eed481ce0065829dbbf6870b2a1d2c221517b5de12b2e85cc3970f23b9466ac + codeSamplesRevisionDigest: sha256:22014ccc3116043ea9e585faeb7ca1b05d0fca1d1fadd0dc96fa09a22def730a workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 632b66da..0fed1719 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.8' +implementation 'com.apideck:unify:0.31.9' ``` Maven: @@ -59,7 +59,7 @@ Maven: com.apideck unify - 0.31.8 + 0.31.9 ``` diff --git a/RELEASES.md b/RELEASES.md index e99fe0eb..53769d87 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -818,4 +818,14 @@ Based on: ### Generated - [java v0.31.8] . ### Releases -- [Maven Central v0.31.8] https://central.sonatype.com/artifact/com.apideck/unify/0.31.8 - . \ No newline at end of file +- [Maven Central v0.31.8] https://central.sonatype.com/artifact/com.apideck/unify/0.31.8 - . + +## 2026-04-23 12:50:19 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.761.9 (2.881.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.31.9] . +### Releases +- [Maven Central v0.31.9] https://central.sonatype.com/artifact/com.apideck/unify/0.31.9 - . \ No newline at end of file diff --git a/docs/models/components/PaymentsFilter.md b/docs/models/components/PaymentsFilter.md index 14a6cc16..04c15291 100644 --- a/docs/models/components/PaymentsFilter.md +++ b/docs/models/components/PaymentsFilter.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `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 | -| `invoiceId` | *Optional\* | :heavy_minus_sign: | N/A | 123 | -| `billId` | *Optional\* | :heavy_minus_sign: | N/A | 123 | -| `supplierId` | *Optional\* | :heavy_minus_sign: | N/A | 123 | -| `customerId` | *Optional\* | :heavy_minus_sign: | Filter by customer id | 123abc | -| `type` | [Optional\](../../models/components/PaymentsFilterType.md) | :heavy_minus_sign: | N/A | accounts_receivable | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `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 | +| `invoiceId` | *Optional\* | :heavy_minus_sign: | N/A | 123 | +| `billId` | *Optional\* | :heavy_minus_sign: | N/A | 123 | +| `supplierId` | *Optional\* | :heavy_minus_sign: | N/A | 123 | +| `customerId` | *Optional\* | :heavy_minus_sign: | Filter by customer id | 123abc | +| `type` | [Optional\](../../models/components/PaymentsFilterType.md) | :heavy_minus_sign: | N/A | accounts_receivable | +| `status` | [Optional\](../../models/components/PaymentsFilterPaymentStatus.md) | :heavy_minus_sign: | Filter by payment status | authorised | \ No newline at end of file diff --git a/docs/models/components/PaymentsFilterPaymentStatus.md b/docs/models/components/PaymentsFilterPaymentStatus.md new file mode 100644 index 00000000..c4c0c292 --- /dev/null +++ b/docs/models/components/PaymentsFilterPaymentStatus.md @@ -0,0 +1,26 @@ +# PaymentsFilterPaymentStatus + +Filter by payment status + +## Example Usage + +```java +import com.apideck.unify.models.components.PaymentsFilterPaymentStatus; + +PaymentsFilterPaymentStatus value = PaymentsFilterPaymentStatus.DRAFT; + +// Open enum: use .of() to create instances from custom string values +PaymentsFilterPaymentStatus custom = PaymentsFilterPaymentStatus.of("custom_value"); +``` + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `DRAFT` | draft | +| `AUTHORISED` | authorised | +| `REJECTED` | rejected | +| `PAID` | paid | +| `VOIDED` | voided | +| `DELETED` | deleted | \ No newline at end of file diff --git a/docs/models/components/RebillStatus.md b/docs/models/components/RebillStatus.md index 6fe11e3a..f0723c1e 100644 --- a/docs/models/components/RebillStatus.md +++ b/docs/models/components/RebillStatus.md @@ -20,4 +20,5 @@ RebillStatus custom = RebillStatus.of("custom_value"); | --------- | --------- | | `PENDING` | pending | | `BILLED` | billed | -| `VOIDED` | voided | \ No newline at end of file +| `VOIDED` | voided | +| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/operations/AccountingBillPaymentsAllRequest.md b/docs/models/operations/AccountingBillPaymentsAllRequest.md index 6c2aac2d..648bef66 100644 --- a/docs/models/operations/AccountingBillPaymentsAllRequest.md +++ b/docs/models/operations/AccountingBillPaymentsAllRequest.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/PaymentsFilter.md) | :heavy_minus_sign: | Apply filters | {
"updated_since": "2020-09-30T07:43:32.000Z",
"invoice_id": "123",
"bill_id": "123",
"supplier_id": "123",
"customer_id": "123abc",
"type": "accounts_receivable"
} | +| `filter` | [Optional\](../../models/components/PaymentsFilter.md) | :heavy_minus_sign: | Apply filters | {
"updated_since": "2020-09-30T07:43:32.000Z",
"invoice_id": "123",
"bill_id": "123",
"supplier_id": "123",
"customer_id": "123abc",
"type": "accounts_receivable",
"status": "authorised"
} | | `sort` | [Optional\](../../models/components/PaymentsSort.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/models/operations/AccountingPaymentsAllRequest.md b/docs/models/operations/AccountingPaymentsAllRequest.md index b8b6f869..3a863462 100644 --- a/docs/models/operations/AccountingPaymentsAllRequest.md +++ b/docs/models/operations/AccountingPaymentsAllRequest.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/PaymentsFilter.md) | :heavy_minus_sign: | Apply filters | {
"updated_since": "2020-09-30T07:43:32.000Z",
"invoice_id": "123",
"bill_id": "123",
"supplier_id": "123",
"customer_id": "123abc",
"type": "accounts_receivable"
} | +| `filter` | [Optional\](../../models/components/PaymentsFilter.md) | :heavy_minus_sign: | Apply filters | {
"updated_since": "2020-09-30T07:43:32.000Z",
"invoice_id": "123",
"bill_id": "123",
"supplier_id": "123",
"customer_id": "123abc",
"type": "accounts_receivable",
"status": "authorised"
} | | `sort` | [Optional\](../../models/components/PaymentsSort.md) | :heavy_minus_sign: | Apply sorting | {
"by": "updated_at",
"direction": "desc"
} | | `passThrough` | Map\ | :heavy_minus_sign: | Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads | {
"search": "San Francisco"
} | | `fields` | *JsonNullable\* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

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

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 68ba23d8..a4f6d0de 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.apideck artifactId=unify -version=0.31.8 +version=0.31.9 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 9c6e8f9a..fd3a4d33 100644 --- a/src/main/java/com/apideck/unify/SDKConfiguration.java +++ b/src/main/java/com/apideck/unify/SDKConfiguration.java @@ -20,8 +20,8 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; - public static final String OPENAPI_DOC_VERSION = "10.24.24"; - public static final String SDK_VERSION = "0.31.8"; + public static final String OPENAPI_DOC_VERSION = "10.24.27"; + public static final String SDK_VERSION = "0.31.9"; public static final String GEN_VERSION = "2.881.4"; private static final String BASE_PACKAGE = "com.apideck.unify"; public static final String USER_AGENT = diff --git a/src/main/java/com/apideck/unify/models/components/PaymentsFilter.java b/src/main/java/com/apideck/unify/models/components/PaymentsFilter.java index ed34996d..3a32d216 100644 --- a/src/main/java/com/apideck/unify/models/components/PaymentsFilter.java +++ b/src/main/java/com/apideck/unify/models/components/PaymentsFilter.java @@ -41,6 +41,12 @@ public class PaymentsFilter { @SpeakeasyMetadata("queryParam:name=type") private Optional type; + /** + * Filter by payment status + */ + @SpeakeasyMetadata("queryParam:name=status") + private Optional status; + @JsonCreator public PaymentsFilter( Optional updatedSince, @@ -48,24 +54,28 @@ public PaymentsFilter( Optional billId, Optional supplierId, Optional customerId, - Optional type) { + Optional type, + Optional status) { Utils.checkNotNull(updatedSince, "updatedSince"); Utils.checkNotNull(invoiceId, "invoiceId"); Utils.checkNotNull(billId, "billId"); Utils.checkNotNull(supplierId, "supplierId"); Utils.checkNotNull(customerId, "customerId"); Utils.checkNotNull(type, "type"); + Utils.checkNotNull(status, "status"); this.updatedSince = updatedSince; this.invoiceId = invoiceId; this.billId = billId; this.supplierId = supplierId; this.customerId = customerId; this.type = type; + this.status = status; } public PaymentsFilter() { this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty()); + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } @JsonIgnore @@ -102,6 +112,15 @@ public Optional type() { return (Optional) type; } + /** + * Filter by payment status + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional status() { + return (Optional) status; + } + public static Builder builder() { return new Builder(); } @@ -191,6 +210,25 @@ public PaymentsFilter withType(Optional type) { return this; } + /** + * Filter by payment status + */ + public PaymentsFilter withStatus(PaymentsFilterPaymentStatus status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + + /** + * Filter by payment status + */ + public PaymentsFilter withStatus(Optional status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -206,14 +244,16 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.billId, other.billId) && Utils.enhancedDeepEquals(this.supplierId, other.supplierId) && Utils.enhancedDeepEquals(this.customerId, other.customerId) && - Utils.enhancedDeepEquals(this.type, other.type); + Utils.enhancedDeepEquals(this.type, other.type) && + Utils.enhancedDeepEquals(this.status, other.status); } @Override public int hashCode() { return Utils.enhancedHash( updatedSince, invoiceId, billId, - supplierId, customerId, type); + supplierId, customerId, type, + status); } @Override @@ -224,7 +264,8 @@ public String toString() { "billId", billId, "supplierId", supplierId, "customerId", customerId, - "type", type); + "type", type, + "status", status); } @SuppressWarnings("UnusedReturnValue") @@ -242,6 +283,8 @@ public final static class Builder { private Optional type = Optional.empty(); + private Optional status = Optional.empty(); + private Builder() { // force use of static builder() method } @@ -330,11 +373,31 @@ public Builder type(Optional type) { return this; } + + /** + * Filter by payment status + */ + public Builder status(PaymentsFilterPaymentStatus status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + /** + * Filter by payment status + */ + public Builder status(Optional status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + public PaymentsFilter build() { return new PaymentsFilter( updatedSince, invoiceId, billId, - supplierId, customerId, type); + supplierId, customerId, type, + status); } } diff --git a/src/main/java/com/apideck/unify/models/components/PaymentsFilterPaymentStatus.java b/src/main/java/com/apideck/unify/models/components/PaymentsFilterPaymentStatus.java new file mode 100644 index 00000000..775b6c0f --- /dev/null +++ b/src/main/java/com/apideck/unify/models/components/PaymentsFilterPaymentStatus.java @@ -0,0 +1,148 @@ +/* + * 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. + */ +/** + * PaymentsFilterPaymentStatus + * + *

Filter by payment status + */ +public class PaymentsFilterPaymentStatus { + + public static final PaymentsFilterPaymentStatus DRAFT = new PaymentsFilterPaymentStatus("draft"); + public static final PaymentsFilterPaymentStatus AUTHORISED = new PaymentsFilterPaymentStatus("authorised"); + public static final PaymentsFilterPaymentStatus REJECTED = new PaymentsFilterPaymentStatus("rejected"); + public static final PaymentsFilterPaymentStatus PAID = new PaymentsFilterPaymentStatus("paid"); + public static final PaymentsFilterPaymentStatus VOIDED = new PaymentsFilterPaymentStatus("voided"); + public static final PaymentsFilterPaymentStatus DELETED = new PaymentsFilterPaymentStatus("deleted"); + + // 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 PaymentsFilterPaymentStatus(String value) { + this.value = value; + } + + /** + * Returns a PaymentsFilterPaymentStatus 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 PaymentsFilterPaymentStatus + */ + @JsonCreator + public static PaymentsFilterPaymentStatus of(String value) { + synchronized (PaymentsFilterPaymentStatus.class) { + return values.computeIfAbsent(value, v -> new PaymentsFilterPaymentStatus(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; + PaymentsFilterPaymentStatus other = (PaymentsFilterPaymentStatus) obj; + return Objects.equals(value, other.value); + } + + @Override + public String toString() { + return "PaymentsFilterPaymentStatus [value=" + value + "]"; + } + + // return an array just like an enum + public static PaymentsFilterPaymentStatus[] values() { + synchronized (PaymentsFilterPaymentStatus.class) { + return values.values().toArray(new PaymentsFilterPaymentStatus[] {}); + } + } + + private static final Map createValuesMap() { + Map map = new LinkedHashMap<>(); + map.put("draft", DRAFT); + map.put("authorised", AUTHORISED); + map.put("rejected", REJECTED); + map.put("paid", PAID); + map.put("voided", VOIDED); + map.put("deleted", DELETED); + return map; + } + + private static final Map createEnumsMap() { + Map map = new HashMap<>(); + map.put("draft", PaymentsFilterPaymentStatusEnum.DRAFT); + map.put("authorised", PaymentsFilterPaymentStatusEnum.AUTHORISED); + map.put("rejected", PaymentsFilterPaymentStatusEnum.REJECTED); + map.put("paid", PaymentsFilterPaymentStatusEnum.PAID); + map.put("voided", PaymentsFilterPaymentStatusEnum.VOIDED); + map.put("deleted", PaymentsFilterPaymentStatusEnum.DELETED); + return map; + } + + + public enum PaymentsFilterPaymentStatusEnum { + + DRAFT("draft"), + AUTHORISED("authorised"), + REJECTED("rejected"), + PAID("paid"), + VOIDED("voided"), + DELETED("deleted"),; + + private final String value; + + private PaymentsFilterPaymentStatusEnum(String value) { + this.value = value; + } + + public String value() { + return value; + } + } +} + diff --git a/src/main/java/com/apideck/unify/models/components/RebillStatus.java b/src/main/java/com/apideck/unify/models/components/RebillStatus.java index a04d8083..99175d68 100644 --- a/src/main/java/com/apideck/unify/models/components/RebillStatus.java +++ b/src/main/java/com/apideck/unify/models/components/RebillStatus.java @@ -28,6 +28,7 @@ public class RebillStatus { public static final RebillStatus PENDING = new RebillStatus("pending"); public static final RebillStatus BILLED = new RebillStatus("billed"); public static final RebillStatus VOIDED = new RebillStatus("voided"); + public static final RebillStatus OTHER = new RebillStatus("other"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -104,6 +105,7 @@ private static final Map createValuesMap() { map.put("pending", PENDING); map.put("billed", BILLED); map.put("voided", VOIDED); + map.put("other", OTHER); return map; } @@ -112,6 +114,7 @@ private static final Map createEnumsMap() { map.put("pending", RebillStatusEnum.PENDING); map.put("billed", RebillStatusEnum.BILLED); map.put("voided", RebillStatusEnum.VOIDED); + map.put("other", RebillStatusEnum.OTHER); return map; } @@ -120,7 +123,8 @@ public enum RebillStatusEnum { PENDING("pending"), BILLED("billed"), - VOIDED("voided"),; + VOIDED("voided"), + OTHER("other"),; private final String value;