Class Debitor
Debitor
Inheritance
Inherited Members
Namespace: Simplic.Datev.Swagger.Model
Assembly: Simplic.Datev.IO.Swagger.dll
Syntax
[DataContract]
public class Debitor : IEquatable<Debitor>, IValidatableObject
Constructors
| Improve this Doc View SourceDebitor(String, Nullable<Int32>, DatevDebitorAccountingInformation, String, String, String, String, String, String, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Debitor.LegalEntityTypeEnum>, String, String, String, DatevNaturalPerson, DatevLegalPerson, DatevNotSpecifiedPerson, List<DatevAddress>, List<DatevCommunication>, List<DatevBank>)
Initializes a new instance of the Debitor class.
Declaration
public Debitor(string id = null, int? accountNumber = null, DatevDebitorAccountingInformation accountingInformation = null, string addresseeId = null, string alternativeSearchName = null, string businessPartnerNumber = null, string businessPartnerRelationId = null, string complimentaryClose = null, string correspondenceTitle = null, string euVatIdCountryCode = null, string euVatIdNumber = null, bool? isBusinessPartnerActive = null, bool? isOrganizationBusinessPartner = null, Debitor.LegalEntityTypeEnum? legalEntityType = Debitor.LegalEntityTypeEnum.Legalperson, string salutation = null, string shortName = null, string thirdPartyNumber = null, DatevNaturalPerson naturalPerson = null, DatevLegalPerson legalPerson = null, DatevNotSpecifiedPerson notSpecifiedPerson = null, List<DatevAddress> addresses = null, List<DatevCommunication> communications = null, List<DatevBank> banks = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | ID of the business partner, is equal to the account number of the business partner shown at maximum length; 9 digits (technical length); the ID may not be entered with POST; for PUT, the ID is a mandatory field and must be filled with the account number of the business partner. |
System.Nullable<System.Int32> | accountNumber | (Kontonummer) Account number of the business partner shown at maximum length; 9 digits (technical length); for POST and PUT, the account_number may not be entered. |
DatevDebitorAccountingInformation | accountingInformation | Accounting-specific data. |
System.String | addresseeId | (Schlüssel/ID des Adressaten) Addressee ID, required when using PUT. |
System.String | alternativeSearchName | (Alternativer Suchname) Alternative search name. |
System.String | businessPartnerNumber | (Kunden- bzw. Lieferantennummer) Customer/supplier number, cannot be changed when using centralized business partners (see property business_partner_relation_id). |
System.String | businessPartnerRelationId | (Schlüssel/ID des Geschäftspartners) ID of the business partner (customer relation ID); with POST, the business_partner_relation_id can be assigned; with PUT, the business_partner_relation_id that has already been used for the business partner being updated must be used again. If business_partner_relation_id contains an empty GUID (00000000-0000-0000-0000-000000000000), it is a not centralized business partner.. |
System.String | complimentaryClose | (Brief Grußformel) Complimentary close of a letter. |
System.String | correspondenceTitle | (Anrede) Title. |
System.String | euVatIdCountryCode | (EU-Mitgliedstaat) EU member state, is a component of the VAT ID no., see Info Database, document 1080169. |
System.String | euVatIdNumber | (EU-Umsatzsteuernummer) EU VAT ID number, is a component of the VAT ID no., see Info Database, document 1080169. |
System.Nullable<System.Boolean> | isBusinessPartnerActive | (Geschäftspartner Aktiv-Kennzeichen) Active business partner identifier. |
System.Nullable<System.Boolean> | isOrganizationBusinessPartner | (Kanzlei-Kennzeichen) Indicator as to whether the business partner is an organization business partner. |
System.Nullable<Debitor.LegalEntityTypeEnum> | legalEntityType | (Adressatentyp) Addressee type (not specified, natural person, legal person) (default to LegalEntityTypeEnum.Legalperson). |
System.String | salutation | (Briefanrede) Letter salutation. |
System.String | shortName | (Kurzbezeichnung) Short name. |
System.String | thirdPartyNumber | (Nummer Fremdsystem) Number in third-party system. |
DatevNaturalPerson | naturalPerson | (Adressatentyp Natürliche Person) Addressee type natural person. |
DatevLegalPerson | legalPerson | (Adressatentyp Unternehmen/Vereinigung) Addressee type legal person. |
DatevNotSpecifiedPerson | notSpecifiedPerson | (Adressatentyp Keine Angabe) Addressee type not specified. |
System.Collections.Generic.List<DatevAddress> | addresses | (Adressen) Addresses. |
System.Collections.Generic.List<DatevCommunication> | communications | (Kommunikationen) Communications. |
System.Collections.Generic.List<DatevBank> | banks | banks. |
Properties
| Improve this Doc View SourceAccountingInformation
Accounting-specific data
Declaration
[DataMember(Name = "accounting_information", EmitDefaultValue = false)]
public DatevDebitorAccountingInformation AccountingInformation { get; set; }
Property Value
Type | Description |
---|---|
DatevDebitorAccountingInformation | Accounting-specific data |
AccountNumber
(Kontonummer) Account number of the business partner shown at maximum length; 9 digits (technical length); for POST and PUT, the account_number may not be entered
Declaration
[DataMember(Name = "account_number", EmitDefaultValue = false)]
public int? AccountNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | (Kontonummer) Account number of the business partner shown at maximum length; 9 digits (technical length); for POST and PUT, the account_number may not be entered |
AddresseeId
(Schlüssel/ID des Adressaten) Addressee ID, required when using PUT
Declaration
[DataMember(Name = "addressee_id", EmitDefaultValue = false)]
public string AddresseeId { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Schlüssel/ID des Adressaten) Addressee ID, required when using PUT |
Addresses
(Adressen) Addresses
Declaration
[DataMember(Name = "addresses", EmitDefaultValue = false)]
public List<DatevAddress> Addresses { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DatevAddress> | (Adressen) Addresses |
AlternativeSearchName
(Alternativer Suchname) Alternative search name
Declaration
[DataMember(Name = "alternative_search_name", EmitDefaultValue = false)]
public string AlternativeSearchName { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Alternativer Suchname) Alternative search name |
Banks
Gets or Sets Banks
Declaration
[DataMember(Name = "banks", EmitDefaultValue = false)]
public List<DatevBank> Banks { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DatevBank> |
BusinessPartnerNumber
(Kunden- bzw. Lieferantennummer) Customer/supplier number, cannot be changed when using centralized business partners (see property business_partner_relation_id)
Declaration
[DataMember(Name = "business_partner_number", EmitDefaultValue = false)]
public string BusinessPartnerNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Kunden- bzw. Lieferantennummer) Customer/supplier number, cannot be changed when using centralized business partners (see property business_partner_relation_id) |
BusinessPartnerRelationId
(Schlüssel/ID des Geschäftspartners) ID of the business partner (customer relation ID); with POST, the business_partner_relation_id can be assigned; with PUT, the business_partner_relation_id that has already been used for the business partner being updated must be used again. If business_partner_relation_id contains an empty GUID (00000000-0000-0000-0000-000000000000), it is a not centralized business partner.
Declaration
[DataMember(Name = "business_partner_relation_id", EmitDefaultValue = false)]
public string BusinessPartnerRelationId { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Schlüssel/ID des Geschäftspartners) ID of the business partner (customer relation ID); with POST, the business_partner_relation_id can be assigned; with PUT, the business_partner_relation_id that has already been used for the business partner being updated must be used again. If business_partner_relation_id contains an empty GUID (00000000-0000-0000-0000-000000000000), it is a not centralized business partner. |
Caption
(Kontobeschriftung) Account caption. This is a compound field, for example, of first name and surname.
Declaration
[DataMember(Name = "caption", EmitDefaultValue = false)]
public string Caption { get; }
Property Value
Type | Description |
---|---|
System.String | (Kontobeschriftung) Account caption. This is a compound field, for example, of first name and surname. |
Communications
(Kommunikationen) Communications
Declaration
[DataMember(Name = "communications", EmitDefaultValue = false)]
public List<DatevCommunication> Communications { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DatevCommunication> | (Kommunikationen) Communications |
ComplimentaryClose
(Brief Grußformel) Complimentary close of a letter
Declaration
[DataMember(Name = "complimentary_close", EmitDefaultValue = false)]
public string ComplimentaryClose { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Brief Grußformel) Complimentary close of a letter |
CorrespondenceTitle
(Anrede) Title
Declaration
[DataMember(Name = "correspondence_title", EmitDefaultValue = false)]
public string CorrespondenceTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Anrede) Title |
DateLastModification
(Datum der letzten Änderung) Date of last modification
Declaration
[DataMember(Name = "date_last_modification", EmitDefaultValue = false)]
public DateTime? DateLastModification { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | (Datum der letzten Änderung) Date of last modification |
EuVatIdCountryCode
(EU-Mitgliedstaat) EU member state, is a component of the VAT ID no., see Info Database, document 1080169
Declaration
[DataMember(Name = "eu_vat_id_country_code", EmitDefaultValue = false)]
public string EuVatIdCountryCode { get; set; }
Property Value
Type | Description |
---|---|
System.String | (EU-Mitgliedstaat) EU member state, is a component of the VAT ID no., see Info Database, document 1080169 |
EuVatIdNumber
(EU-Umsatzsteuernummer) EU VAT ID number, is a component of the VAT ID no., see Info Database, document 1080169
Declaration
[DataMember(Name = "eu_vat_id_number", EmitDefaultValue = false)]
public string EuVatIdNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String | (EU-Umsatzsteuernummer) EU VAT ID number, is a component of the VAT ID no., see Info Database, document 1080169 |
Id
ID of the business partner, is equal to the account number of the business partner shown at maximum length; 9 digits (technical length); the ID may not be entered with POST; for PUT, the ID is a mandatory field and must be filled with the account number of the business partner
Declaration
[DataMember(Name = "id", EmitDefaultValue = false)]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | ID of the business partner, is equal to the account number of the business partner shown at maximum length; 9 digits (technical length); the ID may not be entered with POST; for PUT, the ID is a mandatory field and must be filled with the account number of the business partner |
IsBusinessPartnerActive
(Geschäftspartner Aktiv-Kennzeichen) Active business partner identifier
Declaration
[DataMember(Name = "is_business_partner_active", EmitDefaultValue = false)]
public bool? IsBusinessPartnerActive { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | (Geschäftspartner Aktiv-Kennzeichen) Active business partner identifier |
IsOrganizationBusinessPartner
(Kanzlei-Kennzeichen) Indicator as to whether the business partner is an organization business partner
Declaration
[DataMember(Name = "is_organization_business_partner", EmitDefaultValue = false)]
public bool? IsOrganizationBusinessPartner { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | (Kanzlei-Kennzeichen) Indicator as to whether the business partner is an organization business partner |
LegalEntityType
(Adressatentyp) Addressee type (not specified, natural person, legal person)
Declaration
[DataMember(Name = "legal_entity_type", EmitDefaultValue = false)]
public Debitor.LegalEntityTypeEnum? LegalEntityType { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Debitor.LegalEntityTypeEnum> | (Adressatentyp) Addressee type (not specified, natural person, legal person) |
LegalPerson
(Adressatentyp Unternehmen/Vereinigung) Addressee type legal person
Declaration
[DataMember(Name = "legal_person", EmitDefaultValue = false)]
public DatevLegalPerson LegalPerson { get; set; }
Property Value
Type | Description |
---|---|
DatevLegalPerson | (Adressatentyp Unternehmen/Vereinigung) Addressee type legal person |
NaturalPerson
(Adressatentyp Natürliche Person) Addressee type natural person
Declaration
[DataMember(Name = "natural_person", EmitDefaultValue = false)]
public DatevNaturalPerson NaturalPerson { get; set; }
Property Value
Type | Description |
---|---|
DatevNaturalPerson | (Adressatentyp Natürliche Person) Addressee type natural person |
NotSpecifiedPerson
(Adressatentyp Keine Angabe) Addressee type not specified
Declaration
[DataMember(Name = "not_specified_person", EmitDefaultValue = false)]
public DatevNotSpecifiedPerson NotSpecifiedPerson { get; set; }
Property Value
Type | Description |
---|---|
DatevNotSpecifiedPerson | (Adressatentyp Keine Angabe) Addressee type not specified |
Salutation
(Briefanrede) Letter salutation
Declaration
[DataMember(Name = "salutation", EmitDefaultValue = false)]
public string Salutation { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Briefanrede) Letter salutation |
ShortName
(Kurzbezeichnung) Short name
Declaration
[DataMember(Name = "short_name", EmitDefaultValue = false)]
public string ShortName { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Kurzbezeichnung) Short name |
ThirdPartyNumber
(Nummer Fremdsystem) Number in third-party system
Declaration
[DataMember(Name = "third_party_number", EmitDefaultValue = false)]
public string ThirdPartyNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Nummer Fremdsystem) Number in third-party system |
Methods
| Improve this Doc View SourceEquals(Debitor)
Returns true if Debitor instances are equal
Declaration
public bool Equals(Debitor input)
Parameters
Type | Name | Description |
---|---|---|
Debitor | input | Instance of Debitor 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 |