Skip to content

Commit c47c911

Browse files
committed
Changes for next release
1 parent 84b8d45 commit c47c911

9 files changed

+70
-7
lines changed

docs/MitVoidRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**clientReferenceInformation** | [**Ptsv2paymentsClientReferenceInformation**](Ptsv2paymentsClientReferenceInformation.md) | | [optional]
77
**paymentInformation** | [**Ptsv2paymentsidvoidsPaymentInformation**](Ptsv2paymentsidvoidsPaymentInformation.md) | | [optional]
8+
**orderInformation** | [**Ptsv2paymentsidvoidsOrderInformation**](Ptsv2paymentsidvoidsOrderInformation.md) | | [optional]
89

910

docs/PtsV2PaymentsRefundPost201ResponseProcessorInformation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
99
**merchantNumber** | **String** | Identifier that was assigned to you by your acquirer. This value must be printed on the receipt. #### Returned by Authorizations and Credits. This reply field is only supported by merchants who have installed client software on their POS terminals and use these processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX | [optional]
1010
**responseCode** | **String** | For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. **Important** Do not use this field to evaluate the result of the authorization. #### PIN debit Response value that is returned by the processor or bank. **Important** Do not use this field to evaluate the results of the transaction request. Returned by PIN debit credit, PIN debit purchase, and PIN debit reversal. #### AIBMS If this value is `08`, you can accept the transaction if the customer provides you with identification. #### Atos This value is the response code sent from Atos and it might also include the response code from the bank. Format: `aa,bb` with the two values separated by a comma and where: - `aa` is the two-digit error message from Atos. - `bb` is the optional two-digit error message from the bank. #### Comercio Latino This value is the status code and the error or response code received from the processor separated by a colon. Format: [status code]:E[error code] or [status code]:R[response code] Example `2:R06` #### JCN Gateway Processor-defined detail error code. The associated response category code is in the `processorInformation.responseCategoryCode` field. String (3) | [optional]
1111
**achVerification** | [**PtsV2PaymentsPost201ResponseProcessorInformationAchVerification**](PtsV2PaymentsPost201ResponseProcessorInformationAchVerification.md) | | [optional]
12+
**networkTransactionId** | **String** | Same value as `processorInformation.transactionId` | [optional]
1213

1314

docs/SecureFileShareApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ No authorization required
5555

5656
### HTTP request headers
5757

58-
- **Content-Type**: */*;charset=utf-8
58+
- **Content-Type**: *_/_*;charset=utf-8
5959
- **Accept**: application/xml, text/csv, application/pdf
6060

6161
<a name="getFileDetail"></a>
@@ -110,6 +110,6 @@ No authorization required
110110

111111
### HTTP request headers
112112

113-
- **Content-Type**: */*;charset=utf-8
113+
- **Content-Type**: *_/_*;charset=utf-8
114114
- **Accept**: application/hal+json
115115

