Class CostCenter
CostCenter
Inheritance
Inherited Members
Namespace: Simplic.Datev.Swagger.Model
Assembly: Simplic.Datev.IO.Swagger.dll
Syntax
[DataContract]
public class CostCenter : IEquatable<CostCenter>, IValidatableObject
Constructors
| Improve this Doc View SourceCostCenter(String, List<DatevCostCenterProperty>, List<DatevCostRate>, Nullable<DateTime>, String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, String, String)
Initializes a new instance of the CostCenter class.
Declaration
public CostCenter(string id = null, List<DatevCostCenterProperty> properties = null, List<DatevCostRate> costRates = null, DateTime? creationDate = null, string email = null, string longName = null, string note = null, string shortName = null, DateTime? postableFrom = null, DateTime? postableTo = null, string referenceValue = null, string responsible = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | ID of the cost center(s)/unit(s), alphanumeric without special characters and umlauts, is a mandatory field with PUT and must be completed with the number of the cost center/unit. |
System.Collections.Generic.List<DatevCostCenterProperty> | properties | (Kostenstelleneigenschaften) Cost center properties. |
System.Collections.Generic.List<DatevCostRate> | costRates | (Kostensätze) Cost rates. |
System.Nullable<System.DateTime> | creationDate | (Angelegt am) Created on, not filled by PUT. |
System.String | (E-Mail-Adresse) E-mail address of the person responsible for the cost center. |
|
System.String | longName | (Langbezeichnung) Long name, longer values will be truncated when using PUT. |
System.String | note | (Notizfeld) Field for notes. |
System.String | shortName | (Kurzbezeichnung) Short name, longer values will be truncated when using PUT. |
System.Nullable<System.DateTime> | postableFrom | (Bebuchbar ab Monat) Postable from, month. |
System.Nullable<System.DateTime> | postableTo | (Bebuchbar bis Monat) Postable to, month. |
System.String | referenceValue | (Bezugsgröße) Reference value. |
System.String | responsible | (Verantwortlicher) Person responsible, longer values will be truncated when using PUT. |
Properties
| Improve this Doc View SourceCostRates
(Kostensätze) Cost rates
Declaration
[DataMember(Name = "cost_rates", EmitDefaultValue = false)]
public List<DatevCostRate> CostRates { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DatevCostRate> | (Kostensätze) Cost rates |
CreationDate
(Angelegt am) Created on, not filled by PUT
Declaration
[DataMember(Name = "creation_date", EmitDefaultValue = false)]
public DateTime? CreationDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | (Angelegt am) Created on, not filled by PUT |
DateLastModification
(Geändert am) Modified on, not filled by PUT
Declaration
[DataMember(Name = "date_last_modification", EmitDefaultValue = false)]
public DateTime? DateLastModification { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | (Geändert am) Modified on, not filled by PUT |
(E-Mail-Adresse) E-mail address of the person responsible for the cost center
Declaration
[DataMember(Name = "email", EmitDefaultValue = false)]
public string Email { get; set; }
Property Value
Type | Description |
---|---|
System.String | (E-Mail-Adresse) E-mail address of the person responsible for the cost center |
Id
ID of the cost center(s)/unit(s), alphanumeric without special characters and umlauts, is a mandatory field with PUT and must be completed with the number of the cost center/unit
Declaration
[DataMember(Name = "id", EmitDefaultValue = false)]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | ID of the cost center(s)/unit(s), alphanumeric without special characters and umlauts, is a mandatory field with PUT and must be completed with the number of the cost center/unit |
LongName
(Langbezeichnung) Long name, longer values will be truncated when using PUT
Declaration
[DataMember(Name = "long_name", EmitDefaultValue = false)]
public string LongName { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Langbezeichnung) Long name, longer values will be truncated when using PUT |
Note
(Notizfeld) Field for notes
Declaration
[DataMember(Name = "note", EmitDefaultValue = false)]
public string Note { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Notizfeld) Field for notes |
PostableFrom
(Bebuchbar ab Monat) Postable from, month
Declaration
[DataMember(Name = "postable_from", EmitDefaultValue = false)]
public DateTime? PostableFrom { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | (Bebuchbar ab Monat) Postable from, month |
PostableTo
(Bebuchbar bis Monat) Postable to, month
Declaration
[DataMember(Name = "postable_to", EmitDefaultValue = false)]
public DateTime? PostableTo { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | (Bebuchbar bis Monat) Postable to, month |
Properties
(Kostenstelleneigenschaften) Cost center properties
Declaration
[DataMember(Name = "properties", EmitDefaultValue = false)]
public List<DatevCostCenterProperty> Properties { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DatevCostCenterProperty> | (Kostenstelleneigenschaften) Cost center properties |
ReferenceValue
(Bezugsgröße) Reference value
Declaration
[DataMember(Name = "reference_value", EmitDefaultValue = false)]
public string ReferenceValue { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Bezugsgröße) Reference value |
Responsible
(Verantwortlicher) Person responsible, longer values will be truncated when using PUT
Declaration
[DataMember(Name = "responsible", EmitDefaultValue = false)]
public string Responsible { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Verantwortlicher) Person responsible, longer values will be truncated when using PUT |
ShortName
(Kurzbezeichnung) Short name, longer values will be truncated when using PUT
Declaration
[DataMember(Name = "short_name", EmitDefaultValue = false)]
public string ShortName { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Kurzbezeichnung) Short name, longer values will be truncated when using PUT |
Methods
| Improve this Doc View SourceEquals(CostCenter)
Returns true if CostCenter instances are equal
Declaration
public bool Equals(CostCenter input)
Parameters
Type | Name | Description |
---|---|---|
CostCenter | input | Instance of CostCenter 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 |