107 lines
2.2 KiB
C#
107 lines
2.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Sarand.Net.Standard.Accounts.QuickBooks.App
|
|
{
|
|
//=======================================================================
|
|
public static class Qbk
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// QuickBooks version.
|
|
public enum Version
|
|
{
|
|
Unknown = 0,
|
|
Local2008 = 2008
|
|
};
|
|
|
|
//-------------------------------------------------------------------
|
|
public enum ConnectionType
|
|
{
|
|
Unknown = 0,
|
|
/// <summary>Local QuickBooks</summary>
|
|
LocalQBD = 1,
|
|
/// <summary>RDS connection</summary>
|
|
RemoteQBD = 2,
|
|
/// <summary>SDK application launched QuickBooks in interactive mode</summary>
|
|
LocalQBDLaunchUI = 3,
|
|
/// <summary>Online edition</summary>
|
|
RemoteQBOE = 4,
|
|
};
|
|
|
|
//-------------------------------------------------------------------
|
|
// Jul2016 Online configuration.
|
|
public enum OnlineInstance
|
|
{
|
|
Unknown = 0,
|
|
Sandbox = 10,
|
|
Production = 20,
|
|
};
|
|
public enum OnlineProduct
|
|
{
|
|
Unknown = 0,
|
|
Accounts,
|
|
Payments,
|
|
};
|
|
|
|
//-------------------------------------------------------------------
|
|
// QBooks Online.
|
|
public enum OnlineRequestType
|
|
{
|
|
Unknown = 0,
|
|
Query,
|
|
CompanyInfo,
|
|
Vendor,
|
|
Customer,
|
|
Item,
|
|
Invoice,
|
|
};
|
|
|
|
//-------------------------------------------------------------------
|
|
// QBooks reference types.
|
|
public enum ReferenceDataType
|
|
{
|
|
Unknown = 0,
|
|
CustomerType = 10,
|
|
ShipMethod,
|
|
};
|
|
|
|
//-------------------------------------------------------------------
|
|
// QBooks item types.
|
|
public enum EntityType
|
|
{
|
|
Unknown = 0,
|
|
// Reference data types.
|
|
CustomerType = 100,
|
|
// Primary data types.
|
|
Company = 200,
|
|
Account,
|
|
Vendor,
|
|
Customer,
|
|
Item,
|
|
PurchaseOrder,
|
|
SalesOrder,
|
|
Invoice_Product,
|
|
Invoice_Service,
|
|
// Internal.
|
|
Invoice_Header,
|
|
Invoice_Line,
|
|
};
|
|
|
|
//-------------------------------------------------------------------
|
|
// Financial year.
|
|
public enum FinancialYear
|
|
{
|
|
Current,
|
|
Prior1,
|
|
Prior2,
|
|
Prior3,
|
|
Prior4,
|
|
Prior5
|
|
};
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|