Table of Contents

Class Merchant

Namespace
arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants
Assembly
arolariu.Backend.Domain.Invoices.dll

The invoice merchant record class represents the merchant information from the invoice. The merchant information is extracted from the invoice image using the OCR service. This record is used to store the merchant information in the database.

public sealed class Merchant : NamedEntity<Guid>, IAuditable
Inheritance
Merchant
Implements
Inherited Members

Properties

Address

The merchant address.

[JsonPropertyOrder(4)]
public string Address { get; set; }

Property Value

string

Category

The merchant category.

[JsonPropertyOrder(3)]
public MerchantCategory Category { get; set; }

Property Value

MerchantCategory

ParentCompanyId

The merchant parent company.

[JsonPropertyOrder(6)]
public Guid ParentCompanyId { get; set; }

Property Value

Guid

PhoneNumber

The merchant phone number.

[JsonPropertyOrder(5)]
public string PhoneNumber { get; set; }

Property Value

string

ReferencedInvoices

The list of invoices that reference this merchant.

[JsonPropertyOrder(7)]
public ICollection<Guid> ReferencedInvoices { get; init; }

Property Value

ICollection<Guid>

id

The identity of the entity.

[JsonPropertyName("id")]
[JsonPropertyOrder(0)]
public override Guid id { get; init; }

Property Value

Guid