Skip to content

Commit ac718ce

Browse files
adding disclaimer in beta apis
1 parent 80157d2 commit ac718ce

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

+155
-10
lines changed

generator/cybersource-javascript-template/api.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +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>
5658
*/
5759
</emitJSDoc> this.<operationId><#usePromises>WithHttpInfo</usePromises> = function(<vendorExtensions.x-codegen-argList>) {<#hasOptionalParams>
5860
opts = opts || {};</hasOptionalParams>

generator/cybersource_node_sdk_gen.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ 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 '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'"
21+
)
22+
for %%i in ("..\src\Api\*.js") do (
23+
powershell -Command "(Get-Content '%%i') | Where-Object { $_ -notmatch 'DESCRIPTION_PLACEHOLDER_.*'} | Set-Content '%%i'"
24+
)
25+
1926
git checkout ..\README.md
2027

2128
git checkout ..\package.json

src/api/AsymmetricKeyManagementApi.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +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+
*
6667
*/
6768
this.createP12Keys = function(createP12KeysRequest, callback) {
6869
var postBody = createP12KeysRequest;
@@ -112,6 +113,7 @@
112113
* @param {module:model/DeleteBulkP12KeysRequest} deleteBulkP12KeysRequest
113114
* @param {module:api/AsymmetricKeyManagementApi~deleteBulkP12KeysCallback} callback The callback function, accepting three arguments: error, data, response
114115
* data is of type: {@link module:model/KmsV2KeysAsymDeletesPost200Response}
116+
*
115117
*/
116118
this.deleteBulkP12Keys = function(deleteBulkP12KeysRequest, callback) {
117119
var postBody = deleteBulkP12KeysRequest;
@@ -161,6 +163,7 @@
161163
* @param {String} keyId Key ID.
162164
* @param {module:api/AsymmetricKeyManagementApi~getP12KeyDetailsCallback} callback The callback function, accepting three arguments: error, data, response
163165
* data is of type: {@link module:model/KmsV2KeysAsymGet200Response}
166+
*
164167
*/
165168
this.getP12KeyDetails = function(keyId, callback) {
166169
var postBody = null;
@@ -211,6 +214,7 @@
211214
* @param {module:model/UpdateAsymKeysRequest} updateAsymKeysRequest
212215
* @param {module:api/AsymmetricKeyManagementApi~updateAsymKeyCallback} callback The callback function, accepting three arguments: error, data, response
213216
* data is of type: {@link Object}
217+
*
214218
*/
215219
this.updateAsymKey = function(keyId, updateAsymKeysRequest, callback) {
216220
var postBody = updateAsymKeysRequest;

src/api/BatchesApi.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +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+
*
6667
*/
6768
this.getBatchReport = function(batchId, callback) {
6869
var postBody = null;
@@ -112,6 +113,7 @@
112113
* @param {String} batchId Unique identification number assigned to the submitted request.
113114
* @param {module:api/BatchesApi~getBatchStatusCallback} callback The callback function, accepting three arguments: error, data, response
114115
* data is of type: {@link module:model/InlineResponse2006}
116+
*
115117
*/
116118
this.getBatchStatus = function(batchId, callback) {
117119
var postBody = null;
@@ -165,6 +167,7 @@
165167
* @param {String} opts.toDate ISO-8601 format: yyyyMMddTHHmmssZ
166168
* @param {module:api/BatchesApi~getBatchesListCallback} callback The callback function, accepting three arguments: error, data, response
167169
* data is of type: {@link module:model/InlineResponse2005}
170+
*
168171
*/
169172
this.getBatchesList = function(opts, callback) {
170173
opts = opts || {};
@@ -213,6 +216,7 @@
213216
* @param {module:model/Body} body
214217
* @param {module:api/BatchesApi~postBatchCallback} callback The callback function, accepting three arguments: error, data, response
215218
* data is of type: {@link module:model/InlineResponse202}
219+
*
216220
*/
217221
this.postBatch = function(body, callback) {
218222
var postBody = body;

src/api/BillingAgreementsApi.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +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+
*
6768
*/
6869
this.billingAgreementsDeRegistration = function(modifyBillingAgreement, id, callback) {
6970
var postBody = modifyBillingAgreement;
@@ -120,6 +121,7 @@
120121
* @param {String} id ID for intimation of Billing Agreement
121122
* @param {module:api/BillingAgreementsApi~billingAgreementsIntimationCallback} callback The callback function, accepting three arguments: error, data, response
122123
* data is of type: {@link module:model/PtsV2CreditsPost201Response1}
124+
*
123125
*/
124126
this.billingAgreementsIntimation = function(intimateBillingAgreement, id, callback) {
125127
var postBody = intimateBillingAgreement;
@@ -175,6 +177,7 @@
175177
* @param {module:model/CreateBillingAgreement} createBillingAgreement
176178
* @param {module:api/BillingAgreementsApi~billingAgreementsRegistrationCallback} callback The callback function, accepting three arguments: error, data, response
177179
* data is of type: {@link module:model/PtsV2CreditsPost201Response1}
180+
*
178181
*/
179182
this.billingAgreementsRegistration = function(createBillingAgreement, callback) {
180183
var postBody = createBillingAgreement;

src/api/CaptureApi.js

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

src/api/ChargebackDetailsApi.js

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

src/api/ChargebackSummariesApi.js

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

src/api/ConversionDetailsApi.js

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

0 commit comments

Comments
 (0)