Browse Source

Update PaymentRequest endpoints

pull/63/head
enisn 5 years ago
parent
commit
766e2b3d2a
  1. 12
      services/payment/src/EShopOnAbp.PaymentService.HttpApi.Client/ClientProxies/payment-generate-proxy.json
  2. 4
      services/payment/src/EShopOnAbp.PaymentService.HttpApi/Controllers/PaymentRequestController.cs

12
services/payment/src/EShopOnAbp.PaymentService.HttpApi.Client/ClientProxies/payment-generate-proxy.json

@ -18,7 +18,7 @@
"uniqueName": "CompleteAsyncByPaymentTypeAndInput",
"name": "CompleteAsync",
"httpMethod": "POST",
"url": "api/payment/requests/complete",
"url": "api/payment/requests/{paymentType}/complete",
"supportedVersions": [],
"parametersOnMethod": [
{
@ -47,8 +47,8 @@
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
},
{
@ -169,7 +169,7 @@
"uniqueName": "StartAsyncByPaymentTypeAndInput",
"name": "StartAsync",
"httpMethod": "POST",
"url": "api/payment/requests/start",
"url": "api/payment/requests/{paymentType}/start",
"supportedVersions": [],
"parametersOnMethod": [
{
@ -198,8 +198,8 @@
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
},
{

4
services/payment/src/EShopOnAbp.PaymentService.HttpApi/Controllers/PaymentRequestController.cs

@ -19,7 +19,7 @@ namespace EShopOnAbp.PaymentService.Controllers
PaymentRequestAppService = paymentRequestAppService;
}
[HttpPost("complete")]
[HttpPost("{paymentType}/complete")]
public Task<PaymentRequestDto> CompleteAsync(string paymentType, PaymentRequestCompleteInputDto input)
{
return PaymentRequestAppService.CompleteAsync(paymentType, input);
@ -41,7 +41,7 @@ namespace EShopOnAbp.PaymentService.Controllers
return await PaymentRequestAppService.HandleWebhookAsync(paymentType, payload);
}
[HttpPost("start")]
[HttpPost("{paymentType}/start")]
public Task<PaymentRequestStartResultDto> StartAsync(string paymentType, PaymentRequestStartDto input)
{
return PaymentRequestAppService.StartAsync(paymentType, input);

Loading…
Cancel
Save