Skip to content

Commit 4c996a8

Browse files
added generated code
1 parent ac718ce commit 4c996a8

Some content is hidden

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

61 files changed

+149
-149
lines changed

generator/cybersource-javascript-template/api.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
* @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>~<operationId>Callback} callback The callback function, accepting three arguments: error, data, response<#returnType>
5454
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises><#usePromises>
5555
* @return {Promise} a {@link https://www.promisejs.org/|Promise}<#returnType>, with an object containing data of type {@link <&vendorExtensions.x-jsdoc-type>} and HTTP response</returnType><^returnType>, with an object containing HTTP response</returnType></usePromises>
56-
*
57-
* DESCRIPTION_PLACEHOLDER_<&vendorExtensions.x-devcenter-metaData.apiLifeCycle>
56+
*
57+
DISCLAIMER_PLACEHOLDER_<&vendorExtensions.x-devcenter-metaData.apiLifeCycle>
5858
*/
5959
</emitJSDoc> this.<operationId><#usePromises>WithHttpInfo</usePromises> = function(<vendorExtensions.x-codegen-argList>) {<#hasOptionalParams>
6060
opts = opts || {};</hasOptionalParams>

generator/cybersource_node_sdk_gen.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ powershell -Command "(Get-Content ..\src\Api\SecureFileShareApi.js) | ForEach-Ob
1717
powershell -Command "(Get-Content ..\docs\SecureFileShareApi.md) | ForEach-Object { $_ -replace '\*\*Content-Type\*\*: \*_\/_\*;charset=utf-8', '**Content-Type**: */*;charset=utf-8' } | Set-Content ..\docs\SecureFileShareApi.md"
1818

1919
for %%i in ("..\src\Api\*.js") do (
20-
powershell -Command "(Get-Content '%%i') -replace 'DESCRIPTION_PLACEHOLDER_beta', 'DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested (\"Beta Product\") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a \"Beta Evaluation\"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer''s participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period (\"Beta Product Form\"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer''s use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided \"AS IS\" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.' | Set-Content '%%i'"
20+
powershell -Command "(Get-Content '%%i') -replace 'DISCLAIMER_PLACEHOLDER_beta', '* DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested (\"Beta Product\") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a \"Beta Evaluation\"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer''s participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period (\"Beta Product Form\"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer''s use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided \"AS IS\" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.' | Set-Content '%%i'"
2121
)
2222
for %%i in ("..\src\Api\*.js") do (
23-
powershell -Command "(Get-Content '%%i') | Where-Object { $_ -notmatch 'DESCRIPTION_PLACEHOLDER_.*'} | Set-Content '%%i'"
23+
powershell -Command "(Get-Content '%%i') | Where-Object { $_ -notmatch 'DISCLAIMER_PLACEHOLDER_.*'} | Set-Content '%%i'"
2424
)
2525

2626
git checkout ..\README.md

src/api/AsymmetricKeyManagementApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
* @param {module:model/CreateP12KeysRequest} createP12KeysRequest
6464
* @param {module:api/AsymmetricKeyManagementApi~createP12KeysCallback} callback The callback function, accepting three arguments: error, data, response
6565
* data is of type: {@link module:model/KmsV2KeysAsymPost201Response}
66-
*
66+
*
6767
*/
6868
this.createP12Keys = function(createP12KeysRequest, callback) {
6969
var postBody = createP12KeysRequest;
@@ -113,7 +113,7 @@
113113
* @param {module:model/DeleteBulkP12KeysRequest} deleteBulkP12KeysRequest
114114
* @param {module:api/AsymmetricKeyManagementApi~deleteBulkP12KeysCallback} callback The callback function, accepting three arguments: error, data, response
115115
* data is of type: {@link module:model/KmsV2KeysAsymDeletesPost200Response}
116-
*
116+
*
117117
*/
118118
this.deleteBulkP12Keys = function(deleteBulkP12KeysRequest, callback) {
119119
var postBody = deleteBulkP12KeysRequest;
@@ -163,7 +163,7 @@
163163
* @param {String} keyId Key ID.
164164
* @param {module:api/AsymmetricKeyManagementApi~getP12KeyDetailsCallback} callback The callback function, accepting three arguments: error, data, response
165165
* data is of type: {@link module:model/KmsV2KeysAsymGet200Response}
166-
*
166+
*
167167
*/
168168
this.getP12KeyDetails = function(keyId, callback) {
169169
var postBody = null;
@@ -214,7 +214,7 @@
214214
* @param {module:model/UpdateAsymKeysRequest} updateAsymKeysRequest
215215
* @param {module:api/AsymmetricKeyManagementApi~updateAsymKeyCallback} callback The callback function, accepting three arguments: error, data, response
216216
* data is of type: {@link Object}
217-
*
217+
*
218218
*/
219219
this.updateAsymKey = function(keyId, updateAsymKeysRequest, callback) {
220220
var postBody = updateAsymKeysRequest;

src/api/BatchesApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
* @param {String} batchId Unique identification number assigned to the submitted request.
6464
* @param {module:api/BatchesApi~getBatchReportCallback} callback The callback function, accepting three arguments: error, data, response
6565
* data is of type: {@link module:model/InlineResponse2007}
66-
*
66+
*
6767
*/
6868
this.getBatchReport = function(batchId, callback) {
6969
var postBody = null;
@@ -113,7 +113,7 @@
113113
* @param {String} batchId Unique identification number assigned to the submitted request.
114114
* @param {module:api/BatchesApi~getBatchStatusCallback} callback The callback function, accepting three arguments: error, data, response
115115
* data is of type: {@link module:model/InlineResponse2006}
116-
*
116+
*
117117
*/
118118
this.getBatchStatus = function(batchId, callback) {
119119
var postBody = null;
@@ -167,7 +167,7 @@
167167
* @param {String} opts.toDate ISO-8601 format: yyyyMMddTHHmmssZ
168168
* @param {module:api/BatchesApi~getBatchesListCallback} callback The callback function, accepting three arguments: error, data, response
169169
* data is of type: {@link module:model/InlineResponse2005}
170-
*
170+
*
171171
*/
172172
this.getBatchesList = function(opts, callback) {
173173
opts = opts || {};
@@ -216,7 +216,7 @@
216216
* @param {module:model/Body} body
217217
* @param {module:api/BatchesApi~postBatchCallback} callback The callback function, accepting three arguments: error, data, response
218218
* data is of type: {@link module:model/InlineResponse202}
219-
*
219+
*
220220
*/
221221
this.postBatch = function(body, callback) {
222222
var postBody = body;

src/api/BillingAgreementsApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
* @param {String} id ID for de-registration or cancellation of Billing Agreement
6565
* @param {module:api/BillingAgreementsApi~billingAgreementsDeRegistrationCallback} callback The callback function, accepting three arguments: error, data, response
6666
* data is of type: {@link module:model/PtsV2CreditsPost201Response1}
67-
*
67+
*
6868
*/
6969
this.billingAgreementsDeRegistration = function(modifyBillingAgreement, id, callback) {
7070
var postBody = modifyBillingAgreement;
@@ -121,7 +121,7 @@
121121
* @param {String} id ID for intimation of Billing Agreement
122122
* @param {module:api/BillingAgreementsApi~billingAgreementsIntimationCallback} callback The callback function, accepting three arguments: error, data, response
123123
* data is of type: {@link module:model/PtsV2CreditsPost201Response1}
124-
*
124+
*
125125
*/
126126
this.billingAgreementsIntimation = function(intimateBillingAgreement, id, callback) {
127127
var postBody = intimateBillingAgreement;
@@ -177,7 +177,7 @@
177177
* @param {module:model/CreateBillingAgreement} createBillingAgreement
178178
* @param {module:api/BillingAgreementsApi~billingAgreementsRegistrationCallback} callback The callback function, accepting three arguments: error, data, response
179179
* data is of type: {@link module:model/PtsV2CreditsPost201Response1}
180-
*
180+
*
181181
*/
182182
this.billingAgreementsRegistration = function(createBillingAgreement, callback) {
183183
var postBody = createBillingAgreement;

src/api/CaptureApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
* @param {String} id The payment ID returned from a previous payment request. This ID links the capture to the payment.
6565
* @param {module:api/CaptureApi~capturePaymentCallback} callback The callback function, accepting three arguments: error, data, response
6666
* data is of type: {@link module:model/PtsV2PaymentsCapturesPost201Response}
67-
*
67+
*
6868
*/
6969
this.capturePayment = function(capturePaymentRequest, id, callback) {
7070
var postBody = capturePaymentRequest;

src/api/ChargebackDetailsApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* @param {String} opts.organizationId Valid Organization Id
6767
* @param {module:api/ChargebackDetailsApi~getChargebackDetailsCallback} callback The callback function, accepting three arguments: error, data, response
6868
* data is of type: {@link module:model/ReportingV3ChargebackDetailsGet200Response}
69-
*
69+
*
7070
*/
7171
this.getChargebackDetails = function(startTime, endTime, opts, callback) {
7272
opts = opts || {};

src/api/ChargebackSummariesApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* @param {String} opts.organizationId Valid Organization Id
6767
* @param {module:api/ChargebackSummariesApi~getChargebackSummariesCallback} callback The callback function, accepting three arguments: error, data, response
6868
* data is of type: {@link module:model/ReportingV3ChargebackSummariesGet200Response}
69-
*
69+
*
7070
*/
7171
this.getChargebackSummaries = function(startTime, endTime, opts, callback) {
7272
opts = opts || {};

src/api/ConversionDetailsApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* @param {String} opts.organizationId Valid Organization Id
6767
* @param {module:api/ConversionDetailsApi~getConversionDetailCallback} callback The callback function, accepting three arguments: error, data, response
6868
* data is of type: {@link module:model/ReportingV3ConversionDetailsGet200Response}
69-
*
69+
*
7070
*/
7171
this.getConversionDetail = function(startTime, endTime, opts, callback) {
7272
opts = opts || {};

src/api/CreateNewWebhooksApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
* @param {module:model/CreateWebhook} opts.createWebhook The webhook payload
6565
* @param {module:api/CreateNewWebhooksApi~createWebhookCallback} callback The callback function, accepting three arguments: error, data, response
6666
* data is of type: {@link module:model/InlineResponse2013}
67-
*
67+
*
6868
* DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
6969
*/
7070
this.createWebhook = function(opts, callback) {
@@ -111,7 +111,7 @@
111111
* @param {String} organizationId The Organization Identifier.
112112
* @param {module:api/CreateNewWebhooksApi~findProductToSubscribeCallback} callback The callback function, accepting three arguments: error, data, response
113113
* data is of type: {@link Array.<module:model/InlineResponse2003>}
114-
*
114+
*
115115
* DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
116116
*/
117117
this.findProductToSubscribe = function(organizationId, callback) {
@@ -166,7 +166,7 @@
166166
* @param {module:model/SaveSymEgressKey} opts.saveSymEgressKey Provide egress Symmetric key information to save (create or store or refresh)
167167
* @param {module:api/CreateNewWebhooksApi~saveSymEgressKeyCallback} callback The callback function, accepting three arguments: error, data, response
168168
* data is of type: {@link module:model/InlineResponse2012}
169-
*
169+
*
170170
* DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
171171
*/
172172
this.saveSymEgressKey = function(vCSenderOrganizationId, vCPermissions, opts, callback) {

0 commit comments

Comments
 (0)