Class PlanAdminAppService
Inheritance
PlanAdminAppService
Assembly: Volo.Payment.Admin.Application.dll
Syntax
[Authorize("Payment.Plans")]
public class PlanAdminAppService : PaymentAdminAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IPlanAdminAppService, ICrudAppService<PlanDto, Guid, PlanGetListInput, PlanCreateInput, PlanUpdateInput>, ICrudAppService<PlanDto, PlanDto, Guid, PlanGetListInput, PlanCreateInput, PlanUpdateInput>, IReadOnlyAppService<PlanDto, PlanDto, Guid, PlanGetListInput>, ICreateUpdateAppService<PlanDto, Guid, PlanCreateInput, PlanUpdateInput>, ICreateAppService<PlanDto, PlanCreateInput>, IUpdateAppService<PlanDto, Guid, PlanUpdateInput>, IDeleteAppService<Guid>, IApplicationService, IRemoteService
Constructors
PlanAdminAppService(IPlanRepository)
Declaration
public PlanAdminAppService(IPlanRepository planRepository)
Parameters
Properties
PlanRepository
Declaration
protected IPlanRepository PlanRepository { get; }
Property Value
Methods
Declaration
[Authorize("Payment.Plans.Create")]
public virtual Task<PlanDto> CreateAsync(PlanCreateInput input)
Parameters
Returns
Declaration
[Authorize("Payment.Plans.GatewayPlans.Create")]
public virtual Task CreateGatewayPlanAsync(Guid planId, GatewayPlanCreateInput input)
Parameters
Returns
DeleteAsync(Guid)
Declaration
[Authorize("Payment.Plans.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
DeleteGatewayPlanAsync(Guid, string)
Declaration
[Authorize("Payment.Plans.GatewayPlans.Delete")]
public virtual Task DeleteGatewayPlanAsync(Guid planId, string gateway)
Parameters
Returns
GetAsync(Guid)
Declaration
public virtual Task<PlanDto> GetAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Declaration
[Authorize("Payment.Plans.GatewayPlans")]
public virtual Task<PagedResultDto<GatewayPlanDto>> GetGatewayPlansAsync(Guid planId, GatewayPlanGetListInput input)
Parameters
Returns
Declaration
public virtual Task<PagedResultDto<PlanDto>> GetListAsync(PlanGetListInput input)
Parameters
Returns
Declaration
[Authorize("Payment.Plans.Update")]
public virtual Task<PlanDto> UpdateAsync(Guid id, PlanUpdateInput input)
Parameters
Returns
Declaration
[Authorize("Payment.Plans.GatewayPlans.Update")]
public virtual Task UpdateGatewayPlanAsync(Guid planId, string gateway, GatewayPlanUpdateInput input)
Parameters
Returns
Implements
Extension Methods