Class CostAccountingRecord
CostAccountingRecord
Inheritance
Implements
Inherited Members
Namespace: Simplic.Datev.Swagger.Model
Assembly: Simplic.Datev.IO.Swagger.dll
Syntax
[DataContract]
public class CostAccountingRecord : IEquatable<CostAccountingRecord>, IValidatableObject
Constructors
| Improve this Doc View SourceCostAccountingRecord()
Initializes a new instance of the CostAccountingRecord class.
Declaration
protected CostAccountingRecord()
CostAccountingRecord(String, Nullable<Decimal>, Nullable<Int32>, String, Nullable<Int32>, String, Nullable<DateTime>, Nullable<CostAccountingRecord.DebitCreditIdentifierEnum>, String, String, Nullable<DateTime>, Nullable<Decimal>, String)
Initializes a new instance of the CostAccountingRecord class.
Declaration
public CostAccountingRecord(string id = null, decimal? amount = null, int? accountNumber = null, string alternativeCostCenter = null, int? contraAccountNumber = null, string costCenter = null, DateTime? date = null, CostAccountingRecord.DebitCreditIdentifierEnum? debitCreditIdentifier = CostAccountingRecord.DebitCreditIdentifierEnum.S, string documentField1 = null, string documentField2 = null, DateTime? kostDate = null, decimal? kostQuantity = null, string text = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | (Satznummer) Block number. |
System.Nullable<System.Decimal> | amount | (Betrag) Amount, technically required field, either amount and/or cost amount is required for processing; commercial rounding when more than two decimal places. |
System.Nullable<System.Int32> | accountNumber | (Sach- oder Personen-Kontonummer) General ledger or subledger account number shown in maximum length, 8 digits for general ledger accounts, 9 digits for subledger accounts (technical length) (required). |
System.String | alternativeCostCenter | (Kostenstelle/-träger) Alternative cost center, alphanumeric without special characters and umlauts. |
System.Nullable<System.Int32> | contraAccountNumber | (Gegenkontonummer) Contra account number, general ledger or subledger account number shown in maximum length, 8 digits for general ledger accounts, 9 digits for subledger accounts (technical length), contra account is not relevant for cost. |
System.String | costCenter | (Kostenstelle/-träger) Cost center, alphanumeric without special characters and umlauts. |
System.Nullable<System.DateTime> | date | (Belegdatum) Document date (required). |
System.Nullable<CostAccountingRecord.DebitCreditIdentifierEnum> | debitCreditIdentifier | (Soll-/Haben-Kennzeichen) Debit/credit identifier of the amount/quantity, pertaining to the account (default to DebitCreditIdentifierEnum.S). |
System.String | documentField1 | (Beleg) Document field 1 (allowed characters: numbers 0 ... 9, uppercase letters A ... Z, lowercase letters a ... z, special characters $ & % * + - /). |
System.String | documentField2 | (Beleg 2) Document field 2 (allowed characters: numbers 0 ... 9, uppercase letters A ... Z, lowercase letters a ... z, special characters $ & % * + - /). |
System.Nullable<System.DateTime> | kostDate | (KOST-Datum) Cost date. |
System.Nullable<System.Decimal> | kostQuantity | (KOST-Menge) Cost quantity, the cost quantity field is used to record the value of a cost center's specific reference parameter, technically required field, either amount and/or cost amount is required for processing; commercial rounding when more than four decimal places. |
System.String | text | (Textfeld) Text box, longer values will be truncated when using POST. |
Properties
| Improve this Doc View SourceAccountNumber
(Sach- oder Personen-Kontonummer) General ledger or subledger account number shown in maximum length, 8 digits for general ledger accounts, 9 digits for subledger accounts (technical length)
Declaration
[DataMember(Name = "account_number", EmitDefaultValue = false)]
public int? AccountNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | (Sach- oder Personen-Kontonummer) General ledger or subledger account number shown in maximum length, 8 digits for general ledger accounts, 9 digits for subledger accounts (technical length) |
AlternativeCostCenter
(Kostenstelle/-träger) Alternative cost center, alphanumeric without special characters and umlauts
Declaration
[DataMember(Name = "alternative_cost_center", EmitDefaultValue = false)]
public string AlternativeCostCenter { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Kostenstelle/-träger) Alternative cost center, alphanumeric without special characters and umlauts |
Amount
(Betrag) Amount, technically required field, either amount and/or cost amount is required for processing; commercial rounding when more than two decimal places
Declaration
[DataMember(Name = "amount", EmitDefaultValue = false)]
public decimal? Amount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> | (Betrag) Amount, technically required field, either amount and/or cost amount is required for processing; commercial rounding when more than two decimal places |
ContraAccountNumber
(Gegenkontonummer) Contra account number, general ledger or subledger account number shown in maximum length, 8 digits for general ledger accounts, 9 digits for subledger accounts (technical length), contra account is not relevant for cost
Declaration
[DataMember(Name = "contra_account_number", EmitDefaultValue = false)]
public int? ContraAccountNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | (Gegenkontonummer) Contra account number, general ledger or subledger account number shown in maximum length, 8 digits for general ledger accounts, 9 digits for subledger accounts (technical length), contra account is not relevant for cost |
CostCenter
(Kostenstelle/-träger) Cost center, alphanumeric without special characters and umlauts
Declaration
[DataMember(Name = "cost_center", EmitDefaultValue = false)]
public string CostCenter { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Kostenstelle/-träger) Cost center, alphanumeric without special characters and umlauts |
Date
(Belegdatum) Document date
Declaration
[DataMember(Name = "date", EmitDefaultValue = false)]
public DateTime? Date { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | (Belegdatum) Document date |
DebitCreditIdentifier
(Soll-/Haben-Kennzeichen) Debit/credit identifier of the amount/quantity, pertaining to the account
Declaration
[DataMember(Name = "debit_credit_identifier", EmitDefaultValue = false)]
public CostAccountingRecord.DebitCreditIdentifierEnum? DebitCreditIdentifier { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<CostAccountingRecord.DebitCreditIdentifierEnum> | (Soll-/Haben-Kennzeichen) Debit/credit identifier of the amount/quantity, pertaining to the account |
DocumentField1
(Beleg) Document field 1 (allowed characters: numbers 0 ... 9, uppercase letters A ... Z, lowercase letters a ... z, special characters $ & % * + - /)
Declaration
[DataMember(Name = "document_field1", EmitDefaultValue = false)]
public string DocumentField1 { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Beleg) Document field 1 (allowed characters: numbers 0 ... 9, uppercase letters A ... Z, lowercase letters a ... z, special characters $ & % * + - /) |
DocumentField2
(Beleg 2) Document field 2 (allowed characters: numbers 0 ... 9, uppercase letters A ... Z, lowercase letters a ... z, special characters $ & % * + - /)
Declaration
[DataMember(Name = "document_field2", EmitDefaultValue = false)]
public string DocumentField2 { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Beleg 2) Document field 2 (allowed characters: numbers 0 ... 9, uppercase letters A ... Z, lowercase letters a ... z, special characters $ & % * + - /) |
Id
(Satznummer) Block number
Declaration
[DataMember(Name = "id", EmitDefaultValue = false)]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Satznummer) Block number |
KostDate
(KOST-Datum) Cost date
Declaration
[DataMember(Name = "kost_date", EmitDefaultValue = false)]
public DateTime? KostDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | (KOST-Datum) Cost date |
KostQuantity
(KOST-Menge) Cost quantity, the cost quantity field is used to record the value of a cost center's specific reference parameter, technically required field, either amount and/or cost amount is required for processing; commercial rounding when more than four decimal places
Declaration
[DataMember(Name = "kost_quantity", EmitDefaultValue = false)]
public decimal? KostQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> | (KOST-Menge) Cost quantity, the cost quantity field is used to record the value of a cost center's specific reference parameter, technically required field, either amount and/or cost amount is required for processing; commercial rounding when more than four decimal places |
Text
(Textfeld) Text box, longer values will be truncated when using POST
Declaration
[DataMember(Name = "text", EmitDefaultValue = false)]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Textfeld) Text box, longer values will be truncated when using POST |
Methods
| Improve this Doc View SourceEquals(CostAccountingRecord)
Returns true if CostAccountingRecord instances are equal
Declaration
public bool Equals(CostAccountingRecord input)
Parameters
Type | Name | Description |
---|---|---|
CostAccountingRecord | input | Instance of CostAccountingRecord to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValidatableObject.Validate(ValidationContext)
To validate all properties of the instance
Declaration
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.DataAnnotations.ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> | Validation Result |