Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc prealpha, Speakeay CLI 1.83.2 (#60)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
  • Loading branch information
github-actions[bot] and speakeasybot authored Sep 14, 2023
1 parent bac3411 commit 688f622
Show file tree
Hide file tree
Showing 60 changed files with 1,332 additions and 61 deletions.
2 changes: 1 addition & 1 deletion sync-for-expenses/CodatSyncExpenses/Accounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class AccountsSDK: IAccountsSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.6.0";
private const string _sdkVersion = "0.7.0";
private const string _sdkGenVersion = "2.109.3";
private const string _openapiDocVersion = "prealpha";
private string _serverUrl = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.Sync.Expenses</PackageId>
<Version>0.6.0</Version>
<Version>0.7.0</Version>
<Authors>Codat</Authors>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class CodatSyncExpensesSDK: ICodatSyncExpensesSDK
};

private const string _language = "csharp";
private const string _sdkVersion = "0.6.0";
private const string _sdkVersion = "0.7.0";
private const string _sdkGenVersion = "2.109.3";
private const string _openapiDocVersion = "prealpha";
private string _serverUrl = "";
Expand Down
2 changes: 1 addition & 1 deletion sync-for-expenses/CodatSyncExpenses/Companies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class CompaniesSDK: ICompaniesSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.6.0";
private const string _sdkVersion = "0.7.0";
private const string _sdkGenVersion = "2.109.3";
private const string _openapiDocVersion = "prealpha";
private string _serverUrl = "";
Expand Down
2 changes: 1 addition & 1 deletion sync-for-expenses/CodatSyncExpenses/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class ConfigurationSDK: IConfigurationSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.6.0";
private const string _sdkVersion = "0.7.0";
private const string _sdkGenVersion = "2.109.3";
private const string _openapiDocVersion = "prealpha";
private string _serverUrl = "";
Expand Down
2 changes: 1 addition & 1 deletion sync-for-expenses/CodatSyncExpenses/Connections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class ConnectionsSDK: IConnectionsSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.6.0";
private const string _sdkVersion = "0.7.0";
private const string _sdkGenVersion = "2.109.3";
private const string _openapiDocVersion = "prealpha";
private string _serverUrl = "";
Expand Down
2 changes: 1 addition & 1 deletion sync-for-expenses/CodatSyncExpenses/Customers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CustomersSDK: ICustomersSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.6.0";
private const string _sdkVersion = "0.7.0";
private const string _sdkGenVersion = "2.109.3";
private const string _openapiDocVersion = "prealpha";
private string _serverUrl = "";
Expand Down
2 changes: 1 addition & 1 deletion sync-for-expenses/CodatSyncExpenses/Expenses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class ExpensesSDK: IExpensesSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.6.0";
private const string _sdkVersion = "0.7.0";
private const string _sdkGenVersion = "2.109.3";
private const string _openapiDocVersion = "prealpha";
private string _serverUrl = "";
Expand Down
2 changes: 1 addition & 1 deletion sync-for-expenses/CodatSyncExpenses/ManageData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class ManageDataSDK: IManageDataSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.6.0";
private const string _sdkVersion = "0.7.0";
private const string _sdkGenVersion = "2.109.3";
private const string _openapiDocVersion = "prealpha";
private string _serverUrl = "";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace CodatSyncExpenses.Models.Shared
{
using Newtonsoft.Json;
using System;


/// <summary>
/// The type of the address
/// </summary>
public enum AccountingAddressType
{
[JsonProperty("Unknown")]
Unknown,
[JsonProperty("Billing")]
Billing,
[JsonProperty("Delivery")]
Delivery,
}

public static class AccountingAddressTypeExtension
{
public static string Value(this AccountingAddressType value)
{
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
}

public static AccountingAddressType ToEnum(this string value)
{
foreach(var field in typeof(AccountingAddressType).GetFields())
{
var attribute = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0] as JsonPropertyAttribute;
if (attribute != null && attribute.PropertyName == value)
{
var enumVal = field.GetValue(null);

if (enumVal is AccountingAddressType)
{
return (AccountingAddressType)enumVal;
}
}
}

throw new Exception($"Unknown value {value} for enum AccountingAddressType");
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,32 @@ public class CompanyConfiguration
[JsonProperty("bankAccount")]
public BankAccount BankAccount { get; set; } = default!;

/// <summary>
/// > View the coverage for customers in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=customers" target="_blank">Data coverage explorer</a>.
///
/// <remarks>
///
/// ## Overview
///
/// A customer is a person or organisation that buys goods or services. From the Customers endpoints, you can retrieve a [list of all the customers of a company](https://api.codat.io/swagger/index.html#/Customers/get_companies__companyId__data_customers).
///
/// Customers' data links to accounts receivable [invoices](https://docs.codat.io/accounting-api#/schemas/Invoice).
///
/// </remarks>
/// </summary>
[JsonProperty("customer")]
public Customer Customer { get; set; } = default!;

/// <summary>
/// > View the coverage for suppliers in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers" target="_blank">Data coverage explorer</a>.
///
/// <remarks>
///
/// ## Overview
///
/// From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/accounting-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/accounting-api#/schemas/Bill).
/// </remarks>
/// </summary>
[JsonProperty("supplier")]
public Supplier Supplier { get; set; } = default!;

Expand Down
75 changes: 75 additions & 0 deletions sync-for-expenses/CodatSyncExpenses/Models/Shared/Contact.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace CodatSyncExpenses.Models.Shared
{
using Newtonsoft.Json;
using System.Collections.Generic;


public class Contact
{
[JsonProperty("address")]
public Items? Address { get; set; }

/// <summary>
/// Email of a contact for a customer.
/// </summary>
[JsonProperty("email")]
public string? Email { get; set; }

/// <summary>
/// In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
///
/// <remarks>
///
/// ```
/// 2020-10-08T22:40:50Z
/// 2021-01-01T00:00:00
/// ```
///
///
///
/// When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
///
/// - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
/// - Unqualified local time: `2021-11-15T01:00:00`
/// - UTC time offsets: `2021-11-15T01:00:00-05:00`
///
/// > Time zones
/// >
/// > Not all dates from Codat will contain information about time zones.
/// > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
/// </remarks>
/// </summary>
[JsonProperty("modifiedDate")]
public string? ModifiedDate { get; set; }

/// <summary>
/// Name of a contact for a customer.
/// </summary>
[JsonProperty("name")]
public string? Name { get; set; }

/// <summary>
/// An array of Phone numbers.
/// </summary>
[JsonProperty("phone")]
public List<ContactPhone>? Phone { get; set; }

/// <summary>
/// Status of customer.
/// </summary>
[JsonProperty("status")]
public CustomerStatus Status { get; set; } = default!;

}

}
32 changes: 32 additions & 0 deletions sync-for-expenses/CodatSyncExpenses/Models/Shared/ContactPhone.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace CodatSyncExpenses.Models.Shared
{
using Newtonsoft.Json;


public class ContactPhone
{
/// <summary>
/// A phone number.
/// </summary>
[JsonProperty("number")]
public string Number { get; set; } = default!;

/// <summary>
/// The type of phone number
/// </summary>
[JsonProperty("type")]
public PhoneNumberType Type { get; set; } = default!;

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ public class CreateCustomerResponse
[JsonProperty("completedOnUtc")]
public string? CompletedOnUtc { get; set; }

/// <summary>
/// > View the coverage for customers in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=customers" target="_blank">Data coverage explorer</a>.
///
/// <remarks>
///
/// ## Overview
///
/// A customer is a person or organisation that buys goods or services. From the Customers endpoints, you can retrieve a [list of all the customers of a company](https://api.codat.io/swagger/index.html#/Customers/get_companies__companyId__data_customers).
///
/// Customers' data links to accounts receivable [invoices](https://docs.codat.io/accounting-api#/schemas/Invoice).
///
/// </remarks>
/// </summary>
[JsonProperty("data")]
public Customer? Data { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ public class CreateSupplierResponse
[JsonProperty("completedOnUtc")]
public string? CompletedOnUtc { get; set; }

/// <summary>
/// > View the coverage for suppliers in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers" target="_blank">Data coverage explorer</a>.
///
/// <remarks>
///
/// ## Overview
///
/// From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/accounting-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/accounting-api#/schemas/Bill).
/// </remarks>
/// </summary>
[JsonProperty("data")]
public Supplier? Data { get; set; }

Expand Down
Loading

0 comments on commit 688f622

Please sign in to comment.