Table of Contents

Class Expense

Namespace
Autodesk.ACC.CostManagement.Models
Assembly
Autodesk.ACC.CostManagement.dll
public class Expense : IAdditionalDataHolder, IParsable
Inheritance
Expense
Implements
IAdditionalDataHolder
IParsable
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

IDictionary<string, object>

Amount

Total amount of the sub expense items.

public string? Amount { get; }

Property Value

string

ApprovedAt

The date and time when the expense is approved.

public DateTimeOffset? ApprovedAt { get; }

Property Value

DateTimeOffset?

BudgetPaymentId

The ID of the Budget Pay App to which the expense belongs.

public string? BudgetPaymentId { get; set; }

Property Value

string

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

string

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

DateTimeOffset?

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

string

Description

The detail description of the expense.

public string? Description { get; set; }

Property Value

string

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

string

ExternalMessage

A description about the integration: success, failure or error message.

public string? ExternalMessage { get; set; }

Property Value

string

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

string

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

DateTimeOffset?

Id

Unique identifier of the expense.

public string? Id { get; }

Property Value

string

IntegrationState

Lock state used by ERP integration, default value is null.

public Expense_integrationState? IntegrationState { get; set; }

Property Value

Expense_integrationState?

IntegrationStateChangedAt

The date and time last locked this item.

public DateTimeOffset? IntegrationStateChangedAt { get; set; }

Property Value

DateTimeOffset?

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

string

IssuedAt

The date and time when the expense is issued.

public DateTimeOffset? IssuedAt { get; set; }

Property Value

DateTimeOffset?

LastSyncTime

The date and time when the item was last updated.

public DateTimeOffset? LastSyncTime { get; }

Property Value

DateTimeOffset?

MainContractId

The ID of the Main Contract to which the expense belongs.

public string? MainContractId { get; set; }

Property Value

string

Name

The name of the expense.

public string? Name { get; set; }

Property Value

string

Note

The note of the expense. Draftjs formatted rich text (https://draftjs.org/)

public string? Note { get; set; }

Property Value

string

Number

System-generated sequential number.

public string? Number { get; set; }

Property Value

string

PaidAt

The date and time when the expense is paid.

public DateTimeOffset? PaidAt { get; }

Property Value

DateTimeOffset?

PaymentDue

The payment due date of the expense.

public DateTimeOffset? PaymentDue { get; set; }

Property Value

DateTimeOffset?

PaymentReference

The check/cheque number or electronic transfer number.

public string? PaymentReference { get; set; }

Property Value

string

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

string

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

string

ReceivedAt

The date and time when the expense is received.

public DateTimeOffset? ReceivedAt { get; set; }

Property Value

DateTimeOffset?

ReferenceNumber

The reference number of the expense.

public string? ReferenceNumber { get; set; }

Property Value

string

Scope

The expense type of the expense. Possible values: 'full', 'partial'.

public Expense_scope? Scope { get; set; }

Property Value

Expense_scope?

Status

The status of the expense. Possible values: draft, pending, revise, rejected, approved, paid.

public Expense_status? Status { get; set; }

Property Value

Expense_status?

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

string

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

string

Term

The term of the expense. It is customizable by the project admin.

public string? Term { get; set; }

Property Value

string

Type

The type of the expense. It is customizable by the project admin.

public string? Type { get; set; }

Property Value

string

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

DateTimeOffset?

Methods

CreateFromDiscriminatorValue(IParseNode)

Creates a new instance of the appropriate class based on discriminator value

public static Expense CreateFromDiscriminatorValue(IParseNode parseNode)

Parameters

parseNode IParseNode

The parse node to use to read the discriminator value and create the object

Returns

Expense

A Expense

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 ISerializationWriter

Serialization writer to use to serialize this model