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": { "modules": {
"Payment": { "payment": {
"rootPath": "Payment", "rootPath": "payment",
"remoteServiceName": "Payment", "remoteServiceName": "Payment",
"controllers": { "controllers": {
"Payment.Samples.SampleController": { "Payment.PaymentRequests.PaymentRequestController": {
"controllerName": "Sample", "controllerName": "PaymentRequest",
"controllerGroupName": "Sample", "controllerGroupName": "PaymentRequest",
"type": "Payment.Samples.SampleController", "type": "Payment.PaymentRequests.PaymentRequestController",
"interfaces": [ "interfaces": [
{ {
"type": "Payment.Samples.ISampleAppService" "type": "Payment.PaymentRequests.IPaymentRequestAppService"
} }
], ],
"actions": { "actions": {
"GetAsync": { "CompleteAsyncByToken": {
"uniqueName": "GetAsync", "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", "name": "GetAsync",
"httpMethod": "GET", "httpMethod": "GET",
"url": "api/Payment/sample", "url": "api/payment/requests/{id}",
"supportedVersions": [], "supportedVersions": [],
"parametersOnMethod": [], "parametersOnMethod": [
"parameters": [], {
"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": { "returnValue": {
"type": "Payment.Samples.SampleDto", "type": "Payment.PaymentRequests.PaymentRequestDto",
"typeSimple": "Payment.Samples.SampleDto" "typeSimple": "Payment.PaymentRequests.PaymentRequestDto"
}, },
"allowAnonymous": null, "allowAnonymous": null,
"implementFrom": "Payment.Samples.ISampleAppService" "implementFrom": "Payment.PaymentRequests.IPaymentRequestAppService"
}, },
"GetAuthorizedAsync": { "StartPaymentAsyncByInput": {
"uniqueName": "GetAuthorizedAsync", "uniqueName": "StartPaymentAsyncByInput",
"name": "GetAuthorizedAsync", "name": "StartPaymentAsync",
"httpMethod": "GET", "httpMethod": "POST",
"url": "api/Payment/sample/authorized", "url": "api/payment/requests/start",
"supportedVersions": [], "supportedVersions": [],
"parametersOnMethod": [], "parametersOnMethod": [
"parameters": [], {
"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": { "returnValue": {
"type": "Payment.Samples.SampleDto", "type": "Payment.PaymentRequests.StartPaymentResultDto",
"typeSimple": "Payment.Samples.SampleDto" "typeSimple": "Payment.PaymentRequests.StartPaymentResultDto"
}, },
"allowAnonymous": false, "allowAnonymous": null,
"implementFrom": "Payment.Samples.ISampleAppService" "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