Show / Hide Table of Contents

Class PaymentRequest

Inheritance
object
Entity
Entity<Guid>
BasicAggregateRoot<Guid>
AggregateRoot<Guid>
CreationAuditedAggregateRoot<Guid>
PaymentRequest
Implements
IAggregateRoot<Guid>
IEntity<Guid>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IHasConcurrencyStamp
ICreationAuditedObject
IHasCreationTime
IMayHaveCreator
Inherited Members
CreationAuditedAggregateRoot<Guid>.CreationTime
CreationAuditedAggregateRoot<Guid>.CreatorId
AggregateRoot<Guid>.Validate(ValidationContext)
AggregateRoot<Guid>.ExtraProperties
AggregateRoot<Guid>.ConcurrencyStamp
BasicAggregateRoot<Guid>.GetLocalEvents()
BasicAggregateRoot<Guid>.GetDistributedEvents()
BasicAggregateRoot<Guid>.ClearLocalEvents()
BasicAggregateRoot<Guid>.ClearDistributedEvents()
BasicAggregateRoot<Guid>.AddLocalEvent(object)
BasicAggregateRoot<Guid>.AddDistributedEvent(object)
Entity<Guid>.GetKeys()
Entity<Guid>.ToString()
Entity<Guid>.Id
Entity.EntityEquals(IEntity)
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Payment.Requests
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
Type Name Description
Guid id
string currency

Properties

Currency

Declaration
public string Currency { get; set; }
Property Value
Type Description
string

EmailSendDate

Declaration
public DateTime? EmailSendDate { get; set; }
Property Value
Type Description
DateTime?

ExternalSubscriptionId

Declaration
public string ExternalSubscriptionId { get; protected set; }
Property Value
Type Description
string

FailReason

Declaration
public string FailReason { get; }
Property Value
Type Description
string

Gateway

Declaration
public string Gateway { get; set; }
Property Value
Type Description
string

Products

Declaration
public virtual ICollection<PaymentRequestProduct> Products { get; protected set; }
Property Value
Type Description
ICollection<PaymentRequestProduct>

State

Declaration
public PaymentRequestState State { get; }
Property Value
Type Description
PaymentRequestState

Methods

AddProduct(string, string, PaymentType, float, int, Guid?, float?, Dictionary<string, IPaymentRequestProductExtraParameterConfiguration>)

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
Type Name Description
string code
string name
PaymentType paymentType
float unitPrice
int count
Guid? planId
float? totalPrice
Dictionary<string, IPaymentRequestProductExtraParameterConfiguration> extraProperties
Returns
Type Description
PaymentRequestProduct

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
Type Name Description
PaymentRequestState state

Waiting()

Declaration
public virtual void Waiting()

Implements

IAggregateRoot<TKey>
IEntity<TKey>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IHasConcurrencyStamp
ICreationAuditedObject
IHasCreationTime
IMayHaveCreator

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform