Skip to content

Commit

Permalink
Merge pull request #36 from apideck-libraries/generator-update
Browse files Browse the repository at this point in the history
  • Loading branch information
brahimmouhamou authored Mar 14, 2024
2 parents 66be865 + 79e9648 commit a937922
Show file tree
Hide file tree
Showing 1,325 changed files with 1,941 additions and 1,541 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
release:
runs-on: ubuntu-latest
env:
PACKAGE_VERSION: 2.2.0
PACKAGE_VERSION: 2.2.1
steps:
- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apideck/net",
"version": "2.2.0",
"version": "2.2.1",
"description": "Apideck .NET SDK",
"keywords": [
"apideck",
Expand Down
3 changes: 3 additions & 0 deletions src/gen/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ docs/EmployeeManager.md
docs/EmployeePayroll.md
docs/EmployeeSchedules.md
docs/EmployeesFilter.md
docs/EmployeesOneFilter.md
docs/EmployeesSort.md
docs/EmploymentStatus.md
docs/Error.md
Expand Down Expand Up @@ -913,6 +914,7 @@ src/Apideck.Test/Model/EmployeePayrollTests.cs
src/Apideck.Test/Model/EmployeeSchedulesTests.cs
src/Apideck.Test/Model/EmployeeTests.cs
src/Apideck.Test/Model/EmployeesFilterTests.cs
src/Apideck.Test/Model/EmployeesOneFilterTests.cs
src/Apideck.Test/Model/EmployeesSortTests.cs
src/Apideck.Test/Model/EmploymentStatusTests.cs
src/Apideck.Test/Model/ErrorTests.cs
Expand Down Expand Up @@ -1576,6 +1578,7 @@ src/Apideck/Model/EmployeeManager.cs
src/Apideck/Model/EmployeePayroll.cs
src/Apideck/Model/EmployeeSchedules.cs
src/Apideck/Model/EmployeesFilter.cs
src/Apideck/Model/EmployeesOneFilter.cs
src/Apideck/Model/EmployeesSort.cs
src/Apideck/Model/EmploymentStatus.cs
src/Apideck/Model/Error.cs
Expand Down
10 changes: 5 additions & 5 deletions src/gen/Apideck.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{6E7E06BC-5FFF-4300-AABF-84E9F845E99B}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{39A768C4-564F-46B7-ADFB-98DF67AB8594}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck.Test", "src\Apideck.Test\Apideck.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6E7E06BC-5FFF-4300-AABF-84E9F845E99B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6E7E06BC-5FFF-4300-AABF-84E9F845E99B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6E7E06BC-5FFF-4300-AABF-84E9F845E99B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6E7E06BC-5FFF-4300-AABF-84E9F845E99B}.Release|Any CPU.Build.0 = Release|Any CPU
{39A768C4-564F-46B7-ADFB-98DF67AB8594}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{39A768C4-564F-46B7-ADFB-98DF67AB8594}.Debug|Any CPU.Build.0 = Debug|Any CPU
{39A768C4-564F-46B7-ADFB-98DF67AB8594}.Release|Any CPU.ActiveCfg = Release|Any CPU
{39A768C4-564F-46B7-ADFB-98DF67AB8594}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
16 changes: 8 additions & 8 deletions src/gen/docs/AccountingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -3505,7 +3505,7 @@ Name | Type | Description | Notes

<a name="ledgeraccountsadd"></a>
# **LedgerAccountsAdd**
> CreateLedgerAccountResponse LedgerAccountsAdd (Dictionary<string, Object> requestBody, bool? raw = null, string consumerId = null, string appId = null, string serviceId = null)
> CreateLedgerAccountResponse LedgerAccountsAdd (LedgerAccount ledgerAccount, bool? raw = null, string consumerId = null, string appId = null, string serviceId = null)
Create Ledger Account

