Table of Contents

Class ExpenseItem

Namespace
Autodesk.ACC.CostManagement.Models
Assembly
Autodesk.ACC.CostManagement.dll
public class ExpenseItem : IAdditionalDataHolder, IParsable
Inheritance
ExpenseItem
Implements
IAdditionalDataHolder
IParsable
Inherited Members

Constructors

ExpenseItem()

Instantiates a new ExpenseItem and sets the default values.

public ExpenseItem()

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>

AggregateBy

The aggregate type to budget Pay.

public ExpenseItem_aggregateBy? AggregateBy { get; set; }

Property Value

ExpenseItem_aggregateBy?

Amount

The amount of the expense item.

public string? Amount { get; set; }

Property Value

string

BudgetId

The ID of the budget to which the expense item belongs.

public string? BudgetId { get; set; }

Property Value

string

ContractId

The ID of the contract to which the expense item belongs.

public string? ContractId { 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?

Description

The detail description of the expense item.

public string? Description { get; set; }

Property Value

string

ExchangeRate

Exchange rate. Default value is 1, if multi-currency is not enabled, it will also be 1.

public string? ExchangeRate { 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

Id

Unique identifier of the expense item.

public string? Id { get; }

Property Value

string

LastSyncTime

The date and time when the item was last updated.

public DateTimeOffset? LastSyncTime { get; }

Property Value

DateTimeOffset?

Name

The name of the expense item.

public string? Name { get; set; }

Property Value

string

Note

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

public string? Note { get; set; }

Property Value

string

Number

System-generated sequential number.

public string? Number { get; }

Property Value

string

OriginalExchangeRate

Exchange rate get from contract exchange rate. Default value is 1, if multi-currency is not enabled, it will also be 1.

public string? OriginalExchangeRate { get; set; }

Property Value

string

Quantity

The quantity property

public double? Quantity { get; set; }

Property Value

double?

RealizedGainOrLoss

amount * exchangeRate / originalExchangeRate - amount

public string? RealizedGainOrLoss { get; set; }

Property Value

string

Scope

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

public ExpenseItem_scope? Scope { get; set; }

Property Value

ExpenseItem_scope?

Tax

The tex of the expense.

public double? Tax { get; set; }

Property Value

double?

Unit

The unit of measures used in the expense item.

public string? Unit { get; set; }

Property Value

string

UnitPrice

The unit price of the expense item.

public string? UnitPrice { 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 ExpenseItem CreateFromDiscriminatorValue(IParseNode parseNode)

Parameters

parseNode IParseNode

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

Returns

ExpenseItem

A ExpenseItem

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