Table of Contents

Class MerchantOrchestrationService

Namespace
arolariu.Backend.Domain.Invoices.Services.Orchestration.MerchantService
Assembly
arolariu.Backend.Domain.Invoices.dll

This class represents the merchant orchestration service.

public class MerchantOrchestrationService : IMerchantOrchestrationService
Inheritance
MerchantOrchestrationService
Implements
Inherited Members

Constructors

MerchantOrchestrationService(IMerchantStorageFoundationService, ILoggerFactory)

Public constructor.

public MerchantOrchestrationService(IMerchantStorageFoundationService merchantStorage, ILoggerFactory loggerFactory)

Parameters

merchantStorage IMerchantStorageFoundationService
loggerFactory ILoggerFactory

Fields

logger

private readonly ILogger<IMerchantOrchestrationService> logger

Field Value

ILogger<IMerchantOrchestrationService>

merchantStorage

private readonly IMerchantStorageFoundationService merchantStorage

Field Value

IMerchantStorageFoundationService

Methods

CreateAndLogDependencyException(Exception)

private MerchantOrchestrationServiceDependencyException CreateAndLogDependencyException(Exception exception)

Parameters

exception Exception

Returns

MerchantOrchestrationServiceDependencyException

CreateAndLogDependencyValidationException(Exception)

private MerchantOrchestrationServiceDependencyValidationException CreateAndLogDependencyValidationException(Exception exception)

Parameters

exception Exception

Returns

MerchantOrchestrationServiceDependencyValidationException

CreateAndLogServiceException(Exception)

private MerchantOrchestrationServiceException CreateAndLogServiceException(Exception exception)

Parameters

exception Exception

Returns

MerchantOrchestrationServiceException

CreateAndLogValidationException(Exception)

private MerchantOrchestrationServiceValidationException CreateAndLogValidationException(Exception exception)

Parameters

exception Exception

Returns

MerchantOrchestrationServiceValidationException

CreateMerchantObject(Merchant)

Creates a merchant object.

public Task<Merchant> CreateMerchantObject(Merchant merchant)

Parameters

merchant Merchant

Returns

Task<Merchant>

DeleteMerchantObject(Guid)

Deletes a merchant object.

public Task DeleteMerchantObject(Guid identifier)

Parameters

identifier Guid

Returns

Task

DeleteMerchantObject(Guid, Guid)

Deletes a merchant object.

public Task DeleteMerchantObject(Guid identifier, Guid parentCompanyId)

Parameters

identifier Guid
parentCompanyId Guid

Returns

Task

ReadAllMerchantObjects()

Reads all merchant objects.

public Task<IEnumerable<Merchant>> ReadAllMerchantObjects()

Returns

Task<IEnumerable<Merchant>>

ReadAllMerchantObjects(Guid)

Reads all merchant objects.

public Task<IEnumerable<Merchant>> ReadAllMerchantObjects(Guid parentCompanyId)

Parameters

parentCompanyId Guid

Returns

Task<IEnumerable<Merchant>>

ReadMerchantObject(Guid)

Reads a merchant object.

public Task<Merchant> ReadMerchantObject(Guid identifier)

Parameters

identifier Guid

Returns

Task<Merchant>

ReadMerchantObject(Guid, Guid)

Reads a merchant object.

public Task<Merchant> ReadMerchantObject(Guid identifier, Guid parentCompanyId)

Parameters

identifier Guid
parentCompanyId Guid

Returns

Task<Merchant>

TryCatchAsync(CallbackFunctionForMerchant)

private Task<Merchant> TryCatchAsync(MerchantOrchestrationService.CallbackFunctionForMerchant callbackFunction)

Parameters

callbackFunction MerchantOrchestrationService.CallbackFunctionForMerchant

Returns

Task<Merchant>

TryCatchAsync(CallbackFunctionForMerchantList)

private Task<IEnumerable<Merchant>> TryCatchAsync(MerchantOrchestrationService.CallbackFunctionForMerchantList callbackFunction)

Parameters

callbackFunction MerchantOrchestrationService.CallbackFunctionForMerchantList

Returns

Task<IEnumerable<Merchant>>

TryCatchAsync(CallbackFunctionWithNoReturn)

private Task TryCatchAsync(MerchantOrchestrationService.CallbackFunctionWithNoReturn callbackFunction)

Parameters

callbackFunction MerchantOrchestrationService.CallbackFunctionWithNoReturn

Returns

Task

UpdateMerchantObject(Guid, Merchant)

Updates a merchant object.

public Task<Merchant> UpdateMerchantObject(Guid merchantIdentifier, Merchant updatedMerchant)

Parameters

merchantIdentifier Guid
updatedMerchant Merchant

Returns

Task<Merchant>

UpdateMerchantObject(Merchant, Merchant)

Updates a merchant object.

public Task<Merchant> UpdateMerchantObject(Merchant currentMerchant, Merchant updatedMerchant)

Parameters

currentMerchant Merchant
updatedMerchant Merchant

Returns

Task<Merchant>