generator/cybersource-rest-spec.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14468,6 +14468,10 @@
1446814468
"description": "Raw results from the ACH verification service.\nFor details about this service and the possible values for the raw results, see \"ACH Verification\" and \"Verification Codes\" in the [Electronic Check Services Using the SCMP API](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/).\n"
1446914469
}
1447014470
}
14471+
},
14472+
"networkTransactionId": {
14473+
"type": "string",
14474+
"description": "Same value as `processorInformation.transactionId`"
1447114475
}
1447214476
}
1447314477
},
@@ -16865,6 +16869,10 @@
1686516869
"description": "Raw results from the ACH verification service.\nFor details about this service and the possible values for the raw results, see \"ACH Verification\" and \"Verification Codes\" in the [Electronic Check Services Using the SCMP API](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/).\n"
1686616870
}
1686716871
}
16872+
},
16873+
"networkTransactionId": {
16874+
"type": "string",
16875+
"description": "Same value as `processorInformation.transactionId`"
1686816876
}
1686916877
}
1687016878
},
@@ -19551,6 +19559,10 @@
1955119559
"description": "Raw results from the ACH verification service.\nFor details about this service and the possible values for the raw results, see \"ACH Verification\" and \"Verification Codes\" in the [Electronic Check Services Using the SCMP API](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/).\n"
1955219560
}
1955319561
}
19562+
},
19563+
"networkTransactionId": {
19564+
"type": "string",
19565+
"description": "Same value as `processorInformation.transactionId`"
1955419566
}
1955519567
}
1955619568
},
@@ -21521,6 +21533,26 @@
2152121533
}
2152221534
}
2152321535
}
21536+
},
21537+
"orderInformation": {
21538+
"type": "object",
21539+
"properties": {
21540+
"amountDetails": {
21541+
"type": "object",
21542+
"properties": {
21543+
"totalAmount": {
21544+
"type": "string",
21545+
"maxLength": 19,
21546+
"description": "Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters.\nCyberSource truncates the amount to the correct number of decimal places.\n\n**Note** For CTV, FDCCompass, Paymentech processors, the maximum length for this field is 12.\n\n**Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. For details, see:\n- \"Authorization Information for Specific Processors\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/).\n- \"Capture Information for Specific Processors\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/).\n- \"Credit Information for Specific Processors\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/).\n\nIf your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. For details, see \"Zero Amount Authorizations,\" \"Credit Information for Specific Processors\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n\n#### Card Present\nRequired to include either this field or `orderInformation.lineItems[].unitPrice` for the order.\n\n#### Invoicing\nRequired for creating a new invoice.\n\n#### PIN Debit\nAmount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount.\n\nRequired field for PIN Debit purchase and PIN Debit credit requests.\nOptional field for PIN Debit reversal requests.\n\n#### GPX\nThis field is optional for reversing an authorization or credit; however, for all other processors, these fields are required.\n\n#### DCC with a Third-Party Provider\nSet this field to the converted amount that was returned by the DCC provider. You must include either this field or the 1st line item in the order and the specific line-order amount in your request. For details, see `grand_total_amount` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).\n\n#### FDMS South\nIf you accept IDR or CLP currencies, see the entry for FDMS South in \"Authorization Information for Specific Processors\" of the [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n\n#### DCC for First Data\nNot used.\n"
21547+
},
21548+
"currency": {
21549+
"type": "string",
21550+
"maxLength": 3,
21551+
"description": "Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\n#### Used by\n**Authorization**\nRequired field.\n\n**Authorization Reversal**\nFor an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request.\n\n#### PIN Debit\nCurrency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf).\nReturned by PIN debit purchase.\n\nFor PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing.\nFor the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf).\n\nRequired field for PIN Debit purchase and PIN Debit credit requests.\nOptional field for PIN Debit reversal requests.\n\n#### GPX\nThis field is optional for reversing an authorization or credit.\n\n#### DCC for First Data\nYour local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).\n\n#### Tax Calculation\nRequired for international tax and value added tax only.\nOptional for U.S. and Canadian taxes.\nYour local currency.\n"
21552+
}
21553+
}
21554+
}
21555+
}
2152421556
}
2152521557
},
2152621558
"example": {

generator/cybersource_node_sdk_gen.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ REM Command to generate SDK
1212

1313
java -jar swagger-codegen-cli-2.3.0.jar generate -t cybersource-javascript-template -i cybersource-rest-spec.json -l javascript -o ../ -c cybersource-node-config.json
1414

15-
powershell -Command "(Get-Content ..\src\Api\SecureFileShareApi.js) | ForEach-Object { $_ -replace 'contentTypes = \[''application/json;charset=utf-8', 'contentTypes = [''*/*' } | Set-Content ..\src\Api\SecureFileShareApi.js"
15+
powershell -Command "(Get-Content ..\src\Api\SecureFileShareApi.js) | ForEach-Object { $_ -replace 'contentTypes = \[''\*_\/_\*;charset=utf-8', 'contentTypes = [''*/*;charset=utf-8' } | Set-Content ..\src\Api\SecureFileShareApi.js"
1616

1717
git checkout ..\README.md
1818

src/model/MitVoidRequest.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
(function(root, factory) {
1717
if (typeof define === 'function' && define.amd) {
1818
// AMD. Register as an anonymous module.
19-
define(['ApiClient', 'model/Ptsv2paymentsClientReferenceInformation', 'model/Ptsv2paymentsidvoidsPaymentInformation'], factory);
19+
define(['ApiClient', 'model/Ptsv2paymentsClientReferenceInformation', 'model/Ptsv2paymentsidvoidsOrderInformation', 'model/Ptsv2paymentsidvoidsPaymentInformation'], factory);
2020
} else if (typeof module === 'object' && module.exports) {
2121
// CommonJS-like environments that support module.exports, like Node.
22-
module.exports = factory(require('../ApiClient'), require('./Ptsv2paymentsClientReferenceInformation'), require('./Ptsv2paymentsidvoidsPaymentInformation'));
22+
module.exports = factory(require('../ApiClient'), require('./Ptsv2paymentsClientReferenceInformation'), require('./Ptsv2paymentsidvoidsOrderInformation'), require('./Ptsv2paymentsidvoidsPaymentInformation'));
2323
} else {
2424
// Browser globals (root is window)
2525
if (!root.CyberSource) {
2626
root.CyberSource = {};
2727
}
28-
root.CyberSource.MitVoidRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2paymentsClientReferenceInformation, root.CyberSource.Ptsv2paymentsidvoidsPaymentInformation);
28+
root.CyberSource.MitVoidRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2paymentsClientReferenceInformation, root.CyberSource.Ptsv2paymentsidvoidsOrderInformation, root.CyberSource.Ptsv2paymentsidvoidsPaymentInformation);
2929
}
30-
}(this, function(ApiClient, Ptsv2paymentsClientReferenceInformation, Ptsv2paymentsidvoidsPaymentInformation) {
30+
}(this, function(ApiClient, Ptsv2paymentsClientReferenceInformation, Ptsv2paymentsidvoidsOrderInformation, Ptsv2paymentsidvoidsPaymentInformation) {
3131
'use strict';
3232

3333

@@ -49,6 +49,7 @@
4949

5050

5151

52+
5253
};
5354

5455
/**
@@ -68,6 +69,9 @@
6869
if (data.hasOwnProperty('paymentInformation')) {
6970
obj['paymentInformation'] = Ptsv2paymentsidvoidsPaymentInformation.constructFromObject(data['paymentInformation']);
7071
}
72+
if (data.hasOwnProperty('orderInformation')) {
73+
obj['orderInformation'] = Ptsv2paymentsidvoidsOrderInformation.constructFromObject(data['orderInformation']);
74+
}
7175
}
7276
return obj;
7377
}
@@ -80,6 +84,10 @@
8084
* @member {module:model/Ptsv2paymentsidvoidsPaymentInformation} paymentInformation
8185
*/
8286
exports.prototype['paymentInformation'] = undefined;
87+
/**
88+
* @member {module:model/Ptsv2paymentsidvoidsOrderInformation} orderInformation
89+
*/
90+
exports.prototype['orderInformation'] = undefined;
8391

8492

8593

src/model/PtsV2PaymentsRefundPost201ResponseProcessorInformation.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353

5454

5555

56+
5657
};
5758

5859
/**
@@ -84,6 +85,9 @@
8485
if (data.hasOwnProperty('achVerification')) {
8586
obj['achVerification'] = PtsV2PaymentsPost201ResponseProcessorInformationAchVerification.constructFromObject(data['achVerification']);
8687
}
88+
if (data.hasOwnProperty('networkTransactionId')) {
89+
obj['networkTransactionId'] = ApiClient.convertToType(data['networkTransactionId'], 'String');
90+
}
8791
}
8892
return obj;
8993
}
@@ -117,6 +121,11 @@
117121
* @member {module:model/PtsV2PaymentsPost201ResponseProcessorInformationAchVerification} achVerification
118122
*/
119123
exports.prototype['achVerification'] = undefined;
124+
/**
125+
* Same value as `processorInformation.transactionId`
126+
* @member {String} networkTransactionId
127+
*/
128+
exports.prototype['networkTransactionId'] = undefined;
120129

121130

122131

test/model/MitVoidRequest.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@
6868
//expect(instance).to.be();
6969
});
7070

71+
it('should have the property orderInformation (base name: "orderInformation")', function() {
72+
// uncomment below and update the code to test the property orderInformation
73+
//var instane = new CyberSource.MitVoidRequest();
74+
//expect(instance).to.be();
75+
});
76+
7177
});
7278

7379
}));

test/model/PtsV2PaymentsRefundPost201ResponseProcessorInformation.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@
9292
//expect(instance).to.be();
9393
});
9494

95+
it('should have the property networkTransactionId (base name: "networkTransactionId")', function() {
96+
// uncomment below and update the code to test the property networkTransactionId
97+
//var instane = new CyberSource.PtsV2PaymentsRefundPost201ResponseProcessorInformation();
98+
//expect(instance).to.be();
99+
});
100+
95101
});
96102

97103
}));

0 commit comments

Comments
 (0)