Skip to content

Commit c6ca059

Browse files
committed
generated client with openapi generator 4.1.0
1 parent cf8d350 commit c6ca059

52 files changed

Lines changed: 4981 additions & 4862 deletions

Some content is hidden

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

nodejs/.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.2
1+
4.1.0

nodejs/.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: node_js
22
cache: npm
33
node_js:
4-
- "6"
5-
- "6.1"
4+
- "5"
5+
- "5.11"

nodejs/README.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# mdes_for_merchants
22

33
MdesForMerchants - JavaScript client for mdes_for_merchants
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.
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)
55
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

7-
- API version: 1.2.7
8-
- Package version: 1.2.7
7+
- API version: 1.2.9
8+
- Package version: 1.2.9
99
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
1010

1111
## Installation
@@ -22,12 +22,6 @@ Then install it via:
2222
npm install mdes_for_merchants --save
2323
```
2424

25-
Finaly, you need to build the module:
26-
27-
```shell
28-
npm run build
29-
```
30-
3125
##### Local development
3226

3327
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:
@@ -42,21 +36,17 @@ Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the follow
4236
npm link
4337
```
4438

45-
To use the link you just defined in your project, switch to the directory you want to use your mdes_for_merchants from, and run:
39+
Finally, switch to the directory you want to use your mdes_for_merchants from, and run:
4640

4741
```shell
4842
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
4943
```
5044

51-
Finaly, you need to build the module:
45+
You should now be able to `require('mdes_for_merchants')` in javascript files from the directory you ran the last command above from.
5246

53-
```shell
54-
npm run build
55-
```
47+
### git
5648

57-
#### git
58-
59-
If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID
49+
If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID
6050
then install it via:
6151