Expand Down Expand Up @@ -3533,7 +3533,7 @@ namespace Example
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new AccountingApi(config);
var requestBody = new Dictionary<string, Object>(); // Dictionary<string, Object> |
var ledgerAccount = new LedgerAccount(); // LedgerAccount |
var raw = false; // bool? | Include raw response. Mostly used for debugging purposes (optional) (default to false)
var consumerId = "consumerId_example"; // string | ID of the consumer which you want to get or push data from (optional)
var appId = dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX; // string | The ID of your Unify application (optional)
Expand All @@ -3542,7 +3542,7 @@ namespace Example
try
{
// Create Ledger Account
CreateLedgerAccountResponse result = apiInstance.LedgerAccountsAdd(requestBody, raw, consumerId, appId, serviceId);
CreateLedgerAccountResponse result = apiInstance.LedgerAccountsAdd(ledgerAccount, raw, consumerId, appId, serviceId);
Debug.WriteLine(result);
}
catch (ApiException e)
Expand All @@ -3560,7 +3560,7 @@ namespace Example

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**requestBody** | [**Dictionary&lt;string, Object&gt;**](Object.md)| |
**ledgerAccount** | [**LedgerAccount**](LedgerAccount.md)| |
**raw** | **bool?**| Include raw response. Mostly used for debugging purposes | [optional] [default to false]
**consumerId** | **string**| ID of the consumer which you want to get or push data from | [optional]
**appId** | **string**| The ID of your Unify application | [optional]
Expand Down Expand Up @@ -3877,7 +3877,7 @@ Name | Type | Description | Notes

<a name="ledgeraccountsupdate"></a>
# **LedgerAccountsUpdate**
> UpdateLedgerAccountResponse LedgerAccountsUpdate (string id, Dictionary<string, Object> requestBody, string consumerId = null, string appId = null, string serviceId = null, bool? raw = null)
> UpdateLedgerAccountResponse LedgerAccountsUpdate (string id, LedgerAccount ledgerAccount, string consumerId = null, string appId = null, string serviceId = null, bool? raw = null)
Update Ledger Account

Expand Down Expand Up @@ -3906,7 +3906,7 @@ namespace Example
var apiInstance = new AccountingApi(config);
var id = "id_example"; // string | ID of the record you are acting upon.
var requestBody = new Dictionary<string, Object>(); // Dictionary<string, Object> |
var ledgerAccount = new LedgerAccount(); // LedgerAccount |
var consumerId = "consumerId_example"; // string | ID of the consumer which you want to get or push data from (optional)
var appId = dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX; // string | The ID of your Unify application (optional)
var serviceId = "serviceId_example"; // string | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
Expand All @@ -3915,7 +3915,7 @@ namespace Example
try
{
// Update Ledger Account
UpdateLedgerAccountResponse result = apiInstance.LedgerAccountsUpdate(id, requestBody, consumerId, appId, serviceId, raw);
UpdateLedgerAccountResponse result = apiInstance.LedgerAccountsUpdate(id, ledgerAccount, consumerId, appId, serviceId, raw);
Debug.WriteLine(result);
}
catch (ApiException e)
Expand All @@ -3934,7 +3934,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **string**| ID of the record you are acting upon. |
**requestBody** | [**Dictionary&lt;string, Object&gt;**](Object.md)| |
**ledgerAccount** | [**LedgerAccount**](LedgerAccount.md)| |
**consumerId** | **string**| ID of the consumer which you want to get or push data from | [optional]
**appId** | **string**| The ID of your Unify application | [optional]
**serviceId** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion src/gen/docs/ConnectionImportDataCredentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**RefreshToken** | **string** | The refresh token can be used to obtain a new access token. |
**RefreshToken** | **string** | The refresh token can be used to obtain a new access token. | [optional]
**AccessToken** | **string** | Access token | [optional]
**IssuedAt** | **DateTime?** | The datetime at which the token was issued. If omitted the token will be queued for refresh. | [optional]
**ExpiresIn** | **int?** | The number of seconds until the token expires. If omitted the token will be queued for refresh. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion src/gen/docs/ConsumerConnection.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Name | Type | Description | Notes
**Metadata** | **Dictionary&lt;string, Object&gt;** | Attach your own consumer specific metadata | [optional]
**CreatedAt** | **string** | | [optional]
**UpdatedAt** | **string** | | [optional]
**State** | **string** | | [optional]
**State** | **ConnectionState** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

