Class VariousAddress
VariousAddress
Inheritance
Implements
Inherited Members
Namespace: Simplic.Datev.Swagger.Model
Assembly: Simplic.Datev.IO.Swagger.dll
Syntax
[DataContract]
public class VariousAddress : IEquatable<VariousAddress>, IValidatableObject
Constructors
| Improve this Doc View SourceVariousAddress(String, Nullable<Int32>, List<DatevAddress>, String, List<DatevBank>, List<DatevCommunication>, DatevCorrespondenceInformation, String, List<DatevIndividualField>, Nullable<VariousAddress.LegalEntityTypeEnum>, DatevLegalPerson, DatevNaturalPerson, DatevNotSpecifiedPerson, String, String)
Initializes a new instance of the VariousAddress class.
Declaration
public VariousAddress(string id = null, int? accountNumber = null, List<DatevAddress> addresses = null, string businessPartnerNumber = null, List<DatevBank> banks = null, List<DatevCommunication> communications = null, DatevCorrespondenceInformation correspondenceInformation = null, string correspondenceTitle = null, List<DatevIndividualField> individualFields = null, VariousAddress.LegalEntityTypeEnum? legalEntityType = VariousAddress.LegalEntityTypeEnum.Legalperson, DatevLegalPerson legalPerson = null, DatevNaturalPerson naturalPerson = null, DatevNotSpecifiedPerson notSpecifiedPerson = null, string number = null, string shortName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Technical ID of the various address, the ID must not be entered with POST. |
System.Nullable<System.Int32> | accountNumber | (Diverse-Kontonummer) Differing account number of the business partner shown at maximum length, 9 digits. The differing account has to be marked as differing account in the master data of debitors/creditors. |
System.Collections.Generic.List<DatevAddress> | addresses | (Adressen) Addresses. |
System.String | businessPartnerNumber | (Kunden- bzw. Lieferantennummer) Customer/supplier number. |
System.Collections.Generic.List<DatevBank> | banks | (Banken) Banks, required field for a bank account are "bank code/BIC" and "bank account number/IBAN". |
System.Collections.Generic.List<DatevCommunication> | communications | (Kommunikationen) Communications. |
DatevCorrespondenceInformation | correspondenceInformation | (Korrespondenz-Informationen) Correspondence information. |
System.String | correspondenceTitle | (Anrede) Title. |
System.Collections.Generic.List<DatevIndividualField> | individualFields | individualFields. |
System.Nullable<VariousAddress.LegalEntityTypeEnum> | legalEntityType | (Adressatentyp) Addressee type (not specified, natural person, legal person) (default to LegalEntityTypeEnum.Legalperson). |
DatevLegalPerson | legalPerson | (Adressatentyp Unternehmen/Vereinigung) Addressee type; legal person. |
DatevNaturalPerson | naturalPerson | (Adressatentyp natürliche Person) addressee type; natural person. |
DatevNotSpecifiedPerson | notSpecifiedPerson | (Adressatentyp keine Angabe) addressee type; not specified. |
System.String | number | (Nummer) Number of the various address. |
System.String | shortName | (Kurzbezeichung) Short name. |
Properties
| Improve this Doc View SourceAccountNumber
(Diverse-Kontonummer) Differing account number of the business partner shown at maximum length, 9 digits. The differing account has to be marked as differing account in the master data of debitors/creditors
Declaration
[DataMember(Name = "account_number", EmitDefaultValue = false)]
public int? AccountNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | (Diverse-Kontonummer) Differing account number of the business partner shown at maximum length, 9 digits. The differing account has to be marked as differing account in the master data of debitors/creditors |
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 |
Banks
(Banken) Banks, required field for a bank account are "bank code/BIC" and "bank account number/IBAN"
Declaration
[DataMember(Name = "banks", EmitDefaultValue = false)]
public List<DatevBank> Banks { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DatevBank> | (Banken) Banks, required field for a bank account are "bank code/BIC" and "bank account number/IBAN" |
BusinessPartnerNumber
(Kunden- bzw. Lieferantennummer) Customer/supplier number
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 |
Caption
(Beschreibung/Name) Description/name
Declaration
[DataMember(Name = "caption", EmitDefaultValue = false)]
public string Caption { get; }
Property Value
Type | Description |
---|---|
System.String | (Beschreibung/Name) Description/name |
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 |
CorrespondenceInformation
(Korrespondenz-Informationen) Correspondence information
Declaration
[DataMember(Name = "correspondence_information", EmitDefaultValue = false)]
public DatevCorrespondenceInformation CorrespondenceInformation { get; set; }
Property Value
Type | Description |
---|---|
DatevCorrespondenceInformation | (Korrespondenz-Informationen) Correspondence information |
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 letzte Änderung) Date of most recent modification
Declaration
[DataMember(Name = "date_last_modification", EmitDefaultValue = false)]
public DateTime? DateLastModification { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | (Datum letzte Änderung) Date of most recent modification |
Id
Technical ID of the various address, the ID must not be entered with POST
Declaration
[DataMember(Name = "id", EmitDefaultValue = false)]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | Technical ID of the various address, the ID must not be entered with POST |
IndividualFields
Gets or Sets IndividualFields
Declaration
[DataMember(Name = "individual_fields", EmitDefaultValue = false)]
public List<DatevIndividualField> IndividualFields { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DatevIndividualField> |
LegalEntityType
(Adressatentyp) Addressee type (not specified, natural person, legal person)
Declaration
[DataMember(Name = "legal_entity_type", EmitDefaultValue = false)]
public VariousAddress.LegalEntityTypeEnum? LegalEntityType { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<VariousAddress.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 |
Number
(Nummer) Number of the various address
Declaration
[DataMember(Name = "number", EmitDefaultValue = false)]
public string Number { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Nummer) Number of the various address |
ShortName
(Kurzbezeichung) Short name
Declaration
[DataMember(Name = "short_name", EmitDefaultValue = false)]
public string ShortName { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Kurzbezeichung) Short name |
Methods
| Improve this Doc View SourceEquals(VariousAddress)
Returns true if VariousAddress instances are equal
Declaration
public bool Equals(VariousAddress input)
Parameters
Type | Name | Description |
---|---|---|
VariousAddress | input | Instance of VariousAddress 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 |