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

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

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

Loading…
Cancel
Save