Skip to content

Commit 4ac86b5

Browse files
authored
Merge pull request #172 from CyberSource/feature/mle-final
Final MLE PR
2 parents 538237e + a174b6a commit 4ac86b5

File tree

69 files changed

+716
-394
lines changed

Some content is hidden

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

69 files changed

+716
-394
lines changed

generator/cybersource-javascript-template/api.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@
115115
var returnType = <#returnType><&returnType></returnType><^returnType>null</returnType>;
116116

117117
//check isMLE for an api method 'this.<operationId>'
118-
var isMLESupportedByCybsForApi = <#vendorExtensions.x-devcenter-metaData.isMLEsupported>true</vendorExtensions.x-devcenter-metaData.isMLEsupported><^vendorExtensions.x-devcenter-metaData.isMLEsupported>false</vendorExtensions.x-devcenter-metaData.isMLEsupported>;
119-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, '<operationId>');
118+
var inboundMLEStatus = <#vendorExtensions.x-devcenter-metaData.mleForRequest>'<vendorExtensions.x-devcenter-metaData.mleForRequest>'</vendorExtensions.x-devcenter-metaData.mleForRequest><^vendorExtensions.x-devcenter-metaData.mleForRequest>'false'</vendorExtensions.x-devcenter-metaData.mleForRequest>;
119+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, '<operationId>');
120120

121121
if (isMLEForApi === true) {
122122
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {

src/api/BatchesApi.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
var returnType = InlineResponse20010;
9595

9696
//check isMLE for an api method 'this.getBatchReport'
97-
var isMLESupportedByCybsForApi = false;
98-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'getBatchReport');
97+
var inboundMLEStatus = 'false';
98+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'getBatchReport');
9999

100100
if (isMLEForApi === true) {
101101
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {
@@ -159,8 +159,8 @@
159159
var returnType = InlineResponse2009;
160160

161161
//check isMLE for an api method 'this.getBatchStatus'
162-
var isMLESupportedByCybsForApi = false;
163-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'getBatchStatus');
162+
var inboundMLEStatus = 'false';
163+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'getBatchStatus');
164164

165165
if (isMLEForApi === true) {
166166
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {
@@ -227,8 +227,8 @@
227227
var returnType = InlineResponse2008;
228228

229229
//check isMLE for an api method 'this.getBatchesList'
230-
var isMLESupportedByCybsForApi = false;
231-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'getBatchesList');
230+
var inboundMLEStatus = 'false';
231+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'getBatchesList');
232232

233233
if (isMLEForApi === true) {
234234
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {
@@ -292,8 +292,8 @@
292292
var returnType = InlineResponse202;
293293

294294
//check isMLE for an api method 'this.postBatch'
295-
var isMLESupportedByCybsForApi = false;
296-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'postBatch');
295+
var inboundMLEStatus = 'false';
296+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'postBatch');
297297

298298
if (isMLEForApi === true) {
299299
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {

src/api/BillingAgreementsApi.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@
101101
var returnType = PtsV2ModifyBillingAgreementPost201Response;
102102

103103
//check isMLE for an api method 'this.billingAgreementsDeRegistration'
104-
var isMLESupportedByCybsForApi = true;
105-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'billingAgreementsDeRegistration');
104+
var inboundMLEStatus = 'false';
105+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'billingAgreementsDeRegistration');
106106

107107
if (isMLEForApi === true) {
108108
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {
@@ -173,8 +173,8 @@
173173
var returnType = PtsV2CreditsPost201Response1;
174174

175175
//check isMLE for an api method 'this.billingAgreementsIntimation'
176-
var isMLESupportedByCybsForApi = true;
177-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'billingAgreementsIntimation');
176+
var inboundMLEStatus = 'false';
177+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'billingAgreementsIntimation');
178178

179179
if (isMLEForApi === true) {
180180
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {
@@ -238,8 +238,8 @@
238238
var returnType = PtsV2CreateBillingAgreementPost201Response;
239239

240240
//check isMLE for an api method 'this.billingAgreementsRegistration'
241-
var isMLESupportedByCybsForApi = true;
242-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'billingAgreementsRegistration');
241+
var inboundMLEStatus = 'false';
242+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'billingAgreementsRegistration');
243243

