From 0ab3ee8bb671fba6c7392964f83b222ed2e36f60 Mon Sep 17 00:00:00 2001 From: enisn Date: Wed, 20 Oct 2021 13:10:12 +0300 Subject: [PATCH] Add missing Static Proxies for Payment module --- .../ClientProxies/Payment-generate-proxy.json | 170 +++++++++++++++--- .../PaymentRequestClientProxy.Generated.cs | 50 ++++++ .../PaymentRequestClientProxy.cs | 8 + 3 files changed, 202 insertions(+), 26 deletions(-) create mode 100644 modules/payment/src/Payment.HttpApi.Client/ClientProxies/PaymentRequestClientProxy.Generated.cs create mode 100644 modules/payment/src/Payment.HttpApi.Client/ClientProxies/PaymentRequestClientProxy.cs diff --git a/modules/payment/src/Payment.HttpApi.Client/ClientProxies/Payment-generate-proxy.json b/modules/payment/src/Payment.HttpApi.Client/ClientProxies/Payment-generate-proxy.json index 8f9c667..6681ec8 100644 --- a/modules/payment/src/Payment.HttpApi.Client/ClientProxies/Payment-generate-proxy.json +++ b/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" } } } diff --git a/modules/payment/src/Payment.HttpApi.Client/ClientProxies/PaymentRequestClientProxy.Generated.cs b/modules/payment/src/Payment.HttpApi.Client/ClientProxies/PaymentRequestClientProxy.Generated.cs new file mode 100644 index 0000000..0b336a6 --- /dev/null +++ b/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 + { + public virtual async Task CompleteAsync(string token) + { + return await RequestAsync(nameof(CompleteAsync), new ClientProxyRequestTypeValue + { + { typeof(string), token } + }); + } + + public virtual async Task CreateAsync(PaymentRequestCreationDto input) + { + return await RequestAsync(nameof(CreateAsync), new ClientProxyRequestTypeValue + { + { typeof(PaymentRequestCreationDto), input } + }); + } + + public virtual async Task GetAsync(Guid id) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(Guid), id } + }); + } + + public virtual async Task StartPaymentAsync(StartPaymentDto input) + { + return await RequestAsync(nameof(StartPaymentAsync), new ClientProxyRequestTypeValue + { + { typeof(StartPaymentDto), input } + }); + } + } +} diff --git a/modules/payment/src/Payment.HttpApi.Client/ClientProxies/PaymentRequestClientProxy.cs b/modules/payment/src/Payment.HttpApi.Client/ClientProxies/PaymentRequestClientProxy.cs new file mode 100644 index 0000000..6c18a0a --- /dev/null +++ b/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 + { + } +}