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))]
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
{
{ typeof(string), token }
{ typeof(PaymentRequestCompleteInputDto), input }
});
}

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

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

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

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