3 changes: 3 additions & 0 deletions src/gen/docs/CreditNote.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ Name | Type | Description | Notes
**Allocations** | **List&lt;Object&gt;** | | [optional]
**Note** | **string** | Optional note to be associated with the credit note. | [optional]
**Terms** | **string** | Optional terms to be associated with the credit note. | [optional]
**BillingAddress** | [**Address**](Address.md) | | [optional]
**ShippingAddress** | [**Address**](Address.md) | | [optional]
**CustomMappings** | **Object** | When custom mappings are configured on the resource, the result is included here. | [optional] [readonly]
**CustomFields** | [**List&lt;CustomField&gt;**](CustomField.md) | | [optional]
**RowVersion** | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
**UpdatedBy** | **string** | The user who last updated the object. | [optional] [readonly]
**CreatedBy** | **string** | The user who created the object. | [optional] [readonly]
Expand Down
1 change: 1 addition & 0 deletions src/gen/docs/EmployeeJob.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**PaymentUnit** | **PaymentUnit** | | [optional]
**HiredAt** | **DateTime?** | The date on which the employee was hired by the organization | [optional]
**IsPrimary** | **bool?** | Indicates whether this the employee&#39;s primary job. | [optional]
**IsManager** | **bool?** | Indicates whether this the employee has a manager role. | [optional]
**Location** | [**Address**](Address.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
10 changes: 10 additions & 0 deletions src/gen/docs/EmployeesOneFilter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Apideck.Model.EmployeesOneFilter

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CompanyId** | **string** | Company ID to filter on | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

6 changes: 4 additions & 2 deletions src/gen/docs/HrisApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ Name | Type | Description | Notes

<a name="employeesone"></a>
# **EmployeesOne**
> GetEmployeeResponse EmployeesOne (string id, string consumerId = null, string appId = null, string serviceId = null, bool? raw = null, string fields = null)
> GetEmployeeResponse EmployeesOne (string id, string consumerId = null, string appId = null, string serviceId = null, bool? raw = null, string fields = null, EmployeesOneFilter filter = null)
Get Employee

Expand Down Expand Up @@ -1551,11 +1551,12 @@ namespace Example
var serviceId = "serviceId_example"; // string | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
var raw = false; // bool? | Include raw response. Mostly used for debugging purposes (optional) (default to false)
var fields = id,updated_at; // string | 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. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />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. (optional)
var filter = new EmployeesOneFilter(); // EmployeesOneFilter | Apply filters (optional)
try
{
// Get Employee
GetEmployeeResponse result = apiInstance.EmployeesOne(id, consumerId, appId, serviceId, raw, fields);
GetEmployeeResponse result = apiInstance.EmployeesOne(id, consumerId, appId, serviceId, raw, fields, filter);
Debug.WriteLine(result);
}
catch (ApiException e)
Expand All @@ -1579,6 +1580,7 @@ Name | Type | Description | Notes
**serviceId** | **string**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | [optional]
**raw** | **bool?**| Include raw response. Mostly used for debugging purposes | [optional] [default to false]
**fields** | **string**| The &#39;fields&#39; 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. &lt;br /&gt;&lt;br /&gt;Example: &#x60;fields&#x3D;name,email,addresses.city&#x60;&lt;br /&gt;&lt;br /&gt;In the example above, the response will only include the fields \&quot;name\&quot;, \&quot;email\&quot; and \&quot;addresses.city\&quot;. If any other fields are available, they will be excluded. | [optional]
**filter** | [**EmployeesOneFilter**](EmployeesOneFilter.md)| Apply filters | [optional]

### Return type

Expand Down
1 change: 1 addition & 0 deletions src/gen/docs/Invoice.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Name | Type | Description | Notes
**BankAccount** | [**BankAccount**](BankAccount.md) | | [optional]
**LedgerAccount** | [**LinkedLedgerAccount**](LinkedLedgerAccount.md) | | [optional]
**CustomMappings** | **Object** | When custom mappings are configured on the resource, the result is included here. | [optional] [readonly]
**CustomFields** | [**List&lt;CustomField&gt;**](CustomField.md) | | [optional]
**RowVersion** | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
**UpdatedBy** | **string** | The user who last updated the object. | [optional] [readonly]
**CreatedBy** | **string** | The user who created the object. | [optional] [readonly]
Expand Down
1 change: 1 addition & 0 deletions src/gen/docs/InvoiceLineItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Name | Type | Description | Notes
**Item** | [**LinkedInvoiceItem**](LinkedInvoiceItem.md) | | [optional]
**TaxRate** | [**LinkedTaxRate**](LinkedTaxRate.md) | | [optional]
**LedgerAccount** | [**LinkedLedgerAccount**](LinkedLedgerAccount.md) | | [optional]
**CustomFields** | [**List&lt;CustomField&gt;**](CustomField.md) | | [optional]
**RowVersion** | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
**UpdatedBy** | **string** | The user who last updated the object. | [optional] [readonly]
**CreatedBy** | **string** | The user who created the object. | [optional] [readonly]
Expand Down
2 changes: 2 additions & 0 deletions src/gen/docs/Payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Name | Type | Description | Notes
**Type** | **string** | Type of payment | [optional]
**Allocations** | [**List&lt;PaymentAllocations&gt;**](PaymentAllocations.md) | | [optional]
**Note** | **string** | Optional note to be associated with the payment. | [optional]
**Number** | **string** | Payment number. | [optional]
**CustomFields** | [**List&lt;CustomField&gt;**](CustomField.md) | | [optional]
**RowVersion** | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional]
**DisplayId** | **string** | Payment id to be displayed. | [optional]
**CustomMappings** | **Object** | When custom mappings are configured on the resource, the result is included here. | [optional] [readonly]
Expand Down
6 changes: 4 additions & 2 deletions src/gen/docs/VaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ Name | Type | Description | Notes

