Table of Contents

Class GatewayAggregate

Namespace
InSite.Domain.Payments
Assembly
Shift.Sdk.dll
public class GatewayAggregate : AggregateRoot
Inheritance
GatewayAggregate
Inherited Members
Extension Methods

Constructors

GatewayAggregate()

public GatewayAggregate()

Properties

Data

public Gateway Data { get; }

Property Value

Gateway

Methods

AbortPayment(Guid, ErrorResponse)

public void AbortPayment(Guid payment, ErrorResponse response)

Parameters

payment Guid
response ErrorResponse

ActivateMerchant(Guid, EnvironmentName, string)

public void ActivateMerchant(Guid organization, EnvironmentName environment, string token)

Parameters

organization Guid
environment EnvironmentName
token string

AddMerchant(Guid, string, string)

public void AddMerchant(Guid organization, string merchant, string description)

Parameters

organization Guid
merchant string
description string

CloseGateway()

public void CloseGateway()

CompletePayment(Guid, PaymentResponse)

public void CompletePayment(Guid payment, PaymentResponse response)

Parameters

payment Guid
response PaymentResponse

CreateState()

Every aggregate must override this method to create the object that holds its current state.

public override AggregateState CreateState()

Returns

AggregateState

DeactivateMerchant(Guid)

public void DeactivateMerchant(Guid organization)

Parameters

organization Guid

ImportPayment(Guid, Guid, Guid, Guid, string, PaymentStatus, DateTimeOffset?, DateTimeOffset?, decimal, string, string, string, string)

public void ImportPayment(Guid organization, Guid invoice, Guid payment, Guid createdBy, string orderNumber, PaymentStatus status, DateTimeOffset? started, DateTimeOffset? approved, decimal amount, string customerIP, string transactionId, string resultCode, string resultMessage)

Parameters

organization Guid
invoice Guid
payment Guid
createdBy Guid
orderNumber string
status PaymentStatus
started DateTimeOffset?
approved DateTimeOffset?
amount decimal
customerIP string
transactionId string
resultCode string
resultMessage string

ModifyPaymentCreatedBy(Guid, Guid)

public void ModifyPaymentCreatedBy(Guid payment, Guid createdBy)

Parameters

payment Guid
createdBy Guid

OpenGateway(Guid, GatewayType, string)

public void OpenGateway(Guid organization, GatewayType type, string name)

Parameters

organization Guid
type GatewayType
name string

RemoveMerchant(Guid)

public void RemoveMerchant(Guid organization)

Parameters

organization Guid

StartPayment(Guid, Guid, Guid, PaymentRequest)

public void StartPayment(Guid organization, Guid invoice, Guid payment, PaymentRequest request)

Parameters

organization Guid
invoice Guid
payment Guid
request PaymentRequest