You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Generating and Configuring a Mastercard API Client](https://developer.mastercard.com/platform/documentation/generating-and-configuring-a-mastercard-api-client/) explains how to generate and configure a simple API client for one of the APIs offered on the [Mastercard Developer portal](https://developer.mastercard.com/apis).
3
+
[Generating and Configuring a Mastercard API Client](https://developer.mastercard.com/platform/documentation/security-and-authentication/generating-and-configuring-a-mastercard-api-client/) explains how to generate and configure a simple API client for one of the APIs offered on the [Mastercard Developer portal](https://developer.mastercard.com/apis).
4
4
5
5
Languages used in this tutorial: Java, Python, NodeJS, Ruby, PHP and C#.
Copy file name to clipboardExpand all lines: csharp/Acme.App.MastercardApi.Client/Api/DeleteApi.cs
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
*
4
4
* The MDES APIs are designed as RPC style stateless web services where each API endpoint represents an operation to be performed. All request and response payloads are sent in the JSON (JavaScript Object Notation) data-interchange format. Each endpoint in the API specifies the HTTP Method used to access it. All strings in request and response objects are to be UTF-8 encoded. Each API URI includes the major and minor version of API that it conforms to. This will allow multiple concurrent versions of the API to be deployed simultaneously. <br> __Authentication__ Mastercard uses OAuth 1.0a with body hash extension for authenticating the API clients. This requires every request that you send to Mastercard to be signed with an RSA private key. A private-public RSA key pair must be generated consisting of: <br> 1 . A private key for the OAuth signature for API requests. It is recommended to keep the private key in a password-protected or hardware keystore. <br> 2. A public key is shared with Mastercard during the project setup process through either a certificate signing request (CSR) or the API Key Generator. Mastercard will use the public key to verify the OAuth signature that is provided on every API call.<br> An OAUTH1.0a signer library is available on [GitHub](https://github.com/Mastercard/oauth1-signer-java) <br> __Encryption__<br> All communications between Issuer web service and the Mastercard gateway is encrypted using TLS. <br> __Additional Encryption of Sensitive Data__ In addition to the OAuth authentication, when using MDES Digital Enablement Service, any PCI sensitive and all account holder Personally Identifiable Information (PII) data must be encrypted. This requirement applies to the API fields containing encryptedData. Sensitive data is encrypted using a symmetric session (one-time-use) key. The symmetric session key is then wrapped with an RSA Public Key supplied by Mastercard during API setup phase (the Customer Encryption Key). <br> Java Client Encryption Library available on [GitHub](https://github.com/Mastercard/client-encryption-java)
/// Represents a collection of functions to interact with the API endpoints
@@ -30,7 +30,7 @@ public interface IDeleteApi : IApiAccessor
30
30
/// <remarks>
31
31
/// 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.
32
32
/// </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>
34
34
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
@@ -41,7 +41,7 @@ public interface IDeleteApi : IApiAccessor
41
41
/// <remarks>
42
42
/// 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.
43
43
/// </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>
45
45
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
46
46
/// <returns>ApiResponse of DeleteResponseSchema</returns>
@@ -53,7 +53,7 @@ public interface IDeleteApi : IApiAccessor
53
53
/// <remarks>
54
54
/// 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.
55
55
/// </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>
57
57
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
58
58
/// <returns>Task of DeleteResponseSchema</returns>
@@ -64,7 +64,7 @@ public interface IDeleteApi : IApiAccessor
64
64
/// <remarks>
65
65
/// 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.
66
66
/// </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>
68
68
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
69
69
/// <returns>Task of ApiResponse (DeleteResponseSchema)</returns>
@@ -182,7 +182,7 @@ public void AddDefaultHeader(string key, string value)
182
182
/// <summary>
183
183
/// 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.
184
184
/// </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>
186
186
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
@@ -194,7 +194,7 @@ public void AddDefaultHeader(string key, string value)
194
194
/// <summary>
195
195
/// 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.
196
196
/// </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>
198
198
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
199
199
/// <returns>ApiResponse of DeleteResponseSchema</returns>
@@ -253,7 +253,7 @@ public void AddDefaultHeader(string key, string value)
253
253
/// <summary>
254
254
/// 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.
255
255
/// </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>
257
257
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
258
258
/// <returns>Task of DeleteResponseSchema</returns>
@@ -266,7 +266,7 @@ public void AddDefaultHeader(string key, string value)
266
266
/// <summary>
267
267
/// 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.
268
268
/// </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>
270
270
/// <param name="deleteRequestSchema">Contains the details of the request message. (optional)</param>
271
271
/// <returns>Task of ApiResponse (DeleteResponseSchema)</returns>
0 commit comments