<a name="customfieldsall"></a>
# **CustomFieldsAll**
> GetCustomFieldsResponse CustomFieldsAll (string unifiedApi, string serviceId, string resource, string consumerId = null, string appId = null)
> GetCustomFieldsResponse CustomFieldsAll (string unifiedApi, string serviceId, string resource, string consumerId = null, string appId = null, string resourceId = null)
Get resource custom fields

Expand Down Expand Up @@ -1285,11 +1285,12 @@ namespace Example
var resource = leads; // string | Name of the resource (plural)
var consumerId = "consumerId_example"; // string | ID of the consumer which you want to get or push data from (optional)
var appId = dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX; // string | The ID of your Unify application (optional)
var resourceId = 1234; // string | This is the id of the resource you want to fetch when listing custom fields. For example, if you want to fetch custom fields for a specific contact, you would use the contact id. (optional)
try
{
// Get resource custom fields
GetCustomFieldsResponse result = apiInstance.CustomFieldsAll(unifiedApi, serviceId, resource, consumerId, appId);
GetCustomFieldsResponse result = apiInstance.CustomFieldsAll(unifiedApi, serviceId, resource, consumerId, appId, resourceId);
Debug.WriteLine(result);
}
catch (ApiException e)
Expand All @@ -1312,6 +1313,7 @@ Name | Type | Description | Notes
**resource** | **string**| Name of the resource (plural) |
**consumerId** | **string**| ID of the consumer which you want to get or push data from | [optional]
**appId** | **string**| The ID of your Unify application | [optional]
**resourceId** | **string**| This is the id of the resource you want to fetch when listing custom fields. For example, if you want to fetch custom fields for a specific contact, you would use the contact id. | [optional]

### Return type

Expand Down
10 changes: 5 additions & 5 deletions src/gen/src/Apideck.Test/Api/AccountingApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.3
* The version of the OpenAPI document: 10.3.6
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down Expand Up @@ -700,12 +700,12 @@ public void JournalEntriesUpdateTest()
public void LedgerAccountsAddTest()
{
// TODO uncomment below to test the method and replace null with proper value
//Dictionary<string, Object> requestBody = null;
//LedgerAccount ledgerAccount = null;
//bool? raw = null;
//string consumerId = null;
//string appId = null;
//string serviceId = null;
//var response = instance.LedgerAccountsAdd(requestBody, raw, consumerId, appId, serviceId);
//var response = instance.LedgerAccountsAdd(ledgerAccount, raw, consumerId, appId, serviceId);
//Assert.IsType<CreateLedgerAccountResponse>(response);
}

Expand Down Expand Up @@ -771,12 +771,12 @@ public void LedgerAccountsUpdateTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string id = null;
//Dictionary<string, Object> requestBody = null;
//LedgerAccount ledgerAccount = null;
//string consumerId = null;
//string appId = null;
//string serviceId = null;
//bool? raw = null;
//var response = instance.LedgerAccountsUpdate(id, requestBody, consumerId, appId, serviceId, raw);
//var response = instance.LedgerAccountsUpdate(id, ledgerAccount, consumerId, appId, serviceId, raw);
//Assert.IsType<UpdateLedgerAccountResponse>(response);
}

Expand Down
Loading

0 comments on commit a937922

Please sign in to comment.