Class Expense
- Namespace
- Autodesk.ACC.CostManagement.Models
- Assembly
- Autodesk.ACC.CostManagement.dll
public class Expense : IAdditionalDataHolder, IParsable
- Inheritance
-
Expense
- Implements
-
IAdditionalDataHolderIParsable
- Inherited Members
Constructors
Expense()
Instantiates a new Expense and sets the default values.
public Expense()
Properties
AdditionalData
Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary<string, object> AdditionalData { get; set; }
Property Value
Amount
Total amount of the sub expense items.
public string? Amount { get; }
Property Value
ApprovedAt
The date and time when the expense is approved.
public DateTimeOffset? ApprovedAt { get; }
Property Value
BudgetPaymentId
The ID of the Budget Pay App to which the expense belongs.
public string? BudgetPaymentId { get; set; }
Property Value
ChangedBy
The user who made the last change to the expense. This is the ID of a user managed by BIM 360 Admin.
public string? ChangedBy { get; }
Property Value
CreatedAt
The timestamp of the date and time the item was created, in the following format: YYYY-MM-DDThh:mm:ss.sz.
public DateTimeOffset? CreatedAt { get; }
Property Value
CreatorId
The user who created the expense. This is the ID of a user managed by BIM 360 Admin.
public string? CreatorId { get; }
Property Value
Description
The detail description of the expense.
public string? Description { get; set; }
Property Value
ExternalId
The ID of the item in its original external system. You can use this ID to track the source of truth or to look up the data in an integrated system.
public string? ExternalId { get; set; }
Property Value
ExternalMessage
A description about the integration: success, failure or error message.
public string? ExternalMessage { get; set; }
Property Value
ExternalSystem
The name of the external system. You can use this name to track the source of truth or to search in an integrated system.
public string? ExternalSystem { get; set; }
Property Value
ForecastDistributionAt
The date and time determines which distribution period this expense belongs to, after set status to Approved or Paid.
public DateTimeOffset? ForecastDistributionAt { get; }
Property Value
Id
Unique identifier of the expense.
public string? Id { get; }
Property Value
IntegrationState
Lock state used by ERP integration, default value is null
.
public Expense_integrationState? IntegrationState { get; set; }
Property Value
IntegrationStateChangedAt
The date and time last locked this item.
public DateTimeOffset? IntegrationStateChangedAt { get; set; }
Property Value
IntegrationStateChangedBy
The user who last locked this item. This is the ID of a user managed by BIM 360 Admin.
public string? IntegrationStateChangedBy { get; set; }
Property Value
IssuedAt
The date and time when the expense is issued.
public DateTimeOffset? IssuedAt { get; set; }
Property Value
LastSyncTime
The date and time when the item was last updated.
public DateTimeOffset? LastSyncTime { get; }
Property Value
MainContractId
The ID of the Main Contract to which the expense belongs.
public string? MainContractId { get; set; }
Property Value
Name
The name of the expense.
public string? Name { get; set; }
Property Value
Note
The note of the expense. Draftjs formatted rich text (https://draftjs.org/)
public string? Note { get; set; }
Property Value
Number
System-generated sequential number.
public string? Number { get; set; }
Property Value
PaidAt
The date and time when the expense is paid.
public DateTimeOffset? PaidAt { get; }
Property Value
PaymentDue
The payment due date of the expense.
public DateTimeOffset? PaymentDue { get; set; }
Property Value
PaymentReference
The check/cheque number or electronic transfer number.
public string? PaymentReference { get; set; }
Property Value
PaymentType
The payment type of the payment application. It could be something like Check/Cheque/Electronic Transfer and will be populated by ERP.
public string? PaymentType { get; set; }
Property Value
PurchasedBy
The user who purchased the expense. This is the ID of a user managed by BIM 360 Admin.
public string? PurchasedBy { get; set; }
Property Value
ReceivedAt
The date and time when the expense is received.
public DateTimeOffset? ReceivedAt { get; set; }
Property Value
ReferenceNumber
The reference number of the expense.
public string? ReferenceNumber { get; set; }
Property Value
Scope
The expense type of the expense. Possible values: 'full', 'partial'.
public Expense_scope? Scope { get; set; }
Property Value
Status
The status of the expense. Possible values: draft
, pending
, revise
, rejected
, approved
, paid
.
public Expense_status? Status { get; set; }
Property Value
SupplierId
The supplier for the expense. This is the ID of a company managed by BIM 360 Admin.
public string? SupplierId { get; set; }
Property Value
SupplierName
The supplier company name for the expense. Any company can be used regardless the ones added in Admin.
public string? SupplierName { get; set; }
Property Value
Term
The term of the expense. It is customizable by the project admin.
public string? Term { get; set; }
Property Value
Type
The type of the expense. It is customizable by the project admin.
public string? Type { get; set; }
Property Value
UpdatedAt
The timestamp of the date and time the item was updated, in the following format: YYYY-MM-DDThh:mm:ss.sz.
public DateTimeOffset? UpdatedAt { get; }
Property Value
Methods
CreateFromDiscriminatorValue(IParseNode)
Creates a new instance of the appropriate class based on discriminator value
public static Expense CreateFromDiscriminatorValue(IParseNode parseNode)
Parameters
parseNode
IParseNodeThe parse node to use to read the discriminator value and create the object
Returns
GetFieldDeserializers()
The deserialization information for the current model
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
Returns
- IDictionary<string, Action<IParseNode>>
A IDictionary<string, Action<IParseNode>>
Serialize(ISerializationWriter)
Serializes information the current object
public virtual void Serialize(ISerializationWriter writer)
Parameters
writer
ISerializationWriterSerialization writer to use to serialize this model