Skip to content

Commit 9920986

Browse files
moved disclaimer from script to template
1 parent 4c996a8 commit 9920986

Some content is hidden

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

58 files changed

+2
-143
lines changed

generator/cybersource-javascript-template/api.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
* @param {<&vendorExtensions.x-jsdoc-type>} opts.<paramName> <description><#defaultValue> (default to <.>)</defaultValue></required></allParams></hasOptionalParams><^usePromises>
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>
55-
* @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>
55+
* @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><#vendorExtensions.x-devcenter-metaData.SDK_ONLY_AddDisclaimer>
5656
*
57-
DISCLAIMER_PLACEHOLDER_<&vendorExtensions.x-devcenter-metaData.apiLifeCycle>
57+
* 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.</vendorExtensions.x-devcenter-metaData.SDK_ONLY_AddDisclaimer>
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: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ powershell -Command "(Get-Content ..\src\Api\SecureFileShareApi.js) | ForEach-Ob
1616

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

19-
for %%i in ("..\src\Api\*.js") do (
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'"
21-
)
22-
for %%i in ("..\src\Api\*.js") do (
23-
powershell -Command "(Get-Content '%%i') | Where-Object { $_ -notmatch 'DISCLAIMER_PLACEHOLDER_.*'} | Set-Content '%%i'"
24-
)
25-
2619
git checkout ..\README.md
2720

2821
git checkout ..\package.json

src/api/AsymmetricKeyManagementApi.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
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-
*
6766
*/
6867
this.createP12Keys = function(createP12KeysRequest, callback) {
6968
var postBody = createP12KeysRequest;
@@ -113,7 +112,6 @@
113112
* @param {module:model/DeleteBulkP12KeysRequest} deleteBulkP12KeysRequest
114113
* @param {module:api/AsymmetricKeyManagementApi~deleteBulkP12KeysCallback} callback The callback function, accepting three arguments: error, data, response
115114
* data is of type: {@link module:model/KmsV2KeysAsymDeletesPost200Response}
116-
*
117115
*/
118116
this.deleteBulkP12Keys = function(deleteBulkP12KeysRequest, callback) {
119117
var postBody = deleteBulkP12KeysRequest;
@@ -163,7 +161,6 @@
163161
* @param {String} keyId Key ID.
164162
* @param {module:api/AsymmetricKeyManagementApi~getP12KeyDetailsCallback} callback The callback function, accepting three arguments: error, data, response
165163
* data is of type: {@link module:model/KmsV2KeysAsymGet200Response}
166-
*
167164
*/
168165
this.getP12KeyDetails = function(keyId, callback) {
169166
var postBody = null;
@@ -214,7 +211,6 @@
214211
* @param {module:model/UpdateAsymKeysRequest} updateAsymKeysRequest
215212
* @param {module:api/AsymmetricKeyManagementApi~updateAsymKeyCallback} callback The callback function, accepting three arguments: error, data, response
216213
* data is of type: {@link Object}
217-
*
218214
*/
219215
this.updateAsymKey = function(keyId, updateAsymKeysRequest, callback) {
220216
var postBody = updateAsymKeysRequest;

src/api/BatchesApi.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
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-
*
6766
*/
6867
this.getBatchReport = function(batchId, callback) {
6968
var postBody = null;
@@ -113,7 +112,6 @@
113112
* @param {String} batchId Unique identification number assigned to the submitted request.
114113
* @param {module:api/BatchesApi~getBatchStatusCallback} callback The callback function, accepting three arguments: error, data, response
115114
* data is of type: {@link module:model/InlineResponse2006}
116-
*
117115
*/
118116
this.getBatchStatus = function(batchId, callback) {
119117
var postBody = null;
@@ -167,7 +165,6 @@
167165
* @param {String} opts.toDate ISO-8601 format: yyyyMMddTHHmmssZ
168166
* @param {module:api/BatchesApi~getBatchesListCallback} callback The callback function, accepting three arguments: error, data, response
169167
* data is of type: {@link module:model/InlineResponse2005}
170-
*
171168
*/
172169
this.getBatchesList = function(opts, callback) {
173170
opts = opts || {};
@@ -216,7 +213,6 @@
216213
* @param {module:model/Body} body
217214
* @param {module:api/BatchesApi~postBatchCallback} callback The callback function, accepting three arguments: error, data, response
218215
* data is of type: {@link module:model/InlineResponse202}
219-
*
220216
*/
221217
this.postBatch = function(body, callback) {
222218
var postBody = body;

src/api/BillingAgreementsApi.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
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-
*
6867
*/
6968
this.billingAgreementsDeRegistration = function(modifyBillingAgreement, id, callback) {
7069
var postBody = modifyBillingAgreement;
@@ -121,7 +120,6 @@
121120
* @param {String} id ID for intimation of Billing Agreement
122121
* @param {module:api/BillingAgreementsApi~billingAgreementsIntimationCallback} callback The callback function, accepting three arguments: error, data, response
123122
* data is of type: {@link module:model/PtsV2CreditsPost201Response1}
124-
*
125123
*/
126124
this.billingAgreementsIntimation = function(intimateBillingAgreement, id, callback) {
127125
var postBody = intimateBillingAgreement;
@@ -177,7 +175,6 @@
177175
* @param {module:model/CreateBillingAgreement} createBillingAgreement
178176
* @param {module:api/BillingAgreementsApi~billingAgreementsRegistrationCallback} callback The callback function, accepting three arguments: error, data, response
179177
* data is of type: {@link module:model/PtsV2CreditsPost201Response1}
180-
*
181178
*/
182179
this.billingAgreementsRegistration = function(createBillingAgreement, callback) {
183180
var postBody = createBillingAgreement;

src/api/CaptureApi.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
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-
*
6867
*/
6968
this.capturePayment = function(capturePaymentRequest, id, callback) {
7069
var postBody = capturePaymentRequest;

src/api/ChargebackDetailsApi.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
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-
*
7069
*/
7170
this.getChargebackDetails = function(startTime, endTime, opts, callback) {
7271
opts = opts || {};

src/api/ChargebackSummariesApi.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
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-
*
7069
*/
7170
this.getChargebackSummaries = function(startTime, endTime, opts, callback) {
7271
opts = opts || {};

src/api/ConversionDetailsApi.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
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-
*
7069
*/
7170
this.getConversionDetail = function(startTime, endTime, opts, callback) {
7271
opts = opts || {};

src/api/CreditApi.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
* @param {module:model/CreateCreditRequest} createCreditRequest
6464
* @param {module:api/CreditApi~createCreditCallback} callback The callback function, accepting three arguments: error, data, response
6565
* data is of type: {@link module:model/PtsV2CreditsPost201Response}
66-
*
6766
*/
6867
this.createCredit = function(createCreditRequest, callback) {
6968
var postBody = createCreditRequest;

0 commit comments

Comments
 (0)