71 lines
2.4 KiB
C#
71 lines
2.4 KiB
C#
using Sarand.Net.Standard.Accounts.QuickBooks.App;
|
|
using Sarand.Net.Standard.Accounts.QuickBooks.Base;
|
|
using Sarand.Net.Standard.Base.Core;
|
|
using Sarand.Net.Standard.Base.Bus;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Xml.Linq;
|
|
|
|
namespace Sarand.Net.Standard.Accounts.QuickBooks.Online
|
|
{
|
|
//=======================================================================
|
|
internal class SaQuickBooksRequest_Online : SaErrorStateItem
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
internal class AuthorisationData
|
|
{
|
|
public String CompanyId { get; set; } = "";
|
|
public String AppToken { get; set; } = "";
|
|
public String AppTokenSecret { get; set; } = "";
|
|
public String DataSource { get; set; } = "";
|
|
public bool Success { get; set; } = false;
|
|
};
|
|
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
internal SaQuickBooksRequest_Online (Qbk.OnlineRequestType requestType = Qbk.OnlineRequestType.Unknown)
|
|
{
|
|
RequestType = requestType;
|
|
}
|
|
protected override void Dispose (bool disposing)
|
|
{
|
|
if (disposing)
|
|
{
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
public Qbk.OnlineRequestType RequestType { get; set; }
|
|
// Request parameters.
|
|
public bool Debug { get; set; } = false;
|
|
/// <summary>For error messages.</summary>
|
|
public String RequestTypeDesc { get; set; } = "request";
|
|
public int MinorVersion { get; set; } = 4;
|
|
public String EntityId { get; set; } = "";
|
|
public String DataQuery { get; set; } = "";
|
|
public String IntuitTid { get; set; } = "";
|
|
public String FileData { get; set; } = "";
|
|
// Response.
|
|
public bool ValidResponse { get; set; } = false;
|
|
public long HttpStatus { get; set; } = 0;
|
|
public String FileResponse { get; set; } = "";
|
|
public XDocument ResponseDoc { get; set; } = null;
|
|
// Fault response.
|
|
public String ResponseFaultType { get; set; } = "";
|
|
public String ResponseErrorCode { get; set; } = "";
|
|
public String ResponseErrorElement { get; set; } = "";
|
|
public String ResponseErrorMessage { get; set; } = "";
|
|
public String ResponseErrorDetail { get; set; } = "";
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|