Search Results for

    Show / Hide Table of Contents

    Class TermOfPayment

    TermOfPayment

    Inheritance
    System.Object
    TermOfPayment
    Implements
    System.IEquatable<TermOfPayment>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.Datev.Swagger.Model
    Assembly: Simplic.Datev.IO.Swagger.dll
    Syntax
    [DataContract]
    public class TermOfPayment : IEquatable<TermOfPayment>, IValidatableObject

    Constructors

    | Improve this Doc View Source

    TermOfPayment()

    Initializes a new instance of the TermOfPayment class.

    Declaration
    protected TermOfPayment()
    | Improve this Doc View Source

    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 &quot;cash_discount1_percentage&quot;.

    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 Source

    Caption

    (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

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    CashDiscount2Percentage

    (Skonto-Prozent-Satz) Percentage rate of cash discount 2 if a cash discount is applied, have to be lower than &quot;cash_discount1_percentage&quot;

    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 &quot;cash_discount1_percentage&quot;

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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)

    | Improve this Doc View Source

    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 Source

    Equals(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

    | Improve this Doc View Source

    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
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    Hash code

    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    String presentation of the object

    Overrides
    System.Object.ToString()

    Explicit Interface Implementations

    | Improve this Doc View Source

    IValidatableObject.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

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx