Class TermOfPayment
TermOfPayment
Inheritance
Implements
Inherited Members
Namespace: Simplic.Datev.Swagger.Model
Assembly: Simplic.Datev.IO.Swagger.dll
Syntax
[DataContract]
public class TermOfPayment : IEquatable<TermOfPayment>, IValidatableObject
Constructors
| Improve this Doc View SourceTermOfPayment()
Initializes a new instance of the TermOfPayment class.
Declaration
protected TermOfPayment()
TermOfPayment(String, String, Nullable<TermOfPayment.DueTypeEnum>, Nullable<Decimal>, Nullable<Decimal>, DatevDueInDays, DatevDueAsPeriod)
Initializes a new instance of the TermOfPayment class.
Declaration
public TermOfPayment(string id = null, string caption = null, TermOfPayment.DueTypeEnum? dueType = null, decimal? cashDiscount1Percentage = null, decimal? cashDiscount2Percentage = null, DatevDueInDays dueInDays = null, DatevDueAsPeriod dueAsPeriod = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | ID, corresponds to the number of the term of payment, 3-character functional ID. The ID may not be entered with POST; for PUT, the ID is a mandatory field. |
System.String | caption | (Bezeichnung) Description of the term of payment, maximum of 40 characters (required). |
System.Nullable<TermOfPayment.DueTypeEnum> | dueType | (Typ) Type of term of payment (due in days, due as period). |
System.Nullable<System.Decimal> | cashDiscount1Percentage | (Skonto-Prozent-Satz) Percentage rate of cash discount 1 if a cash discount is applied. |
System.Nullable<System.Decimal> | cashDiscount2Percentage | (Skonto-Prozent-Satz) Percentage rate of cash discount 2 if a cash discount is applied, have to be lower than "cash_discount1_percentage". |
DatevDueInDays | dueInDays | (Fälligkeit nach Tagen) Subordinate object due period in days. May only be used if due_type = due_in_days. |
DatevDueAsPeriod | dueAsPeriod | (Fälligkeit nach Datum) Subordinate object due period by date. May only be used if due_type = due_as_period. |
Properties
| Improve this Doc View SourceCaption
(Bezeichnung) Description of the term of payment, maximum of 40 characters
Declaration
[DataMember(Name = "caption", EmitDefaultValue = false)]
public string Caption { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Bezeichnung) Description of the term of payment, maximum of 40 characters |
CashDiscount1Percentage
(Skonto-Prozent-Satz) Percentage rate of cash discount 1 if a cash discount is applied
Declaration
[DataMember(Name = "cash_discount1_percentage", EmitDefaultValue = false)]
public decimal? CashDiscount1Percentage { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> | (Skonto-Prozent-Satz) Percentage rate of cash discount 1 if a cash discount is applied |
CashDiscount2Percentage
(Skonto-Prozent-Satz) Percentage rate of cash discount 2 if a cash discount is applied, have to be lower than "cash_discount1_percentage"
Declaration
[DataMember(Name = "cash_discount2_percentage", EmitDefaultValue = false)]
public decimal? CashDiscount2Percentage { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> | (Skonto-Prozent-Satz) Percentage rate of cash discount 2 if a cash discount is applied, have to be lower than "cash_discount1_percentage" |
DueAsPeriod
(Fälligkeit nach Datum) Subordinate object due period by date. May only be used if due_type = due_as_period
Declaration
[DataMember(Name = "due_as_period", EmitDefaultValue = false)]
public DatevDueAsPeriod DueAsPeriod { get; set; }
Property Value
Type | Description |
---|---|
DatevDueAsPeriod | (Fälligkeit nach Datum) Subordinate object due period by date. May only be used if due_type = due_as_period |
DueInDays
(Fälligkeit nach Tagen) Subordinate object due period in days. May only be used if due_type = due_in_days
Declaration
[DataMember(Name = "due_in_days", EmitDefaultValue = false)]
public DatevDueInDays DueInDays { get; set; }
Property Value
Type | Description |
---|---|
DatevDueInDays | (Fälligkeit nach Tagen) Subordinate object due period in days. May only be used if due_type = due_in_days |
DueType
(Typ) Type of term of payment (due in days, due as period)
Declaration
[DataMember(Name = "due_type", EmitDefaultValue = false)]
public TermOfPayment.DueTypeEnum? DueType { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TermOfPayment.DueTypeEnum> | (Typ) Type of term of payment (due in days, due as period) |
Id
ID, corresponds to the number of the term of payment, 3-character functional ID. The ID may not be entered with POST; for PUT, the ID is a mandatory field
Declaration
[DataMember(Name = "id", EmitDefaultValue = false)]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | ID, corresponds to the number of the term of payment, 3-character functional ID. The ID may not be entered with POST; for PUT, the ID is a mandatory field |
Methods
| Improve this Doc View SourceEquals(TermOfPayment)
Returns true if TermOfPayment instances are equal
Declaration
public bool Equals(TermOfPayment input)
Parameters
Type | Name | Description |
---|---|---|
TermOfPayment | input | Instance of TermOfPayment 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 |