Class CustomerId
Unikátny identifikátor kupujúceho slúžiaci pre identifikáciu vlastníka prijatého dokladu s dĺžkou max 50 znakov.
Povolené hodnoty sú veľké a malé písmená a číslice.
Namespace: NineDigiteKasa
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class CustomerId : IEquatable<CustomerId>, IComparable<CustomerId>, IDeepCloneable<CustomerId>, IDeepCloneable, ICloneable, IEnumerable<char>, IEnumerable
Examples
987654321
Constructors
CustomerId(CustomerId)
Declaration
public CustomerId(CustomerId customerId)
Parameters
CustomerId(string)
Declaration
public CustomerId(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Fields
MaxLength
Declaration
public const byte MaxLength = 50
Field Value
MinLength
Declaration
public const byte MinLength = 1
Field Value
Properties
Length
Declaration
public int Length { get; }
Property Value
Methods
CompareTo(CustomerId)
Declaration
public int CompareTo(CustomerId other)
Parameters
Returns
DeepClone()
Declaration
public CustomerId DeepClone()
Returns
Equals(CustomerId)
Declaration
public bool Equals(CustomerId other)
Parameters
Returns
Equals(CustomerId, CustomerId)
Declaration
public static bool Equals(CustomerId x, CustomerId y)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetEnumerator()
Declaration
public IEnumerator<char> GetEnumerator()
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
IsValid(string)
Declaration
public static bool IsValid(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(CustomerId, CustomerId)
Declaration
public static bool operator ==(CustomerId x, CustomerId y)
Parameters
Returns
implicit operator string(CustomerId)
Declaration
public static implicit operator string(CustomerId customerId)
Parameters
Returns
implicit operator CustomerId(string)
Declaration
public static implicit operator CustomerId(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
operator !=(CustomerId, CustomerId)
Declaration
public static bool operator !=(CustomerId x, CustomerId y)
Parameters
Returns
Implements
Extension Methods