Browse Source

Add missing Static Proxies for Payment module

pull/69/head
enisn 5 years ago
parent
commit
0ab3ee8bb6
  1. 170
      modules/payment/src/Payment.HttpApi.Client/ClientProxies/Payment-generate-proxy.json
  2. 50
      modules/payment/src/Payment.HttpApi.Client/ClientProxies/PaymentRequestClientProxy.Generated.cs
  3. 8
      modules/payment/src/Payment.HttpApi.Client/ClientProxies/PaymentRequestClientProxy.cs

170
modules/payment/src/Payment.HttpApi.Client/ClientProxies/Payment-generate-proxy.json

@ -1,48 +1,166 @@
{
"modules": {
"Payment": {
"rootPath": "Payment",
"payment": {
"rootPath": "payment",
"remoteServiceName": "Payment",
"controllers": {
"Payment.Samples.SampleController": {
"controllerName": "Sample",
"controllerGroupName": "Sample",
"type": "Payment.Samples.SampleController",
"Payment.PaymentRequests.PaymentRequestController": {
"controllerName": "PaymentRequest",
"controllerGroupName": "PaymentRequest",
"type": "Payment.PaymentRequests.PaymentRequestController",
"interfaces": [
{
"type": "Payment.Samples.ISampleAppService"
"type": "Payment.PaymentRequests.IPaymentRequestAppService"
}
],
"actions": {
"GetAsync": {
"uniqueName": "GetAsync",
"CompleteAsyncByToken": {
"uniqueName": "CompleteAsyncByToken",
"name": "CompleteAsync",
"httpMethod": "POST",
"url": "api/payment/requests/complete/{token}",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "token",
"typeAsString": "System.String, System.Private.CoreLib",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "token",
"name": "token",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
}
],
"returnValue": {
"type": "Payment.PaymentRequests.PaymentRequestDto",
"typeSimple": "Payment.PaymentRequests.PaymentRequestDto"
},
"allowAnonymous": null,
"implementFrom": "Payment.PaymentRequests.IPaymentRequestAppService"
},
"CreateAsyncByInput": {
"uniqueName": "CreateAsyncByInput",
"name": "CreateAsync",
"httpMethod": "POST",
"url": "api/payment/requests",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "input",
"typeAsString": "Payment.PaymentRequests.PaymentRequestCreationDto, Payment.Application.Contracts",
"type": "Payment.PaymentRequests.PaymentRequestCreationDto",
"typeSimple": "Payment.PaymentRequests.PaymentRequestCreationDto",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Payment.PaymentRequests.PaymentRequestCreationDto",
"typeSimple": "Payment.PaymentRequests.PaymentRequestCreationDto",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "Payment.PaymentRequests.PaymentRequestDto",
"typeSimple": "Payment.PaymentRequests.PaymentRequestDto"
},
"allowAnonymous": null,
"implementFrom": "Payment.PaymentRequests.IPaymentRequestAppService"
},
"GetAsyncById": {
"uniqueName": "GetAsyncById",
"name": "GetAsync",
"httpMethod": "GET",
"url": "api/Payment/sample",
"url": "api/payment/requests/{id}",
"supportedVersions": [],
"parametersOnMethod": [],
"parameters": [],
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "id",
"name": "id",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
}
],
"returnValue": {
"type": "Payment.Samples.SampleDto",
"typeSimple": "Payment.Samples.SampleDto"
"type": "Payment.PaymentRequests.PaymentRequestDto",
"typeSimple": "Payment.PaymentRequests.PaymentRequestDto"
},
"allowAnonymous": null,
"implementFrom": "Payment.Samples.ISampleAppService"
"implementFrom": "Payment.PaymentRequests.IPaymentRequestAppService"
},
"GetAuthorizedAsync": {
"uniqueName": "GetAuthorizedAsync",
"name": "GetAuthorizedAsync",
"httpMethod": "GET",
"url": "api/Payment/sample/authorized",
"StartPaymentAsyncByInput": {
"uniqueName": "StartPaymentAsyncByInput",
"name": "StartPaymentAsync",
"httpMethod": "POST",
"url": "api/payment/requests/start",
"supportedVersions": [],
"parametersOnMethod": [],
"parameters": [],
"parametersOnMethod": [
{
"name": "input",
"typeAsString": "Payment.PaymentRequests.StartPaymentDto, Payment.Application.Contracts",
"type": "Payment.PaymentRequests.StartPaymentDto",
"typeSimple": "Payment.PaymentRequests.StartPaymentDto",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Payment.PaymentRequests.StartPaymentDto",
"typeSimple": "Payment.PaymentRequests.StartPaymentDto",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "Payment.Samples.SampleDto",
"typeSimple": "Payment.Samples.SampleDto"
"type": "Payment.PaymentRequests.StartPaymentResultDto",
"typeSimple": "Payment.PaymentRequests.StartPaymentResultDto"
},
"allowAnonymous": false,
"implementFrom": "Payment.Samples.ISampleAppService"
"allowAnonymous": null,
"implementFrom": "Payment.PaymentRequests.IPaymentRequestAppService"
}
}
}

50
modules/payment/src/Payment.HttpApi.Client/ClientProxies/PaymentRequestClientProxy.Generated.cs

@ -0,0 +1,50 @@
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp
using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Http.Client;
using Volo.Abp.Http.Modeling;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Http.Client.ClientProxying;
using Payment.PaymentRequests;
// ReSharper disable once CheckNamespace
namespace Payment.PaymentRequests.ClientProxies
{
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IPaymentRequestAppService), typeof(PaymentRequestClientProxy))]
public partial class PaymentRequestClientProxy : ClientProxyBase<IPaymentRequestAppService>, IPaymentRequestAppService
{
public virtual async Task<PaymentRequestDto> CompleteAsync(string token)
{
return await RequestAsync<PaymentRequestDto>(nameof(CompleteAsync), new ClientProxyRequestTypeValue
{
{ typeof(string), token }
});
}
public virtual async Task<PaymentRequestDto> CreateAsync(PaymentRequestCreationDto input)
{
return await RequestAsync<PaymentRequestDto>(nameof(CreateAsync), new ClientProxyRequestTypeValue
{
{ typeof(PaymentRequestCreationDto), input }
});
}
public virtual async Task<PaymentRequestDto> GetAsync(Guid id)
{
return await RequestAsync<PaymentRequestDto>(nameof(GetAsync), new ClientProxyRequestTypeValue
{
{ typeof(Guid), id }
});
}
public virtual async Task<StartPaymentResultDto> StartPaymentAsync(StartPaymentDto input)
{
return await RequestAsync<StartPaymentResultDto>(nameof(StartPaymentAsync), new ClientProxyRequestTypeValue
{
{ typeof(StartPaymentDto), input }
});
}
}
}

8
modules/payment/src/Payment.HttpApi.Client/ClientProxies/PaymentRequestClientProxy.cs

@ -0,0 +1,8 @@
// This file is part of PaymentRequestClientProxy, you can customize it here
// ReSharper disable once CheckNamespace
namespace Payment.PaymentRequests.ClientProxies
{
public partial class PaymentRequestClientProxy
{
}
}
Loading…
Cancel
Save