Browse Source

updated payment request client proxy

pull/57/head
Galip Tolga Erdem 5 years ago
parent
commit
3608029d2f
  1. 4
      services/payment/src/EShopOnAbp.PaymentService.HttpApi.Client/ClientProxies/PaymentRequestClientProxy.Generated.cs
  2. 22
      services/payment/src/EShopOnAbp.PaymentService.HttpApi.Client/ClientProxies/payment-generate-proxy.json
  3. 6
      services/payment/src/EShopOnAbp.PaymentService.HttpApi/Controllers/PaymentRequestController.cs

4
services/payment/src/EShopOnAbp.PaymentService.HttpApi.Client/ClientProxies/PaymentRequestClientProxy.Generated.cs

@ -15,11 +15,11 @@ namespace EShopOnAbp.PaymentService.Controllers.ClientProxies
[ExposeServices(typeof(IPaymentRequestAppService), typeof(PaymentRequestClientProxy))] [ExposeServices(typeof(IPaymentRequestAppService), typeof(PaymentRequestClientProxy))]
public partial class PaymentRequestClientProxy : ClientProxyBase<IPaymentRequestAppService>, IPaymentRequestAppService public partial class PaymentRequestClientProxy : ClientProxyBase<IPaymentRequestAppService>, IPaymentRequestAppService
{ {
public virtual async Task<PaymentRequestDto> CompleteAsync(string token) public virtual async Task<PaymentRequestDto> CompleteAsync(PaymentRequestCompleteInputDto input)
{ {
return await RequestAsync<PaymentRequestDto>(nameof(CompleteAsync), new ClientProxyRequestTypeValue return await RequestAsync<PaymentRequestDto>(nameof(CompleteAsync), new ClientProxyRequestTypeValue
{ {
{ typeof(string), token } { typeof(PaymentRequestCompleteInputDto), input }
}); });
} }

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

@ -14,33 +14,33 @@
} }
], ],
"actions": { "actions": {
"CompleteAsyncByToken": { "CompleteAsyncByInput": {
"uniqueName": "CompleteAsyncByToken", "uniqueName": "CompleteAsyncByInput",
"name": "CompleteAsync", "name": "CompleteAsync",
"httpMethod": "POST", "httpMethod": "POST",
"url": "api/payment/requests/complete", "url": "api/payment/requests/complete",
"supportedVersions": [], "supportedVersions": [],
"parametersOnMethod": [ "parametersOnMethod": [
{ {
"name": "token", "name": "input",
"typeAsString": "System.String, System.Private.CoreLib", "typeAsString": "EShopOnAbp.PaymentService.PaymentRequests.PaymentRequestCompleteInputDto, EShopOnAbp.PaymentService.Application.Contracts",
"type": "System.String", "type": "EShopOnAbp.PaymentService.PaymentRequests.PaymentRequestCompleteInputDto",
"typeSimple": "string", "typeSimple": "EShopOnAbp.PaymentService.PaymentRequests.PaymentRequestCompleteInputDto",
"isOptional": false, "isOptional": false,
"defaultValue": null "defaultValue": null
} }
], ],
"parameters": [ "parameters": [
{ {
"nameOnMethod": "token", "nameOnMethod": "input",
"name": "token", "name": "input",
"jsonName": null, "jsonName": null,
"type": "System.String", "type": "EShopOnAbp.PaymentService.PaymentRequests.PaymentRequestCompleteInputDto",
"typeSimple": "string", "typeSimple": "EShopOnAbp.PaymentService.PaymentRequests.PaymentRequestCompleteInputDto",
"isOptional": false, "isOptional": false,
"defaultValue": null, "defaultValue": null,
"constraintTypes": null, "constraintTypes": null,
"bindingSourceId": "ModelBinding", "bindingSourceId": "Body",
"descriptorName": "" "descriptorName": ""
} }
], ],

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

@ -20,9 +20,9 @@ namespace EShopOnAbp.PaymentService.Controllers
} }
[HttpPost("complete")] [HttpPost("complete")]
public Task<PaymentRequestDto> CompleteAsync(string token) public Task<PaymentRequestDto> CompleteAsync(PaymentRequestCompleteInputDto input)
{ {
return PaymentRequestAppService.CompleteAsync(token); return PaymentRequestAppService.CompleteAsync(input);
} }
[HttpPost] [HttpPost]
@ -47,4 +47,4 @@ namespace EShopOnAbp.PaymentService.Controllers
return PaymentRequestAppService.StartAsync(input); return PaymentRequestAppService.StartAsync(input);
} }
} }
} }
Loading…
Cancel
Save