Class PlanAdminController
Inheritance
PlanAdminController
Implements
IApplicationService
IRemoteService
Assembly: Volo.Payment.Admin.HttpApi.dll
Syntax
[Area("paymentAdmin")]
[Authorize("Payment.Plans")]
[Route("api/payment-admin/plans")]
public class PlanAdminController : PaymentAdminController, IPlanAdminAppService, ICrudAppService<PlanDto, Guid, PlanGetListInput, PlanCreateInput, PlanUpdateInput>, ICrudAppService<PlanDto, PlanDto, Guid, PlanGetListInput, PlanCreateInput, PlanUpdateInput>, IReadOnlyAppService<PlanDto, PlanDto, Guid, PlanGetListInput>, IApplicationService, IRemoteService, ICreateUpdateAppService<PlanDto, Guid, PlanCreateInput, PlanUpdateInput>, ICreateAppService<PlanDto, PlanCreateInput>, IUpdateAppService<PlanDto, Guid, PlanUpdateInput>, IDeleteAppService<Guid>
Constructors
PlanAdminController(IPlanAdminAppService)
Declaration
public PlanAdminController(IPlanAdminAppService planAdminAppService)
Parameters
Properties
PlanAdminAppService
Declaration
protected IPlanAdminAppService PlanAdminAppService { get; }
Property Value
Methods
Declaration
[HttpPost]
[Authorize("Payment.Plans.Create")]
public virtual Task<PlanDto> CreateAsync(PlanCreateInput input)
Parameters
Returns
Declaration
[HttpPost]
[Authorize("Payment.Plans.Update")]
[Route("{planId}/external-plans")]
public virtual Task CreateGatewayPlanAsync(Guid planId, GatewayPlanCreateInput input)
Parameters
Returns
DeleteAsync(Guid)
Declaration
[HttpDelete]
[Authorize("Payment.Plans.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
DeleteGatewayPlanAsync(Guid, string)
Declaration
[HttpDelete]
[Authorize("Payment.Plans.Update")]
[Route("{planId}/external-plans/{gateway}")]
public virtual Task DeleteGatewayPlanAsync(Guid planId, string gateway)
Parameters
Returns
GetAsync(Guid)
Declaration
[HttpGet]
[Route("{id}")]
public virtual Task<PlanDto> GetAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Declaration
[HttpGet("{planId}/external-plans")]
public virtual Task<PagedResultDto<GatewayPlanDto>> GetGatewayPlansAsync(Guid planId, GatewayPlanGetListInput input)
Parameters
Returns
Declaration
[HttpGet]
public virtual Task<PagedResultDto<PlanDto>> GetListAsync(PlanGetListInput input)
Parameters
Returns
Declaration
[HttpPut]
[Route("{id}")]
[Authorize("Payment.Plans.Update")]
public virtual Task<PlanDto> UpdateAsync(Guid id, PlanUpdateInput input)
Parameters
Returns
Declaration
[HttpPut]
[Route("{planId}/external-plans/{gateway}")]
[Authorize("Payment.Plans.Update")]
public virtual Task UpdateGatewayPlanAsync(Guid planId, string gateway, GatewayPlanUpdateInput input)
Parameters
Returns
Implements
Volo.Abp.Application.Services.ICrudAppService<,,,,>
Volo.Abp.Application.Services.ICrudAppService<,,,,,>
Volo.Abp.Application.Services.IReadOnlyAppService<,,,>
Volo.Abp.Application.Services.IApplicationService
Volo.Abp.IRemoteService
Volo.Abp.Application.Services.ICreateUpdateAppService<,,,>
Volo.Abp.Application.Services.ICreateAppService<,>
Volo.Abp.Application.Services.IUpdateAppService<,,>
Volo.Abp.Application.Services.IDeleteAppService<>