Skip to content

Commit 647610f

Browse files
committed
Fixed mustache file
1 parent 3e26ca8 commit 647610f

File tree

1 file changed

+43
-10
lines changed

1 file changed

+43
-10
lines changed

generator/cybersource-javascript-template/index.mustache

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
(function(factory) {
33
if (typeof define === 'function' && define.amd) {
44
// AMD. Register as an anonymous module.
5-
define(['{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}ApiClient'{{#models}}, '{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}{{#modelPackage}}{{modelPackage}}/{{/modelPackage}}{{importPath}}'{{/models}}{{#apiInfo}}{{#apis}}, '{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}{{#apiPackage}}{{apiPackage}}/{{/apiPackage}}{{importPath}}'{{/apis}}{{/apiInfo}}], factory);
5+
define(['{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}ApiClient'{{#models}}, '{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}{{#modelPackage}}{{modelPackage}}/{{/modelPackage}}{{importPath}}'{{/models}}, 'model/AccessTokenResponse', 'model/BadRequestError', 'model/CreateAccessTokenRequest', 'model/ResourceNotFoundError', 'model/UnauthorizedClientError'{{#apiInfo}}{{#apis}}, '{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}{{#apiPackage}}{{apiPackage}}/{{/apiPackage}}{{importPath}}'{{/apis}}{{/apiInfo}}, 'api/OAuthApi'], factory);
66
} else if (typeof module === 'object' && module.exports) {
77
// CommonJS-like environments that support module.exports, like Node.
8-
module.exports = factory(require('./ApiClient'){{#models}}, require('./{{#modelPackage}}{{modelPackage}}/{{/modelPackage}}{{importPath}}'){{/models}}{{#apiInfo}}{{#apis}}, require('./{{#apiPackage}}{{apiPackage}}/{{/apiPackage}}{{importPath}}'){{/apis}}{{/apiInfo}});
8+
module.exports = factory(require('./ApiClient'){{#models}}, require('./{{#modelPackage}}{{modelPackage}}/{{/modelPackage}}{{importPath}}'){{/models}}, require('./model/AccessTokenResponse'), require('./model/BadRequestError'), require('./model/CreateAccessTokenRequest'), require('./model/ResourceNotFoundError'), require('./model/UnauthorizedClientError'){{#apiInfo}}{{#apis}}, require('./{{#apiPackage}}{{apiPackage}}/{{/apiPackage}}{{importPath}}'){{/apis}}{{/apiInfo}}, require('./api/OAuthApi'));
99
}
10-
}(function(ApiClient{{#models}}{{#model}}, {{classFilename}}{{/model}}{{/models}}{{#apiInfo}}{{#apis}}, {{importPath}}{{/apis}}{{/apiInfo}}) {
10+
}(function(ApiClient{{#models}}{{#model}}, {{classFilename}}{{/model}}{{/models}}, AccessTokenResponse, BadRequestError, CreateAccessTokenRequest, ResourceNotFoundError, UnauthorizedClientError{{#apiInfo}}{{#apis}}, {{importPath}}{{/apis}}{{/apiInfo}}, OAuthApi) {
1111
'use strict';
1212
1313
{{#emitJSDoc}} /**{{#projectDescription}}
@@ -51,20 +51,53 @@
5151
* The <importPath> model constructor.
5252
* @property {module:<#invokerPackage><invokerPackage>/</invokerPackage><#modelPackage><modelPackage>/</modelPackage><importPath>}
5353
*/</emitJSDoc>
54-
<importPath>: <importPath></models><#apiInfo><#apis>,<#emitJSDoc>
54+
<importPath>: <importPath></models>,
55+
/**
56+
* The AccessTokenResponse model constructor.
57+
* @property {module:model/AccessTokenResponse}
58+
*/
59+
AccessTokenResponse: AccessTokenResponse,
60+
/**
61+
* The BadRequestError model constructor.
62+
* @property {module:model/BadRequestError}
63+
*/
64+
BadRequestError: BadRequestError,
65+
/**
66+
* The CreateAccessTokenRequest model constructor.
67+
* @property {module:model/CreateAccessTokenRequest}
68+
*/
69+
CreateAccessTokenRequest: CreateAccessTokenRequest,
70+
/**
71+
* The ResourceNotFoundError model constructor.
72+
* @property {module:model/ResourceNotFoundError}
73+
*/
74+
ResourceNotFoundError: ResourceNotFoundError,
75+
/**
76+
* The UnauthorizedClientError model constructor.
77+
* @property {module:model/UnauthorizedClientError}
78+
*/
79+
UnauthorizedClientError: UnauthorizedClientError<#apiInfo><#apis>,<#emitJSDoc>
5580
/**
5681
* The <importPath> service constructor.
5782
* @property {module:<#invokerPackage><invokerPackage>/</invokerPackage><#apiPackage><apiPackage>/</apiPackage><importPath>}
5883
*/</emitJSDoc>
59-
<importPath>: <importPath></apis></apiInfo>
84+
<importPath>: <importPath></apis></apiInfo>,
85+
/**
86+
* The OAuthApi service constructor.
87+
* @property {module:api/OAuthApi}
88+
*/
89+
OAuthApi: OAuthApi
6090
};
6191

6292
exports.TokenVerification = require('./utilities/flex/TokenVerification.js');
63-
exports.Authorization = require('./authentication/core/Authorization.js'),
64-
exports.MerchantConfig = require('./authentication/core/MerchantConfig.js'),
65-
exports.Logger = require('./authentication/logging/Logger.js'),
66-
exports.Constants = require('./authentication/util/Constants.js'),
67-
exports.PayloadDigest = require('./authentication/payloadDigest/DigestGenerator.js')
93+
exports.Authorization = require('./authentication/core/Authorization.js');
94+
exports.MerchantConfig = require('./authentication/core/MerchantConfig.js');
95+
exports.Logger = require('./authentication/logging/Logger.js');
96+
exports.Constants = require('./authentication/util/Constants.js');
97+
exports.PayloadDigest = require('./authentication/payloadDigest/DigestGenerator.js');
98+
exports.LogConfiguration = require('./authentication/logging/LogConfiguration.js');
99+
exports.SensitiveDataTags = require('./authentication/logging/SensitiveDataTags.js');
100+
exports.SensitiveDataMasker = require('./authentication/logging/SensitiveDataMasker.js');
68101

69102
return exports;<={{ }}=>
70103
}));

0 commit comments

Comments
 (0)