Skip to content

customweb/mdes-sdk

Repository files navigation

wallee-mdes-sdk

Requirements

Building the API client library requires Maven to be installed.

Installation

To install the API client library to your local Maven repository, simply execute:

mvn install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn deploy

Refer to the official documentation for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
    <groupId>com.wallee</groupId>
    <artifactId>wallee-mdes-sdk</artifactId>
    <version>1.1.35</version>
    <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.wallee:wallee-mdes-sdk:1.1.35"

Others

At first generate the JAR by executing:

mvn package

Then manually install the following JARs:

  • target/wallee-mdes-sdk-1.1.35.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import com.wallee.sdk.mdes.*;
import com.wallee.sdk.mdes.auth.*;
import com.wallee.sdk.mdes.model.*;
import com.wallee.sdk.mdes.api.DeleteApi;

import java.io.File;
import java.util.*;

public class DeleteApiExample {

    public static void main(String[] args) {
        
        DeleteApi apiInstance = new DeleteApi();
        DeleteRequestSchema deleteRequestSchema = new DeleteRequestSchema(); // DeleteRequestSchema | Contains the details of the request message. 
        try {
            DeleteResponseSchema result = apiInstance.deleteDigitization(deleteRequestSchema);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeleteApi#deleteDigitization");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.mastercard.com/mdes

Class Method HTTP request Description
DeleteApi deleteDigitization POST /digitization/#env/1/0/delete Used to delete one or more Tokens. The API is limited to 10 Tokens per request.
GetAssetApi getAsset GET /assets/#env/1/0/asset/{AssetId} Used to retrieve static Assets from the MDES repository.
GetDigitalAssetsApi getDigitalAssets POST /digitization/#env/1/0/getDigitalAssets Used to retrieve digital assets derived from a funding PAN.
GetTaskStatusApi getTaskStatus POST /digitization/#env/1/0/getTaskStatus Used to check the status of any asynchronous task that was previously requested.
GetTokenApi getToken POST /digitization/#env/1/0/getToken Used to get the status and details of a single given Token.
NotifyTokenUpdatedApi notifyTokenUpdateForTokenStateChange POST /digitization/#env/1/0/notifyTokenUpdated Outbound API used by MDES to notify the Token Requestor of significant Token updates, such as when the Token is activated, suspended, unsuspended or deleted; or when information about the Token or its product configuration has changed.
SearchTokensApi searchTokens POST /digitization/#env/1/0/searchTokens Used to get basic token information for all tokens on a specified device, or all tokens mapped to the given Account PAN.
SuspendApi createSuspend POST /digitization/#env/1/0/suspend Used to temporarily suspend one or more Tokens.
TokenizeApi createTokenize POST /digitization/#env/1/0/tokenize Used to digitize a card to create a server-based Token.
TransactApi createTransact POST /remotetransaction/#env/1/0/transact Used by the Token Requestor to create a Digital Secure Remote Payment (&quot;DSRP&quot;) transaction cryptogram using the credentials stored within MDES in order to perform a DSRP transaction.
UnsuspendApi createUnsuspend POST /digitization/#env/1/0/unsuspend Used to unsuspend one or more previously suspended Tokens. The API is limited to 10 Tokens per request.

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization. Authentication schemes defined for the API:

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author