244244
if (isMLEForApi === true) {
245245
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {

src/api/BinLookupApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@
9696
var returnType = InlineResponse2012;
9797

9898
//check isMLE for an api method 'this.getAccountInfo'
99-
var isMLESupportedByCybsForApi = false;
100-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'getAccountInfo');
99+
var inboundMLEStatus = 'false';
100+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'getAccountInfo');
101101

102102
if (isMLEForApi === true) {
103103
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {

src/api/CaptureApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@
101101
var returnType = PtsV2PaymentsCapturesPost201Response;
102102

103103
//check isMLE for an api method 'this.capturePayment'
104-
var isMLESupportedByCybsForApi = true;
105-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'capturePayment');
104+
var inboundMLEStatus = 'false';
105+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'capturePayment');
106106

107107
if (isMLEForApi === true) {
108108
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {

src/api/ChargebackDetailsApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
var returnType = ReportingV3ChargebackDetailsGet200Response;
106106

107107
//check isMLE for an api method 'this.getChargebackDetails'
108-
var isMLESupportedByCybsForApi = false;
109-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'getChargebackDetails');
108+
var inboundMLEStatus = 'false';
109+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'getChargebackDetails');
110110

111111
if (isMLEForApi === true) {
112112
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {

src/api/ChargebackSummariesApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
var returnType = ReportingV3ChargebackSummariesGet200Response;
106106

107107
//check isMLE for an api method 'this.getChargebackSummaries'
108-
var isMLESupportedByCybsForApi = false;
109-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'getChargebackSummaries');
108+
var inboundMLEStatus = 'false';
109+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'getChargebackSummaries');
110110

111111
if (isMLEForApi === true) {
112112
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {

src/api/ConversionDetailsApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
var returnType = ReportingV3ConversionDetailsGet200Response;
106106

107107
//check isMLE for an api method 'this.getConversionDetail'
108-
var isMLESupportedByCybsForApi = false;
109-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'getConversionDetail');
108+
var inboundMLEStatus = 'false';
109+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'getConversionDetail');
110110

111111
if (isMLEForApi === true) {
112112
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {

src/api/CreateNewWebhooksApi.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
var returnType = [InlineResponse2003];
9595

9696
//check isMLE for an api method 'this.findProductsToSubscribe'
97-
var isMLESupportedByCybsForApi = false;
98-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'findProductsToSubscribe');
97+
var inboundMLEStatus = 'false';
98+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'findProductsToSubscribe');
9999

100100
if (isMLEForApi === true) {
101101
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {
@@ -156,8 +156,8 @@
156156
var returnType = InlineResponse2015;
157157

158158
//check isMLE for an api method 'this.notificationSubscriptionsV2WebhooksPost'
159-
var isMLESupportedByCybsForApi = false;
160-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'notificationSubscriptionsV2WebhooksPost');
159+
var inboundMLEStatus = 'false';
160+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'notificationSubscriptionsV2WebhooksPost');
161161

162162
if (isMLEForApi === true) {
163163
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {
@@ -234,8 +234,8 @@
234234
var returnType = InlineResponse2014;
235235

236236
//check isMLE for an api method 'this.saveSymEgressKey'
237-
var isMLESupportedByCybsForApi = false;
238-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'saveSymEgressKey');
237+
var inboundMLEStatus = 'false';
238+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'saveSymEgressKey');
239239

240240
if (isMLEForApi === true) {
241241
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {

src/api/CreditApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
var returnType = PtsV2CreditsPost201Response;
9595

9696
//check isMLE for an api method 'this.createCredit'
97-
var isMLESupportedByCybsForApi = true;
98-
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, isMLESupportedByCybsForApi, 'createCredit');
97+
var inboundMLEStatus = 'false';
98+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'createCredit');
9999

100100
if (isMLEForApi === true) {
101101
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {

0 commit comments

Comments
 (0)