Show / Hide Table of Contents

Class PlanAdminController

Inheritance
object
PaymentCommonController
PaymentAdminController
PlanAdminController
Implements
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>
Namespace: Volo.Payment.Admin.Plans
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
Type Name Description
IPlanAdminAppService planAdminAppService

Properties

PlanAdminAppService

Declaration
protected IPlanAdminAppService PlanAdminAppService { get; }
Property Value
Type Description
IPlanAdminAppService

Methods

CreateAsync(PlanCreateInput)

Declaration
[HttpPost]
[Authorize("Payment.Plans.Create")]
public virtual Task<PlanDto> CreateAsync(PlanCreateInput input)
Parameters
Type Name Description
PlanCreateInput input
Returns
Type Description
Task<PlanDto>

CreateGatewayPlanAsync(Guid, GatewayPlanCreateInput)

Declaration
[HttpPost]
[Authorize("Payment.Plans.Update")]
[Route("{planId}/external-plans")]
public virtual Task CreateGatewayPlanAsync(Guid planId, GatewayPlanCreateInput input)
Parameters
Type Name Description
Guid planId
GatewayPlanCreateInput input
Returns
Type Description
Task

DeleteAsync(Guid)

Declaration
[HttpDelete]
[Authorize("Payment.Plans.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

DeleteGatewayPlanAsync(Guid, string)

Declaration
[HttpDelete]
[Authorize("Payment.Plans.Update")]
[Route("{planId}/external-plans/{gateway}")]
public virtual Task DeleteGatewayPlanAsync(Guid planId, string gateway)
Parameters
Type Name Description
Guid planId
string gateway
Returns
Type Description
Task

GetAsync(Guid)

Declaration
[HttpGet]
[Route("{id}")]
public virtual Task<PlanDto> GetAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<PlanDto>

GetGatewayPlansAsync(Guid, GatewayPlanGetListInput)

Declaration
[HttpGet("{planId}/external-plans")]
public virtual Task<PagedResultDto<GatewayPlanDto>> GetGatewayPlansAsync(Guid planId, GatewayPlanGetListInput input)
Parameters
Type Name Description
Guid planId
GatewayPlanGetListInput input
Returns
Type Description
Task<PagedResultDto<GatewayPlanDto>>

GetListAsync(PlanGetListInput)

Declaration
[HttpGet]
public virtual Task<PagedResultDto<PlanDto>> GetListAsync(PlanGetListInput input)
Parameters
Type Name Description
PlanGetListInput input
Returns
Type Description
Task<PagedResultDto<PlanDto>>

UpdateAsync(Guid, PlanUpdateInput)

Declaration
[HttpPut]
[Route("{id}")]
[Authorize("Payment.Plans.Update")]
public virtual Task<PlanDto> UpdateAsync(Guid id, PlanUpdateInput input)
Parameters
Type Name Description
Guid id
PlanUpdateInput input
Returns
Type Description
Task<PlanDto>

UpdateGatewayPlanAsync(Guid, string, GatewayPlanUpdateInput)

Declaration
[HttpPut]
[Route("{planId}/external-plans/{gateway}")]
[Authorize("Payment.Plans.Update")]
public virtual Task UpdateGatewayPlanAsync(Guid planId, string gateway, GatewayPlanUpdateInput input)
Parameters
Type Name Description
Guid planId
string gateway
GatewayPlanUpdateInput input
Returns
Type Description
Task

Implements

IPlanAdminAppService
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<>
In this article
Back to top Powered by Volosoft