6252
```shell
@@ -65,9 +55,7 @@ then install it via:
6555

6656
### For browser
6757

68-
The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
69-
the above steps with Node.js and installing browserify with `npm install -g browserify`,
70-
perform the following (assuming *main.js* is your entry file):
58+
The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following the above steps with Node.js and installing browserify with `npm install -g browserify`, perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually use this library):
7159

7260
```shell
7361
browserify main.js > bundle.js
@@ -105,6 +93,7 @@ var api = new MdesForMerchants.DeleteApi()
10593
var opts = {
10694
'deleteRequestSchema': new MdesForMerchants.DeleteRequestSchema() // {DeleteRequestSchema} Contains the details of the request message.
10795
};
96+
10897
var callback = function(error, data, response) {
10998
if (error) {
11099
console.error(error);
@@ -123,31 +112,41 @@ All URIs are relative to *https://api.mastercard.com/mdes*
123112
Class | Method | HTTP request | Description
124113
------------ | ------------- | ------------- | -------------
125114
*MdesForMerchants.DeleteApi* | [**deleteDigitization**](docs/DeleteApi.md#deleteDigitization) | **POST** /digitization/static/1/0/delete | Used to delete one or more Tokens. The API is limited to 10 Tokens per request.
126-
*MdesForMerchants.GetAssetApi* | [**getAsset**](docs/GetAssetApi.md#getAsset) | **GET** /assets/static/1/0/asset/{AssetId} | Used to retrieve static Assets from MDES�s repository, such as Card art, MasterCard brand logos, Issuer logos, and Terms and Conditions.
115+
*MdesForMerchants.GetAssetApi* | [**getAsset**](docs/GetAssetApi.md#getAsset) | **GET** /assets/static/1/0/asset/{AssetId} | Used to retrieve static Assets from the MDES repository.
116+
*MdesForMerchants.GetDigitalAssetsApi* | [**getDigitalAssets**](docs/GetDigitalAssetsApi.md#getDigitalAssets) | **POST** /digitization/static/1/0/getDigitalAssets | Used to retrieve digital assets derived from a funding PAN.
127117
*MdesForMerchants.GetTaskStatusApi* | [**getTaskStatus**](docs/GetTaskStatusApi.md#getTaskStatus) | **POST** /digitization/static/1/0/getTaskStatus | Used to check the status of any asynchronous task that was previously requested.
128118
*MdesForMerchants.GetTokenApi* | [**getToken**](docs/GetTokenApi.md#getToken) | **POST** /digitization/static/1/0/getToken | Used to get the status and details of a single given Token.
129119
*MdesForMerchants.NotifyTokenUpdatedApi* | [**notifyTokenUpdateForTokenStateChange**](docs/NotifyTokenUpdatedApi.md#notifyTokenUpdateForTokenStateChange) | **POST** /digitization/static/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.
130120
*MdesForMerchants.SearchTokensApi* | [**searchTokens**](docs/SearchTokensApi.md#searchTokens) | **POST** /digitization/static/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.
131-
*MdesForMerchants.SuspendApi* | [**createSuspend**](docs/SuspendApi.md#createSuspend) | **POST** /digitization/static/1/0/suspend | Used to temporarily suspend one or more Tokens (for example, suspending all Tokens on a device in response to the device being lost). The API is limited to 10 Tokens per request.
121+
*MdesForMerchants.SuspendApi* | [**createSuspend**](docs/SuspendApi.md#createSuspend) | **POST** /digitization/static/1/0/suspend | Used to temporarily suspend one or more Tokens.
132122
*MdesForMerchants.TokenizeApi* | [**createTokenize**](docs/TokenizeApi.md#createTokenize) | **POST** /digitization/static/1/0/tokenize | Used to digitize a card to create a server-based Token.
133123
*MdesForMerchants.TransactApi* | [**createTransact**](docs/TransactApi.md#createTransact) | **POST** /remotetransaction/static/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.
134124
*MdesForMerchants.UnsuspendApi* | [**createUnsuspend**](docs/UnsuspendApi.md#createUnsuspend) | **POST** /digitization/static/1/0/unsuspend | Used to unsuspend one or more previously suspended Tokens. The API is limited to 10 Tokens per request.
135125

136126

137127
## Documentation for Models
138128

129+
- [MdesForMerchants.AccountHolderData](docs/AccountHolderData.md)
130+
- [MdesForMerchants.AccountHolderDataOutbound](docs/AccountHolderDataOutbound.md)
139131
- [MdesForMerchants.AssetResponseSchema](docs/AssetResponseSchema.md)
140132
- [MdesForMerchants.AuthenticationMethods](docs/AuthenticationMethods.md)
141133
- [MdesForMerchants.BillingAddress](docs/BillingAddress.md)
142-
- [MdesForMerchants.CardInfo](docs/CardInfo.md)
143-
- [MdesForMerchants.CardInfoData](docs/CardInfoData.md)
134+
- [MdesForMerchants.CardAccountDataInbound](docs/CardAccountDataInbound.md)
135+
- [MdesForMerchants.CardAccountDataOutbound](docs/CardAccountDataOutbound.md)
144136
- [MdesForMerchants.DecisioningData](docs/DecisioningData.md)
145137
- [MdesForMerchants.DeleteRequestSchema](docs/DeleteRequestSchema.md)
146138
- [MdesForMerchants.DeleteResponseSchema](docs/DeleteResponseSchema.md)
147139
- [MdesForMerchants.EncryptedPayload](docs/EncryptedPayload.md)
148140
- [MdesForMerchants.EncryptedPayloadTransact](docs/EncryptedPayloadTransact.md)
149141
- [MdesForMerchants.Error](docs/Error.md)
150142
- [MdesForMerchants.ErrorsResponse](docs/ErrorsResponse.md)
143+
- [MdesForMerchants.FundingAccountData](docs/FundingAccountData.md)
144+
- [MdesForMerchants.FundingAccountInfo](docs/FundingAccountInfo.md)
145+
- [MdesForMerchants.FundingAccountInfoEncryptedPayload](docs/FundingAccountInfoEncryptedPayload.md)
146+
- [MdesForMerchants.GetDigitalAssetsEncryptedData](docs/GetDigitalAssetsEncryptedData.md)
147+
- [MdesForMerchants.GetDigitalAssetsRequestSchema](docs/GetDigitalAssetsRequestSchema.md)
148+
- [MdesForMerchants.GetDigitalAssetsRequestSchemaEncryptedPayload](docs/GetDigitalAssetsRequestSchemaEncryptedPayload.md)
149+
- [MdesForMerchants.GetDigitalAssetsResponseSchema](docs/GetDigitalAssetsResponseSchema.md)
151150
- [MdesForMerchants.GetTaskStatusRequestSchema](docs/GetTaskStatusRequestSchema.md)
152151
- [MdesForMerchants.GetTaskStatusResponseSchema](docs/GetTaskStatusResponseSchema.md)
153152
- [MdesForMerchants.GetTokenRequestSchema](docs/GetTokenRequestSchema.md)
@@ -156,6 +155,7 @@ Class | Method | HTTP request | Description
156155
- [MdesForMerchants.NotifyTokenEncryptedPayload](docs/NotifyTokenEncryptedPayload.md)
157156
- [MdesForMerchants.NotifyTokenUpdatedRequestSchema](docs/NotifyTokenUpdatedRequestSchema.md)
158157
- [MdesForMerchants.NotifyTokenUpdatedResponseSchema](docs/NotifyTokenUpdatedResponseSchema.md)
158+
- [MdesForMerchants.PhoneNumber](docs/PhoneNumber.md)
159159
- [MdesForMerchants.ProductConfig](docs/ProductConfig.md)
160160
- [MdesForMerchants.SearchTokensRequestSchema](docs/SearchTokensRequestSchema.md)
161161
- [MdesForMerchants.SearchTokensResponseSchema](docs/SearchTokensResponseSchema.md)
@@ -164,8 +164,9 @@ Class | Method | HTTP request | Description
164164
- [MdesForMerchants.Token](docs/Token.md)
165165
- [MdesForMerchants.TokenDetail](docs/TokenDetail.md)
166166
- [MdesForMerchants.TokenDetailData](docs/TokenDetailData.md)
167-
- [MdesForMerchants.TokenDetailDataPAR](docs/TokenDetailDataPAR.md)
168-
- [MdesForMerchants.TokenDetailTokenizeResponse](docs/TokenDetailTokenizeResponse.md)
167+
- [MdesForMerchants.TokenDetailDataPAROnly](docs/TokenDetailDataPAROnly.md)
168+
- [MdesForMerchants.TokenDetailDataTCCOnly](docs/TokenDetailDataTCCOnly.md)
169+
- [MdesForMerchants.TokenDetailPAROnly](docs/TokenDetailPAROnly.md)
169170
- [MdesForMerchants.TokenForLCM](docs/TokenForLCM.md)
170171
- [MdesForMerchants.TokenInfo](docs/TokenInfo.md)
171172
- [MdesForMerchants.TokenizeRequestSchema](docs/TokenizeRequestSchema.md)

0 commit comments

Comments
 (0)