From 18bf76f2a529fc056f509825c07aa8f33ffadb50 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Nov 2025 09:08:24 +0000 Subject: [PATCH 1/2] ## Csharp SDK Changes Detected: * `Apideck.Accounting.BalanceSheet.Get()`: * `request.Filter` **Changed** * `Apideck.Accounting.ProfitAndLoss.Get()`: * `request.Filter` **Changed** * `Apideck.Accounting.BankAccounts.List()`: * `request.Filter` **Changed** * `response.data.[].DownstreamId` **Added** * `Apideck.Accounting.BankAccounts.Get()`: `response.data.DownstreamId` **Added** --- .speakeasy/gen.lock | 26 ++++--- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 16 ++--- RELEASES.md | 12 +++- .../Components/AccountingBankAccount.md | 1 + docs/Models/Components/AccountingMethod.md | 11 +++ docs/Models/Components/BalanceSheetFilter.md | 3 +- docs/Models/Components/BankAccountsFilter.md | 9 +-- .../BankAccountsFilterAccountType.md | 16 +++++ docs/Models/Components/CreditNoteStatus.md | 15 ++-- docs/Models/Components/ProfitAndLossFilter.md | 13 ++-- .../ProfitAndLossFilterAccountingMethod.md | 11 +++ .../AccountingBalanceSheetOneRequest.md | 16 ++--- .../AccountingProfitAndLossOneRequest.md | 2 +- docs/sdks/bankaccounts/README.md | 1 + src/ApideckUnifySdk/ApideckUnifySdk.csproj | 2 +- .../Components/AccountingBankAccount.cs | 6 ++ .../Models/Components/AccountingMethod.cs | 60 ++++++++++++++++ .../Models/Components/BalanceSheetFilter.cs | 6 ++ .../Models/Components/BankAccountsFilter.cs | 6 ++ .../BankAccountsFilterAccountType.cs | 70 +++++++++++++++++++ .../Models/Components/CreditNoteStatus.cs | 2 + .../Models/Components/ProfitAndLossFilter.cs | 7 ++ .../ProfitAndLossFilterAccountingMethod.cs | 60 ++++++++++++++++ src/ApideckUnifySdk/SDKConfig.cs | 2 +- src/ApideckUnifySdk/Utils/Constants.cs | 4 +- 26 files changed, 328 insertions(+), 51 deletions(-) create mode 100644 docs/Models/Components/AccountingMethod.md create mode 100644 docs/Models/Components/BankAccountsFilterAccountType.md create mode 100644 docs/Models/Components/ProfitAndLossFilterAccountingMethod.md create mode 100644 src/ApideckUnifySdk/Models/Components/AccountingMethod.cs create mode 100644 src/ApideckUnifySdk/Models/Components/BankAccountsFilterAccountType.cs create mode 100644 src/ApideckUnifySdk/Models/Components/ProfitAndLossFilterAccountingMethod.cs diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ef99ab93d..cf0009b6d 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: f306da52-7172-441d-9f8c-9d055cef9c2a management: - docChecksum: fbc79de1908ef8470cee0e8ac97f3d4b - docVersion: 10.21.18 - speakeasyVersion: 1.661.3 + docChecksum: 5a64228df36ed373024a7e607d7107cf + docVersion: 10.21.19 + speakeasyVersion: 1.662.0 generationVersion: 2.763.3 - releaseVersion: 0.19.12 - configChecksum: 140855f2cb2b0bea2bb4c76a8569bafb + releaseVersion: 0.19.13 + configChecksum: a28a16ce8f6757e8153e6835c1c0a880 repoURL: https://github.com/apideck-libraries/sdk-csharp.git published: true features: @@ -53,6 +53,7 @@ generatedFiles: - docs/Models/Components/AccountingLocation.md - docs/Models/Components/AccountingLocationInput.md - docs/Models/Components/AccountingLocationsFilter.md + - docs/Models/Components/AccountingMethod.md - docs/Models/Components/ActivitiesFilter.md - docs/Models/Components/ActivitiesSort.md - docs/Models/Components/ActivitiesSortBy.md @@ -110,6 +111,7 @@ generatedFiles: - docs/Models/Components/BankAccount2AccountType.md - docs/Models/Components/BankAccountType.md - docs/Models/Components/BankAccountsFilter.md + - docs/Models/Components/BankAccountsFilterAccountType.md - docs/Models/Components/BankAccountsFilterStatus.md - docs/Models/Components/BankAccountsSort.md - docs/Models/Components/BankFeedAccount.md @@ -723,6 +725,7 @@ generatedFiles: - docs/Models/Components/ProductStatus.md - docs/Models/Components/ProfitAndLoss.md - docs/Models/Components/ProfitAndLossFilter.md + - docs/Models/Components/ProfitAndLossFilterAccountingMethod.md - docs/Models/Components/ProfitAndLossIndicator.md - docs/Models/Components/ProfitAndLossType.md - docs/Models/Components/Project.md @@ -1708,6 +1711,7 @@ generatedFiles: - src/ApideckUnifySdk/Models/Components/AccountingLocation.cs - src/ApideckUnifySdk/Models/Components/AccountingLocationInput.cs - src/ApideckUnifySdk/Models/Components/AccountingLocationsFilter.cs + - src/ApideckUnifySdk/Models/Components/AccountingMethod.cs - src/ApideckUnifySdk/Models/Components/ActivitiesFilter.cs - src/ApideckUnifySdk/Models/Components/ActivitiesSort.cs - src/ApideckUnifySdk/Models/Components/ActivitiesSortBy.cs @@ -1765,6 +1769,7 @@ generatedFiles: - src/ApideckUnifySdk/Models/Components/BankAccount2AccountType.cs - src/ApideckUnifySdk/Models/Components/BankAccountType.cs - src/ApideckUnifySdk/Models/Components/BankAccountsFilter.cs + - src/ApideckUnifySdk/Models/Components/BankAccountsFilterAccountType.cs - src/ApideckUnifySdk/Models/Components/BankAccountsFilterStatus.cs - src/ApideckUnifySdk/Models/Components/BankAccountsSort.cs - src/ApideckUnifySdk/Models/Components/BankFeedAccount.cs @@ -2378,6 +2383,7 @@ generatedFiles: - src/ApideckUnifySdk/Models/Components/ProductStatus.cs - src/ApideckUnifySdk/Models/Components/ProfitAndLoss.cs - src/ApideckUnifySdk/Models/Components/ProfitAndLossFilter.cs + - src/ApideckUnifySdk/Models/Components/ProfitAndLossFilterAccountingMethod.cs - src/ApideckUnifySdk/Models/Components/ProfitAndLossIndicator.cs - src/ApideckUnifySdk/Models/Components/ProfitAndLossType.cs - src/ApideckUnifySdk/Models/Components/Project.cs @@ -5723,7 +5729,7 @@ examples: parameters: query: pass_through: {"search": "San Francisco"} - filter: {"start_date": "2021-01-01", "end_date": "2021-12-31", "period_count": 3, "period_type": "month", "location_id": "123"} + filter: {"start_date": "2021-01-01", "end_date": "2021-12-31", "period_count": 3, "period_type": "month", "location_id": "123", "accounting_method": "accrual"} raw: false header: x-apideck-consumer-id: "test-consumer" @@ -5775,7 +5781,7 @@ examples: parameters: query: raw: false - filter: {"customer_id": "123abc", "start_date": "2021-01-01", "end_date": "2021-12-31", "location_id": "123"} + filter: {"customer_id": "123abc", "start_date": "2021-01-01", "end_date": "2021-12-31", "location_id": "123", "accounting_method": "accrual"} pass_through: {"search": "San Francisco"} fields: "id,updated_at" header: @@ -18421,7 +18427,7 @@ examples: query: raw: false limit: 20 - filter: {"name": "Main Operating", "status": "active"} + filter: {"name": "Main Operating", "account_type": "checking", "status": "active"} sort: {"by": "updated_at", "direction": "asc"} pass_through: {"search": "San Francisco"} fields: "id,updated_at" @@ -18484,7 +18490,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "bank-accounts", "operation": "one", "data": {"id": "12345", "display_id": "BA-001", "name": "Main Operating Account", "account_number": "123465", "account_type": "checking", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "bank_name": "Chase Bank", "currency": "USD", "balance": 25000, "available_balance": 24500, "overdraft_limit": 5000, "routing_number": "021000021", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "country": "US", "status": "active", "description": "Primary operating account for daily transactions", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "created_by": "12345", "updated_by": "12345"}} + application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "bank-accounts", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "BA-001", "name": "Main Operating Account", "account_number": "123465", "account_type": "checking", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "bank_name": "Chase Bank", "currency": "USD", "balance": 25000, "available_balance": 24500, "overdraft_limit": 5000, "routing_number": "021000021", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "country": "US", "status": "active", "description": "Primary operating account for daily transactions", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "created_by": "12345", "updated_by": "12345"}} "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"} "401": @@ -18688,4 +18694,4 @@ 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: "## Csharp SDK Changes Detected:\n* `Apideck.Accounting.TaxRates.List()`: `response.data.[].Country` **Added**\n* `Apideck.Accounting.TaxRates.Create()`: \n * `request.TaxRate.Country` **Added**\n* `Apideck.Accounting.TaxRates.Get()`: `response.data.Country` **Added**\n* `Apideck.Accounting.TaxRates.Update()`: \n * `request.TaxRate.Country` **Added**\n* `Apideck.Accounting.CompanyInfo.Get()`: `response.data.DefaultSalesTax.Country` **Added**\n" +releaseNotes: "## Csharp SDK Changes Detected:\n* `Apideck.Accounting.BalanceSheet.Get()`: \n * `request.Filter` **Changed**\n* `Apideck.Accounting.ProfitAndLoss.Get()`: \n * `request.Filter` **Changed**\n* `Apideck.Accounting.BankAccounts.List()`: \n * `request.Filter` **Changed**\n * `response.data.[].DownstreamId` **Added**\n* `Apideck.Accounting.BankAccounts.Get()`: `response.data.DownstreamId` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index c7df866f7..c1ce06b75 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -25,7 +25,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false csharp: - version: 0.19.12 + version: 0.19.13 additionalDependencies: [] author: Speakeasy baseErrorName: BaseException diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index ff8fbf69c..9ea1a7c2d 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.661.3 +speakeasyVersion: 1.662.0 sources: Apideck: sourceNamespace: apideck - sourceRevisionDigest: sha256:f06d45c8093c174ccfbc9c5d83c1360f03c87489b57b6161a53f7cb310d0b2cb - sourceBlobDigest: sha256:ded010a987213606a40ad118f6bd177d5c3b54461d6b10a7bc98d24c26237ce4 + sourceRevisionDigest: sha256:8df4386a1b824ab71ddd134b208d495f0ce615a5e8cc41cd90f95a179518cd41 + sourceBlobDigest: sha256:94ee8d694aa860e54a88ca1d2205746bc55a3742c00bf2424f54e1695fa361be tags: - latest - - speakeasy-sdk-regen-1764155628 - - 10.21.18 + - speakeasy-sdk-regen-1764199326 + - 10.21.19 targets: apideck: source: Apideck sourceNamespace: apideck - sourceRevisionDigest: sha256:f06d45c8093c174ccfbc9c5d83c1360f03c87489b57b6161a53f7cb310d0b2cb - sourceBlobDigest: sha256:ded010a987213606a40ad118f6bd177d5c3b54461d6b10a7bc98d24c26237ce4 + sourceRevisionDigest: sha256:8df4386a1b824ab71ddd134b208d495f0ce615a5e8cc41cd90f95a179518cd41 + sourceBlobDigest: sha256:94ee8d694aa860e54a88ca1d2205746bc55a3742c00bf2424f54e1695fa361be codeSamplesNamespace: apideck-csharp-code-samples - codeSamplesRevisionDigest: sha256:e7cfcc5b46bc38164d81430e1dbee30efd02bab4e702870f8008cbf311bc85a5 + codeSamplesRevisionDigest: sha256:3d10f41bb287a6163c1253105c6bb285e767d645e8883374ddbeed6b30745254 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 2e9a31634..de53cd54b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -598,4 +598,14 @@ Based on: ### Generated - [csharp v0.19.12] . ### Releases -- [NuGet v0.19.12] https://www.nuget.org/packages/ApideckUnifySdk/0.19.12 - . \ No newline at end of file +- [NuGet v0.19.12] https://www.nuget.org/packages/ApideckUnifySdk/0.19.12 - . + +## 2025-11-27 09:04:01 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.662.0 (2.763.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v0.19.13] . +### Releases +- [NuGet v0.19.13] https://www.nuget.org/packages/ApideckUnifySdk/0.19.13 - . \ No newline at end of file diff --git a/docs/Models/Components/AccountingBankAccount.md b/docs/Models/Components/AccountingBankAccount.md index 032d38657..cf4747876 100644 --- a/docs/Models/Components/AccountingBankAccount.md +++ b/docs/Models/Components/AccountingBankAccount.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | `Id` | *string* | :heavy_check_mark: | A unique identifier for an object. | 12345 | +| `DownstreamId` | *string* | :heavy_minus_sign: | The third-party API ID of original entity | 12345 | | `DisplayId` | *string* | :heavy_minus_sign: | Display ID for the bank account | BA-001 | | `Name` | *string* | :heavy_minus_sign: | The name of the bank account | Main Operating Account | | `AccountNumber` | *string* | :heavy_minus_sign: | The bank account number | 123465 | diff --git a/docs/Models/Components/AccountingMethod.md b/docs/Models/Components/AccountingMethod.md new file mode 100644 index 000000000..ecb3bad27 --- /dev/null +++ b/docs/Models/Components/AccountingMethod.md @@ -0,0 +1,11 @@ +# AccountingMethod + +The accounting method used for the report: cash or accrual. + + +## Values + +| Name | Value | +| --------- | --------- | +| `Cash` | cash | +| `Accrual` | accrual | \ No newline at end of file diff --git a/docs/Models/Components/BalanceSheetFilter.md b/docs/Models/Components/BalanceSheetFilter.md index 2ffa8d36a..1f07f38d9 100644 --- a/docs/Models/Components/BalanceSheetFilter.md +++ b/docs/Models/Components/BalanceSheetFilter.md @@ -9,4 +9,5 @@ | `EndDate` | *string* | :heavy_minus_sign: | The end date of the period to include in the resource. | 2021-12-31 | | `PeriodCount` | *long* | :heavy_minus_sign: | The number of periods to include in the resource. | 3 | | `PeriodType` | [PeriodType](../../Models/Components/PeriodType.md) | :heavy_minus_sign: | The type of period to include in the resource: month, quarter, year. | month | -| `LocationId` | *string* | :heavy_minus_sign: | The ID of the location to include in the resource. | 123 | \ No newline at end of file +| `LocationId` | *string* | :heavy_minus_sign: | The ID of the location to include in the resource. | 123 | +| `AccountingMethod` | [AccountingMethod](../../Models/Components/AccountingMethod.md) | :heavy_minus_sign: | The accounting method used for the report: cash or accrual. | accrual | \ No newline at end of file diff --git a/docs/Models/Components/BankAccountsFilter.md b/docs/Models/Components/BankAccountsFilter.md index de772bf52..18f359752 100644 --- a/docs/Models/Components/BankAccountsFilter.md +++ b/docs/Models/Components/BankAccountsFilter.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `Name` | *string* | :heavy_minus_sign: | Filter by bank account name | Main Operating | -| `Status` | [BankAccountsFilterStatus](../../Models/Components/BankAccountsFilterStatus.md) | :heavy_minus_sign: | Filter by account status | active | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `Name` | *string* | :heavy_minus_sign: | Filter by bank account name | Main Operating | +| `AccountType` | [BankAccountsFilterAccountType](../../Models/Components/BankAccountsFilterAccountType.md) | :heavy_minus_sign: | Filter by account type | checking | +| `Status` | [BankAccountsFilterStatus](../../Models/Components/BankAccountsFilterStatus.md) | :heavy_minus_sign: | Filter by account status | active | \ No newline at end of file diff --git a/docs/Models/Components/BankAccountsFilterAccountType.md b/docs/Models/Components/BankAccountsFilterAccountType.md new file mode 100644 index 000000000..af9607ab8 --- /dev/null +++ b/docs/Models/Components/BankAccountsFilterAccountType.md @@ -0,0 +1,16 @@ +# BankAccountsFilterAccountType + +Filter by account type + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `Checking` | checking | +| `Savings` | savings | +| `CreditCard` | credit_card | +| `MoneyMarket` | money_market | +| `LineOfCredit` | line_of_credit | +| `Other` | other | +| `Cash` | cash | \ No newline at end of file diff --git a/docs/Models/Components/CreditNoteStatus.md b/docs/Models/Components/CreditNoteStatus.md index e55527cd0..eb83981ff 100644 --- a/docs/Models/Components/CreditNoteStatus.md +++ b/docs/Models/Components/CreditNoteStatus.md @@ -5,10 +5,11 @@ Status of credit notes ## Values -| Name | Value | -| ------------ | ------------ | -| `Draft` | draft | -| `Authorised` | authorised | -| `Paid` | paid | -| `Voided` | voided | -| `Deleted` | deleted | \ No newline at end of file +| Name | Value | +| --------------- | --------------- | +| `Draft` | draft | +| `Authorised` | authorised | +| `PartiallyPaid` | partially_paid | +| `Paid` | paid | +| `Voided` | voided | +| `Deleted` | deleted | \ No newline at end of file diff --git a/docs/Models/Components/ProfitAndLossFilter.md b/docs/Models/Components/ProfitAndLossFilter.md index 06eb357df..e48100b32 100644 --- a/docs/Models/Components/ProfitAndLossFilter.md +++ b/docs/Models/Components/ProfitAndLossFilter.md @@ -3,9 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `CustomerId` | *string* | :heavy_minus_sign: | Filter by customer id | 123abc | -| `StartDate` | *string* | :heavy_minus_sign: | Filter by start date. If start date is given, end date is required. | 2021-01-01 | -| `EndDate` | *string* | :heavy_minus_sign: | Filter by end date. If end date is given, start date is required. | 2021-12-31 | -| `LocationId` | *string* | :heavy_minus_sign: | Filter by location id | 123 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `CustomerId` | *string* | :heavy_minus_sign: | Filter by customer id | 123abc | +| `StartDate` | *string* | :heavy_minus_sign: | Filter by start date. If start date is given, end date is required. | 2021-01-01 | +| `EndDate` | *string* | :heavy_minus_sign: | Filter by end date. If end date is given, start date is required. | 2021-12-31 | +| `LocationId` | *string* | :heavy_minus_sign: | Filter by location id | 123 | +| `AccountingMethod` | [ProfitAndLossFilterAccountingMethod](../../Models/Components/ProfitAndLossFilterAccountingMethod.md) | :heavy_minus_sign: | The accounting method used for the report: cash or accrual. | accrual | \ No newline at end of file diff --git a/docs/Models/Components/ProfitAndLossFilterAccountingMethod.md b/docs/Models/Components/ProfitAndLossFilterAccountingMethod.md new file mode 100644 index 000000000..5a0fe9770 --- /dev/null +++ b/docs/Models/Components/ProfitAndLossFilterAccountingMethod.md @@ -0,0 +1,11 @@ +# ProfitAndLossFilterAccountingMethod + +The accounting method used for the report: cash or accrual. + + +## Values + +| Name | Value | +| --------- | --------- | +| `Cash` | cash | +| `Accrual` | accrual | \ No newline at end of file diff --git a/docs/Models/Requests/AccountingBalanceSheetOneRequest.md b/docs/Models/Requests/AccountingBalanceSheetOneRequest.md index 62f3c009f..b68b21508 100644 --- a/docs/Models/Requests/AccountingBalanceSheetOneRequest.md +++ b/docs/Models/Requests/AccountingBalanceSheetOneRequest.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ConsumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `AppId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `ServiceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `PassThrough` | Dictionary | :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"
} | -| `Filter` | [BalanceSheetFilter](../../Models/Components/BalanceSheetFilter.md) | :heavy_minus_sign: | Apply filters | {
"start_date": "2021-01-01",
"end_date": "2021-12-31",
"period_count": 3,
"period_type": "month",
"location_id": "123"
} | -| `Raw` | *bool* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ConsumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `AppId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | +| `ServiceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | +| `PassThrough` | Dictionary | :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"
} | +| `Filter` | [BalanceSheetFilter](../../Models/Components/BalanceSheetFilter.md) | :heavy_minus_sign: | Apply filters | {
"start_date": "2021-01-01",
"end_date": "2021-12-31",
"period_count": 3,
"period_type": "month",
"location_id": "123",
"accounting_method": "accrual"
} | +| `Raw` | *bool* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/Models/Requests/AccountingProfitAndLossOneRequest.md b/docs/Models/Requests/AccountingProfitAndLossOneRequest.md index 8d64c310c..517e5180f 100644 --- a/docs/Models/Requests/AccountingProfitAndLossOneRequest.md +++ b/docs/Models/Requests/AccountingProfitAndLossOneRequest.md @@ -9,6 +9,6 @@ | `ConsumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `AppId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `ServiceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `Filter` | [ProfitAndLossFilter](../../Models/Components/ProfitAndLossFilter.md) | :heavy_minus_sign: | Apply filters | {
"customer_id": "123abc",
"start_date": "2021-01-01",
"end_date": "2021-12-31",
"location_id": "123"
} | +| `Filter` | [ProfitAndLossFilter](../../Models/Components/ProfitAndLossFilter.md) | :heavy_minus_sign: | Apply filters | {
"customer_id": "123abc",
"start_date": "2021-01-01",
"end_date": "2021-12-31",
"location_id": "123",
"accounting_method": "accrual"
} | | `PassThrough` | Dictionary | :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` | *string* | :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/bankaccounts/README.md b/docs/sdks/bankaccounts/README.md index 64b0e20fe..8fe3acd95 100644 --- a/docs/sdks/bankaccounts/README.md +++ b/docs/sdks/bankaccounts/README.md @@ -34,6 +34,7 @@ AccountingBankAccountsAllRequest req = new AccountingBankAccountsAllRequest() { ServiceId = "salesforce", Filter = new BankAccountsFilter() { Name = "Main Operating", + AccountType = BankAccountsFilterAccountType.Checking, Status = BankAccountsFilterStatus.Active, }, Sort = new BankAccountsSort() {}, diff --git a/src/ApideckUnifySdk/ApideckUnifySdk.csproj b/src/ApideckUnifySdk/ApideckUnifySdk.csproj index fe0fdc0c5..e6ab98abd 100644 --- a/src/ApideckUnifySdk/ApideckUnifySdk.csproj +++ b/src/ApideckUnifySdk/ApideckUnifySdk.csproj @@ -3,7 +3,7 @@ true ApideckUnifySdk - 0.19.12 + 0.19.13 net8.0 Speakeasy Copyright (c) Speakeasy 2025 diff --git a/src/ApideckUnifySdk/Models/Components/AccountingBankAccount.cs b/src/ApideckUnifySdk/Models/Components/AccountingBankAccount.cs index 6aa172a37..660c3b757 100644 --- a/src/ApideckUnifySdk/Models/Components/AccountingBankAccount.cs +++ b/src/ApideckUnifySdk/Models/Components/AccountingBankAccount.cs @@ -24,6 +24,12 @@ public class AccountingBankAccount [JsonProperty("id")] public string Id { get; set; } = default!; + /// + /// The third-party API ID of original entity + /// + [JsonProperty("downstream_id")] + public string? DownstreamId { get; set; } = null; + /// /// Display ID for the bank account /// diff --git a/src/ApideckUnifySdk/Models/Components/AccountingMethod.cs b/src/ApideckUnifySdk/Models/Components/AccountingMethod.cs new file mode 100644 index 000000000..d8683e2d3 --- /dev/null +++ b/src/ApideckUnifySdk/Models/Components/AccountingMethod.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace ApideckUnifySdk.Models.Components +{ + using ApideckUnifySdk.Utils; + using Newtonsoft.Json; + using System; + + /// + /// The accounting method used for the report: cash or accrual. + /// + public enum AccountingMethod + { + [JsonProperty("cash")] + Cash, + [JsonProperty("accrual")] + Accrual, + } + + public static class AccountingMethodExtension + { + public static string Value(this AccountingMethod value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static AccountingMethod ToEnum(this string value) + { + foreach(var field in typeof(AccountingMethod).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is AccountingMethod) + { + return (AccountingMethod)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum AccountingMethod"); + } + } + +} \ No newline at end of file diff --git a/src/ApideckUnifySdk/Models/Components/BalanceSheetFilter.cs b/src/ApideckUnifySdk/Models/Components/BalanceSheetFilter.cs index ff893594a..7b27890b1 100644 --- a/src/ApideckUnifySdk/Models/Components/BalanceSheetFilter.cs +++ b/src/ApideckUnifySdk/Models/Components/BalanceSheetFilter.cs @@ -46,5 +46,11 @@ public class BalanceSheetFilter /// [SpeakeasyMetadata("queryParam:name=location_id")] public string? LocationId { get; set; } + + /// + /// The accounting method used for the report: cash or accrual. + /// + [SpeakeasyMetadata("queryParam:name=accounting_method")] + public AccountingMethod? AccountingMethod { get; set; } } } \ No newline at end of file diff --git a/src/ApideckUnifySdk/Models/Components/BankAccountsFilter.cs b/src/ApideckUnifySdk/Models/Components/BankAccountsFilter.cs index f2ffed238..04ffedd71 100644 --- a/src/ApideckUnifySdk/Models/Components/BankAccountsFilter.cs +++ b/src/ApideckUnifySdk/Models/Components/BankAccountsFilter.cs @@ -21,6 +21,12 @@ public class BankAccountsFilter [SpeakeasyMetadata("queryParam:name=name")] public string? Name { get; set; } + /// + /// Filter by account type + /// + [SpeakeasyMetadata("queryParam:name=account_type")] + public BankAccountsFilterAccountType? AccountType { get; set; } + /// /// Filter by account status /// diff --git a/src/ApideckUnifySdk/Models/Components/BankAccountsFilterAccountType.cs b/src/ApideckUnifySdk/Models/Components/BankAccountsFilterAccountType.cs new file mode 100644 index 000000000..e12ed074e --- /dev/null +++ b/src/ApideckUnifySdk/Models/Components/BankAccountsFilterAccountType.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace ApideckUnifySdk.Models.Components +{ + using ApideckUnifySdk.Utils; + using Newtonsoft.Json; + using System; + + /// + /// Filter by account type + /// + public enum BankAccountsFilterAccountType + { + [JsonProperty("checking")] + Checking, + [JsonProperty("savings")] + Savings, + [JsonProperty("credit_card")] + CreditCard, + [JsonProperty("money_market")] + MoneyMarket, + [JsonProperty("line_of_credit")] + LineOfCredit, + [JsonProperty("other")] + Other, + [JsonProperty("cash")] + Cash, + } + + public static class BankAccountsFilterAccountTypeExtension + { + public static string Value(this BankAccountsFilterAccountType value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static BankAccountsFilterAccountType ToEnum(this string value) + { + foreach(var field in typeof(BankAccountsFilterAccountType).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is BankAccountsFilterAccountType) + { + return (BankAccountsFilterAccountType)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum BankAccountsFilterAccountType"); + } + } + +} \ No newline at end of file diff --git a/src/ApideckUnifySdk/Models/Components/CreditNoteStatus.cs b/src/ApideckUnifySdk/Models/Components/CreditNoteStatus.cs index c10b60b2b..476554c20 100644 --- a/src/ApideckUnifySdk/Models/Components/CreditNoteStatus.cs +++ b/src/ApideckUnifySdk/Models/Components/CreditNoteStatus.cs @@ -22,6 +22,8 @@ public enum CreditNoteStatus Draft, [JsonProperty("authorised")] Authorised, + [JsonProperty("partially_paid")] + PartiallyPaid, [JsonProperty("paid")] Paid, [JsonProperty("voided")] diff --git a/src/ApideckUnifySdk/Models/Components/ProfitAndLossFilter.cs b/src/ApideckUnifySdk/Models/Components/ProfitAndLossFilter.cs index 66997bed4..00a1c04b6 100644 --- a/src/ApideckUnifySdk/Models/Components/ProfitAndLossFilter.cs +++ b/src/ApideckUnifySdk/Models/Components/ProfitAndLossFilter.cs @@ -9,6 +9,7 @@ #nullable enable namespace ApideckUnifySdk.Models.Components { + using ApideckUnifySdk.Models.Components; using ApideckUnifySdk.Utils; public class ProfitAndLossFilter @@ -37,5 +38,11 @@ public class ProfitAndLossFilter /// [SpeakeasyMetadata("queryParam:name=location_id")] public string? LocationId { get; set; } + + /// + /// The accounting method used for the report: cash or accrual. + /// + [SpeakeasyMetadata("queryParam:name=accounting_method")] + public ProfitAndLossFilterAccountingMethod? AccountingMethod { get; set; } } } \ No newline at end of file diff --git a/src/ApideckUnifySdk/Models/Components/ProfitAndLossFilterAccountingMethod.cs b/src/ApideckUnifySdk/Models/Components/ProfitAndLossFilterAccountingMethod.cs new file mode 100644 index 000000000..d2fd38d47 --- /dev/null +++ b/src/ApideckUnifySdk/Models/Components/ProfitAndLossFilterAccountingMethod.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace ApideckUnifySdk.Models.Components +{ + using ApideckUnifySdk.Utils; + using Newtonsoft.Json; + using System; + + /// + /// The accounting method used for the report: cash or accrual. + /// + public enum ProfitAndLossFilterAccountingMethod + { + [JsonProperty("cash")] + Cash, + [JsonProperty("accrual")] + Accrual, + } + + public static class ProfitAndLossFilterAccountingMethodExtension + { + public static string Value(this ProfitAndLossFilterAccountingMethod value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static ProfitAndLossFilterAccountingMethod ToEnum(this string value) + { + foreach(var field in typeof(ProfitAndLossFilterAccountingMethod).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is ProfitAndLossFilterAccountingMethod) + { + return (ProfitAndLossFilterAccountingMethod)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum ProfitAndLossFilterAccountingMethod"); + } + } + +} \ No newline at end of file diff --git a/src/ApideckUnifySdk/SDKConfig.cs b/src/ApideckUnifySdk/SDKConfig.cs index 79cbc76e1..345cf3e83 100644 --- a/src/ApideckUnifySdk/SDKConfig.cs +++ b/src/ApideckUnifySdk/SDKConfig.cs @@ -46,7 +46,7 @@ public SDKConfig(ISpeakeasyHttpClient? client = null) ServerIndex = 0; ConsumerId = null; AppId = null; - UserAgent = "speakeasy-sdk/csharp 0.19.12 2.763.3 10.21.18 ApideckUnifySdk"; + UserAgent = "speakeasy-sdk/csharp 0.19.13 2.763.3 10.21.19 ApideckUnifySdk"; SecuritySource = null; Hooks = new SDKHooks(); RetryConfig = null; diff --git a/src/ApideckUnifySdk/Utils/Constants.cs b/src/ApideckUnifySdk/Utils/Constants.cs index 2e47c7714..58b999eca 100644 --- a/src/ApideckUnifySdk/Utils/Constants.cs +++ b/src/ApideckUnifySdk/Utils/Constants.cs @@ -22,7 +22,7 @@ public static class Constants /// /// The version of the SDK. /// - public const string SdkVersion = "0.19.12"; + public const string SdkVersion = "0.19.13"; /// /// The version of the SDK generator used to create this SDK. @@ -32,7 +32,7 @@ public static class Constants /// /// The version of the OpenAPI document used to generate this SDK. /// - public const string OpenApiDocVersion = "10.21.18"; + public const string OpenApiDocVersion = "10.21.19"; } } From 9698bc35d6dd330a4e5553c713476a8d25153b39 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 27 Nov 2025 09:08:32 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow