Skip to content

Commit 9ffde43

Browse files
committed
Introduced a more generic config.json, improved "generate-api-client.sh"
1 parent 8f10df0 commit 9ffde43

88 files changed

Lines changed: 366 additions & 1650 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

csharp/Mastercard.Developer.DigitalEnablement.Tests/Mastercard.Developer.DigitalEnablement.Tests.csproj renamed to csharp/Acme.App.MastercardApi.Client.Tests/Acme.App.MastercardApi.Client.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
</ItemGroup>
3434

3535
<ItemGroup>
36-
<ProjectReference Include="..\Mastercard.Developer.DigitalEnablement.Client\Mastercard.Developer.DigitalEnablement.Client.csproj" />
36+
<ProjectReference Include="..\Acme.App.MastercardApi.Client\Acme.App.MastercardApi.Client.csproj" />
3737
</ItemGroup>
3838
</Project>

csharp/Mastercard.Developer.DigitalEnablement.Tests/TokenizeApiTest.cs renamed to csharp/Acme.App.MastercardApi.Client.Tests/TokenizeApiTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
using Mastercard.Developer.OAuth1Signer.Core.Utils;
66
using Mastercard.Developer.OAuth1Signer.RestSharp.Authenticators;
77
using Microsoft.VisualStudio.TestTools.UnitTesting;
8-
using Mastercard.Developer.DigitalEnablement.Client.Api;
9-
using Mastercard.Developer.DigitalEnablement.Client.Client;
10-
using Mastercard.Developer.DigitalEnablement.Client.Model;
8+
using Acme.App.MastercardApi.Client.Api;
9+
using Acme.App.MastercardApi.Client.Client;
10+
using Acme.App.MastercardApi.Client.Model;
1111
using System.Security.Cryptography.X509Certificates;
1212
using static Mastercard.Developer.ClientEncryption.Core.Encryption.FieldLevelEncryptionConfig;
1313

csharp/Mastercard.Developer.DigitalEnablement.Tests/_Resources/digital-enablement-sandbox-decryption-key.key renamed to csharp/Acme.App.MastercardApi.Client.Tests/_Resources/digital-enablement-sandbox-decryption-key.key

File renamed without changes.

csharp/Mastercard.Developer.DigitalEnablement.Tests/_Resources/digital-enablement-sandbox-encryption-key.crt renamed to csharp/Acme.App.MastercardApi.Client.Tests/_Resources/digital-enablement-sandbox-encryption-key.crt

File renamed without changes.

csharp/Mastercard.Developer.DigitalEnablement.Tests/_Resources/fake-signing-key.p12 renamed to csharp/Acme.App.MastercardApi.Client.Tests/_Resources/fake-signing-key.p12

File renamed without changes.

csharp/Mastercard.Developer.DigitalEnablement.Client/Mastercard.Developer.DigitalEnablement.Client.csproj renamed to csharp/Acme.App.MastercardApi.Client/Acme.App.MastercardApi.Client.csproj

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,19 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard1.3</TargetFramework>
5-
<IsTestProject>false</IsTestProject>
5+
<AssemblyName>Acme.App.MastercardApi.Client</AssemblyName>
6+
<PackageId>Acme.App.MastercardApi.Client</PackageId>
7+
<OutputType>Library</OutputType>
8+
<Authors>OpenAPI</Authors>
9+
<Company>OpenAPI</Company>
10+
<AssemblyTitle>OpenAPI Library</AssemblyTitle>
11+
<Description>A library generated from a OpenAPI doc</Description>
12+
<Copyright>No Copyright</Copyright>
13+
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
14+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
15+
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
16+
<RootNamespace>Acme.App.MastercardApi.Client</RootNamespace>
17+
<Version>1.0.0</Version>
618
</PropertyGroup>
719

820
<ItemGroup>
@@ -15,4 +27,5 @@
1527
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
1628
</ItemGroup>
1729

30+
1831
</Project>

