Class ExpenseItem
- Namespace
- Autodesk.ACC.CostManagement.Models
- Assembly
- Autodesk.ACC.CostManagement.dll
public class ExpenseItem : IAdditionalDataHolder, IParsable
- Inheritance
-
ExpenseItem
- Implements
-
IAdditionalDataHolderIParsable
- 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
AggregateBy
The aggregate type to budget Pay.
public ExpenseItem_aggregateBy? AggregateBy { get; set; }
Property Value
Amount
The amount of the expense item.
public string? Amount { get; set; }
Property Value
BudgetId
The ID of the budget to which the expense item belongs.
public string? BudgetId { get; set; }
Property Value
ContractId
The ID of the contract to which the expense item belongs.
public string? ContractId { 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
Description
The detail description of the expense item.
public string? Description { get; set; }
Property Value
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
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
Id
Unique identifier of the expense item.
public string? Id { get; }
Property Value
LastSyncTime
The date and time when the item was last updated.
public DateTimeOffset? LastSyncTime { get; }
Property Value
Name
The name of the expense item.
public string? Name { get; set; }
Property Value
Note
The note of the expense item. Draftjs formatted rich text (https://draftjs.org/)
public string? Note { get; set; }
Property Value
Number
System-generated sequential number.
public string? Number { get; }
Property Value
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
Quantity
The quantity property
public double? Quantity { get; set; }
Property Value
RealizedGainOrLoss
amount * exchangeRate / originalExchangeRate - amount
public string? RealizedGainOrLoss { get; set; }
Property Value
Scope
The expense type of the expense item. Possible values: full
, partial
.
public ExpenseItem_scope? Scope { get; set; }
Property Value
Tax
The tex of the expense.
public double? Tax { get; set; }
Property Value
Unit
The unit of measures used in the expense item.
public string? Unit { get; set; }
Property Value
UnitPrice
The unit price of the expense item.
public string? UnitPrice { 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 ExpenseItem 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