Class GatewayAggregate
public class GatewayAggregate : AggregateRoot
- Inheritance
-
GatewayAggregate
- Inherited Members
- Extension Methods
Constructors
GatewayAggregate()
public GatewayAggregate()
Properties
Data
public Gateway Data { get; }
Property Value
Methods
AbortPayment(Guid, ErrorResponse)
public void AbortPayment(Guid payment, ErrorResponse response)
Parameters
paymentGuidresponseErrorResponse
ActivateMerchant(Guid, EnvironmentName, string)
public void ActivateMerchant(Guid organization, EnvironmentName environment, string token)
Parameters
organizationGuidenvironmentEnvironmentNametokenstring
AddMerchant(Guid, string, string)
public void AddMerchant(Guid organization, string merchant, string description)
Parameters
CloseGateway()
public void CloseGateway()
CompletePayment(Guid, PaymentResponse)
public void CompletePayment(Guid payment, PaymentResponse response)
Parameters
paymentGuidresponsePaymentResponse
CreateState()
Every aggregate must override this method to create the object that holds its current state.
public override AggregateState CreateState()
Returns
DeactivateMerchant(Guid)
public void DeactivateMerchant(Guid organization)
Parameters
organizationGuid
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
organizationGuidinvoiceGuidpaymentGuidcreatedByGuidorderNumberstringstatusPaymentStatusstartedDateTimeOffset?approvedDateTimeOffset?amountdecimalcustomerIPstringtransactionIdstringresultCodestringresultMessagestring
ModifyPaymentCreatedBy(Guid, Guid)
public void ModifyPaymentCreatedBy(Guid payment, Guid createdBy)
Parameters
OpenGateway(Guid, GatewayType, string)
public void OpenGateway(Guid organization, GatewayType type, string name)
Parameters
organizationGuidtypeGatewayTypenamestring
RemoveMerchant(Guid)
public void RemoveMerchant(Guid organization)
Parameters
organizationGuid
StartPayment(Guid, Guid, Guid, PaymentRequest)
public void StartPayment(Guid organization, Guid invoice, Guid payment, PaymentRequest request)
Parameters
organizationGuidinvoiceGuidpaymentGuidrequestPaymentRequest