csharp/Mastercard.Developer.DigitalEnablement.Client/Api/DeleteApi.cs renamed to csharp/Acme.App.MastercardApi.Client/Api/DeleteApi.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
using System.Collections.ObjectModel;
1414
using System.Linq;
1515
using RestSharp.Portable;
16-
using Mastercard.Developer.DigitalEnablement.Client.Client;
17-
using Mastercard.Developer.DigitalEnablement.Client.Model;
16+
using Acme.App.MastercardApi.Client.Client;
17+
using Acme.App.MastercardApi.Client.Model;
1818

19-
namespace Mastercard.Developer.DigitalEnablement.Client.Api
19+
namespace Acme.App.MastercardApi.Client.Api
2020
{
2121
/// <summary>
2222
/// Represents a collection of functions to interact with the API endpoints
@@ -30,7 +30,7 @@ public interface IDeleteApi : IApiAccessor
3030
/// <remarks>
3131
/// This API is used to delete one or more Tokens. The API is limited to 10 Tokens per request. MDES will coordinate the deactivation of the Tokens and notify any relevant parties that the Tokens have now been deactivated.
3232
/// </remarks>
33-
/// <exception cref="Mastercard.Developer.DigitalEnablement.Client.Client.ApiException">Thrown when fails to make API call</exception>
33+
/// <exception cref="Acme.App.MastercardApi.Client.Client.ApiException">Thrown when fails to make API call</exception>
3434
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
3535
/// <returns>DeleteResponseSchema</returns>
3636
DeleteResponseSchema DeleteDigitization (DeleteRequestSchema deleteRequestSchema = default(DeleteRequestSchema));
@@ -41,7 +41,7 @@ public interface IDeleteApi : IApiAccessor
4141
/// <remarks>
4242
/// This API is used to delete one or more Tokens. The API is limited to 10 Tokens per request. MDES will coordinate the deactivation of the Tokens and notify any relevant parties that the Tokens have now been deactivated.
4343
/// </remarks>
44-
/// <exception cref="Mastercard.Developer.DigitalEnablement.Client.Client.ApiException">Thrown when fails to make API call</exception>
44+
/// <exception cref="Acme.App.MastercardApi.Client.Client.ApiException">Thrown when fails to make API call</exception>
4545
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
4646
/// <returns>ApiResponse of DeleteResponseSchema</returns>
4747
ApiResponse<DeleteResponseSchema> DeleteDigitizationWithHttpInfo (DeleteRequestSchema deleteRequestSchema = default(DeleteRequestSchema));
@@ -53,7 +53,7 @@ public interface IDeleteApi : IApiAccessor
5353
/// <remarks>
5454
/// This API is used to delete one or more Tokens. The API is limited to 10 Tokens per request. MDES will coordinate the deactivation of the Tokens and notify any relevant parties that the Tokens have now been deactivated.
5555
/// </remarks>
56-
/// <exception cref="Mastercard.Developer.DigitalEnablement.Client.Client.ApiException">Thrown when fails to make API call</exception>
56+
/// <exception cref="Acme.App.MastercardApi.Client.Client.ApiException">Thrown when fails to make API call</exception>
5757
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
5858
/// <returns>Task of DeleteResponseSchema</returns>
5959
System.Threading.Tasks.Task<DeleteResponseSchema> DeleteDigitizationAsync (DeleteRequestSchema deleteRequestSchema = default(DeleteRequestSchema));
@@ -64,7 +64,7 @@ public interface IDeleteApi : IApiAccessor
6464
/// <remarks>
6565
/// This API is used to delete one or more Tokens. The API is limited to 10 Tokens per request. MDES will coordinate the deactivation of the Tokens and notify any relevant parties that the Tokens have now been deactivated.
6666
/// </remarks>
67-
/// <exception cref="Mastercard.Developer.DigitalEnablement.Client.Client.ApiException">Thrown when fails to make API call</exception>
67+
/// <exception cref="Acme.App.MastercardApi.Client.Client.ApiException">Thrown when fails to make API call</exception>
6868
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
6969
/// <returns>Task of ApiResponse (DeleteResponseSchema)</returns>
7070
System.Threading.Tasks.Task<ApiResponse<DeleteResponseSchema>> DeleteDigitizationAsyncWithHttpInfo (DeleteRequestSchema deleteRequestSchema = default(DeleteRequestSchema));
@@ -76,17 +76,17 @@ public interface IDeleteApi : IApiAccessor
7676
/// </summary>
7777
public partial class DeleteApi : IDeleteApi
7878
{
79-
private Mastercard.Developer.DigitalEnablement.Client.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
79+
private Acme.App.MastercardApi.Client.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
8080

8181
/// <summary>
8282
/// Initializes a new instance of the <see cref="DeleteApi"/> class.
8383
/// </summary>
8484
/// <returns></returns>
8585
public DeleteApi(String basePath)
8686
{
87-
this.Configuration = new Mastercard.Developer.DigitalEnablement.Client.Client.Configuration { BasePath = basePath };
87+
this.Configuration = new Acme.App.MastercardApi.Client.Client.Configuration { BasePath = basePath };
8888

89-
ExceptionFactory = Mastercard.Developer.DigitalEnablement.Client.Client.Configuration.DefaultExceptionFactory;
89+
ExceptionFactory = Acme.App.MastercardApi.Client.Client.Configuration.DefaultExceptionFactory;
9090
}
9191

9292
/// <summary>
@@ -95,9 +95,9 @@ public DeleteApi(String basePath)
9595
/// <returns></returns>
9696
public DeleteApi()
9797
{
98-
this.Configuration = Mastercard.Developer.DigitalEnablement.Client.Client.Configuration.Default;
98+
this.Configuration = Acme.App.MastercardApi.Client.Client.Configuration.Default;
9999

100-
ExceptionFactory = Mastercard.Developer.DigitalEnablement.Client.Client.Configuration.DefaultExceptionFactory;
100+
ExceptionFactory = Acme.App.MastercardApi.Client.Client.Configuration.DefaultExceptionFactory;
101101
}
102102

103103
/// <summary>
@@ -106,14 +106,14 @@ public DeleteApi()
106106
/// </summary>
107107
/// <param name="configuration">An instance of Configuration</param>
108108
/// <returns></returns>
109-
public DeleteApi(Mastercard.Developer.DigitalEnablement.Client.Client.Configuration configuration = null)
109+
public DeleteApi(Acme.App.MastercardApi.Client.Client.Configuration configuration = null)
110110
{
111111
if (configuration == null) // use the default one in Configuration
112-
this.Configuration = Mastercard.Developer.DigitalEnablement.Client.Client.Configuration.Default;
112+
this.Configuration = Acme.App.MastercardApi.Client.Client.Configuration.Default;
113113
else
114114
this.Configuration = configuration;
115115

116-
ExceptionFactory = Mastercard.Developer.DigitalEnablement.Client.Client.Configuration.DefaultExceptionFactory;
116+
ExceptionFactory = Acme.App.MastercardApi.Client.Client.Configuration.DefaultExceptionFactory;
117117
}
118118

119119
/// <summary>
@@ -139,12 +139,12 @@ public void SetBasePath(String basePath)
139139
/// Gets or sets the configuration object
140140
/// </summary>
141141
/// <value>An instance of the Configuration</value>
142-
public Mastercard.Developer.DigitalEnablement.Client.Client.Configuration Configuration {get; set;}
142+
public Acme.App.MastercardApi.Client.Client.Configuration Configuration {get; set;}
143143

144144
/// <summary>
145145
/// Provides a factory method hook for the creation of exceptions.
146146
/// </summary>
147-
public Mastercard.Developer.DigitalEnablement.Client.Client.ExceptionFactory ExceptionFactory
147+
public Acme.App.MastercardApi.Client.Client.ExceptionFactory ExceptionFactory
148148
{
149149
get
150150
{
@@ -182,7 +182,7 @@ public void AddDefaultHeader(string key, string value)
182182
/// <summary>
183183
/// Used to delete one or more Tokens. The API is limited to 10 Tokens per request. This API is used to delete one or more Tokens. The API is limited to 10 Tokens per request. MDES will coordinate the deactivation of the Tokens and notify any relevant parties that the Tokens have now been deactivated.
184184
/// </summary>
185-
/// <exception cref="Mastercard.Developer.DigitalEnablement.Client.Client.ApiException">Thrown when fails to make API call</exception>
185+
/// <exception cref="Acme.App.MastercardApi.Client.Client.ApiException">Thrown when fails to make API call</exception>
186186
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
187187
/// <returns>DeleteResponseSchema</returns>
188188
public DeleteResponseSchema DeleteDigitization (DeleteRequestSchema deleteRequestSchema = default(DeleteRequestSchema))
@@ -194,7 +194,7 @@ public void AddDefaultHeader(string key, string value)
194194
/// <summary>
195195
/// Used to delete one or more Tokens. The API is limited to 10 Tokens per request. This API is used to delete one or more Tokens. The API is limited to 10 Tokens per request. MDES will coordinate the deactivation of the Tokens and notify any relevant parties that the Tokens have now been deactivated.
196196
/// </summary>
197-
/// <exception cref="Mastercard.Developer.DigitalEnablement.Client.Client.ApiException">Thrown when fails to make API call</exception>
197+
/// <exception cref="Acme.App.MastercardApi.Client.Client.ApiException">Thrown when fails to make API call</exception>
198198
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
199199
/// <returns>ApiResponse of DeleteResponseSchema</returns>
200200
public ApiResponse<DeleteResponseSchema> DeleteDigitizationWithHttpInfo (DeleteRequestSchema deleteRequestSchema = default(DeleteRequestSchema))
@@ -253,7 +253,7 @@ public void AddDefaultHeader(string key, string value)
253253
/// <summary>
254254
/// Used to delete one or more Tokens. The API is limited to 10 Tokens per request. This API is used to delete one or more Tokens. The API is limited to 10 Tokens per request. MDES will coordinate the deactivation of the Tokens and notify any relevant parties that the Tokens have now been deactivated.
255255
/// </summary>
256-
/// <exception cref="Mastercard.Developer.DigitalEnablement.Client.Client.ApiException">Thrown when fails to make API call</exception>
256+
/// <exception cref="Acme.App.MastercardApi.Client.Client.ApiException">Thrown when fails to make API call</exception>
257257
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
258258
/// <returns>Task of DeleteResponseSchema</returns>
259259
public async System.Threading.Tasks.Task<DeleteResponseSchema> DeleteDigitizationAsync (DeleteRequestSchema deleteRequestSchema = default(DeleteRequestSchema))
@@ -266,7 +266,7 @@ public void AddDefaultHeader(string key, string value)
266266
/// <summary>
267267
/// Used to delete one or more Tokens. The API is limited to 10 Tokens per request. This API is used to delete one or more Tokens. The API is limited to 10 Tokens per request. MDES will coordinate the deactivation of the Tokens and notify any relevant parties that the Tokens have now been deactivated.
268268
/// </summary>
269-
/// <exception cref="Mastercard.Developer.DigitalEnablement.Client.Client.ApiException">Thrown when fails to make API call</exception>
269+
/// <exception cref="Acme.App.MastercardApi.Client.Client.ApiException">Thrown when fails to make API call</exception>
270270
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
271271
/// <returns>Task of ApiResponse (DeleteResponseSchema)</returns>
272272
public async System.Threading.Tasks.Task<ApiResponse<DeleteResponseSchema>> DeleteDigitizationAsyncWithHttpInfo (DeleteRequestSchema deleteRequestSchema = default(DeleteRequestSchema))

0 commit comments

Comments
 (0)