Class PaymentRequest
Inheritance
PaymentRequest
Assembly: Volo.Payment.Domain.dll
Syntax
public class PaymentRequest : CreationAuditedAggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp, ICreationAuditedObject, IHasCreationTime, IMayHaveCreator
Constructors
PaymentRequest()
Declaration
protected PaymentRequest()
PaymentRequest(Guid, string)
Declaration
public PaymentRequest(Guid id, string currency = null)
Parameters
Properties
Currency
Declaration
public string Currency { get; set; }
Property Value
EmailSendDate
Declaration
public DateTime? EmailSendDate { get; set; }
Property Value
ExternalSubscriptionId
Declaration
public string ExternalSubscriptionId { get; protected set; }
Property Value
FailReason
Declaration
public string FailReason { get; }
Property Value
Gateway
Declaration
public string Gateway { get; set; }
Property Value
Products
Declaration
public virtual ICollection<PaymentRequestProduct> Products { get; protected set; }
Property Value
State
Declaration
public PaymentRequestState State { get; }
Property Value
Methods
Declaration
public PaymentRequestProduct AddProduct(string code, string name, PaymentType paymentType = PaymentType.OneTime, float unitPrice = 0, int count = 1, Guid? planId = null, float? totalPrice = null, Dictionary<string, IPaymentRequestProductExtraParameterConfiguration> extraProperties = null)
Parameters
Returns
Complete()
Declaration
public virtual void Complete()
Failed(string)
Declaration
public virtual void Failed(string reason = null)
Parameters
Type |
Name |
Description |
string |
reason |
|
Refunded()
Declaration
public virtual void Refunded()
SetExternalSubscriptionId(string)
Declaration
public virtual void SetExternalSubscriptionId(string externalSubscriptionId)
Parameters
Type |
Name |
Description |
string |
externalSubscriptionId |
|
SetState(PaymentRequestState)
Declaration
public virtual void SetState(PaymentRequestState state)
Parameters
Waiting()
Declaration
public virtual void Waiting()
Implements
Extension Methods