cybersource-rest-client 0.0.56 → 0.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/InvoicesApi.md +2 -2
- package/docs/InvoicingV2InvoicesAllGet200ResponseInvoices.md +1 -1
- package/docs/InvoicingV2InvoicesGet200Response.md +1 -1
- package/docs/InvoicingV2InvoicesPost201Response.md +1 -1
- package/docs/InvoicingV2InvoicesPost202Response.md +1 -1
- package/docs/Ptsv2paymentreferencesPaymentInformationCard.md +1 -1
- package/docs/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthentication.md +1 -0
- package/docs/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation.md +8 -0
- package/docs/Ptsv2paymentsPaymentInformationCard.md +1 -1
- package/docs/Ptsv2paymentsPointOfSaleInformationEmv.md +1 -1
- package/docs/Ptsv2paymentsidrefundsPaymentInformationCard.md +1 -1
- package/docs/RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.md +1 -0
- package/docs/TransientTokenDataApi.md +5 -5
- package/docs/TssV2TransactionsGet200ResponsePaymentInformationCard.md +1 -1
- package/package.json +1 -1
- package/src/ApiClient.js +0 -3
- package/src/api/InvoicesApi.js +1 -1
- package/src/api/TransientTokenDataApi.js +7 -7
- package/src/index.js +8 -3
- package/src/model/InvoicingV2InvoicesAllGet200ResponseInvoices.js +1 -1
- package/src/model/InvoicingV2InvoicesGet200Response.js +1 -1
- package/src/model/InvoicingV2InvoicesPost201Response.js +1 -1
- package/src/model/InvoicingV2InvoicesPost202Response.js +1 -1
- package/src/model/Ptsv2paymentreferencesPaymentInformationCard.js +1 -1
- package/src/model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthentication.js +12 -4
- package/src/model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation.js +82 -0
- package/src/model/Ptsv2paymentsPaymentInformationCard.js +1 -1
- package/src/model/Ptsv2paymentsPointOfSaleInformationEmv.js +1 -1
- package/src/model/Ptsv2paymentsidrefundsPaymentInformationCard.js +1 -1
- package/src/model/RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.js +9 -0
- package/src/model/TssV2TransactionsGet200ResponsePaymentInformationCard.js +1 -1
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
*/
|
|
100
100
|
exports.prototype['id'] = undefined;
|
|
101
101
|
/**
|
|
102
|
-
* The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
|
|
102
|
+
* The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
|
|
103
103
|
* @member {String} status
|
|
104
104
|
*/
|
|
105
105
|
exports.prototype['status'] = undefined;
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
*/
|
|
112
112
|
exports.prototype['submitTimeUtc'] = undefined;
|
|
113
113
|
/**
|
|
114
|
-
* The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
|
|
114
|
+
* The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
|
|
115
115
|
* @member {String} status
|
|
116
116
|
*/
|
|
117
117
|
exports.prototype['status'] = undefined;
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
*/
|
|
108
108
|
exports.prototype['submitTimeUtc'] = undefined;
|
|
109
109
|
/**
|
|
110
|
-
* The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
|
|
110
|
+
* The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
|
|
111
111
|
* @member {String} status
|
|
112
112
|
*/
|
|
113
113
|
exports.prototype['status'] = undefined;
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
*/
|
|
91
91
|
exports.prototype['submitTimeUtc'] = undefined;
|
|
92
92
|
/**
|
|
93
|
-
* The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
|
|
93
|
+
* The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
|
|
94
94
|
* @member {String} status
|
|
95
95
|
*/
|
|
96
96
|
exports.prototype['status'] = undefined;
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
*/
|
|
115
115
|
exports.prototype['securityCode'] = undefined;
|
|
116
116
|
/**
|
|
117
|
-
* Flag that specifies the type of account associated with the card.
|
|
117
|
+
* Flag that specifies the type of account associated with the card. This field is available only for China UnionPay, Cielo, Comercio Latino and Visa Platform Connect. The cardholder provides this information during the payment process. This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. **China UnionPayCard Transactions on China UnionPay:** Possible values: - C: Domestic credit card - D: Domestic debit card - F: International credit card - I: International debit card When the value is D, the e-commerce indicator and CAVV fields must be included in the authorization request. When the value is C, F or I the card verification number, expiration month and expiration year fields must in included in the authorization request. **Cielo and Comercio Latino Credit Card Transactions:** On these processors, this field is supported only for authorizations. Possible values: - CR: Credit card - DB: Debit card **Visa Platform Connect Credit Card Transactions:** This field is supported for all card types on Visa Platform Connect. For combo **card present** transactions with Mastercard on Brazilian-issued cards, possible values: - CR: Credit card - DB: Debit Card For combo **card not present** transactions with Mastercard on Brazilian-issued cards, possible values: - C: Credit card - D: Debit card A value of CR or DB in the useAs field takes precedence over any value in the Source Account Type field.
|
|
118
118
|
* @member {String} useAs
|
|
119
119
|
*/
|
|
120
120
|
exports.prototype['useAs'] = undefined;
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
(function(root, factory) {
|
|
17
17
|
if (typeof define === 'function' && define.amd) {
|
|
18
18
|
// AMD. Register as an anonymous module.
|
|
19
|
-
define(['ApiClient'], factory);
|
|
19
|
+
define(['ApiClient', 'model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation'], factory);
|
|
20
20
|
} else if (typeof module === 'object' && module.exports) {
|
|
21
21
|
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
-
module.exports = factory(require('../ApiClient'));
|
|
22
|
+
module.exports = factory(require('../ApiClient'), require('./Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation'));
|
|
23
23
|
} else {
|
|
24
24
|
// Browser globals (root is window)
|
|
25
25
|
if (!root.CyberSource) {
|
|
26
26
|
root.CyberSource = {};
|
|
27
27
|
}
|
|
28
|
-
root.CyberSource.Ptsv2paymentsConsumerAuthenticationInformationStrongAuthentication = factory(root.CyberSource.ApiClient);
|
|
28
|
+
root.CyberSource.Ptsv2paymentsConsumerAuthenticationInformationStrongAuthentication = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation);
|
|
29
29
|
}
|
|
30
|
-
}(this, function(ApiClient) {
|
|
30
|
+
}(this, function(ApiClient, Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation) {
|
|
31
31
|
'use strict';
|
|
32
32
|
|
|
33
33
|
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
+
|
|
57
58
|
};
|
|
58
59
|
|
|
59
60
|
/**
|
|
@@ -67,6 +68,9 @@
|
|
|
67
68
|
if (data) {
|
|
68
69
|
obj = obj || new exports();
|
|
69
70
|
|
|
71
|
+
if (data.hasOwnProperty('issuerInformation')) {
|
|
72
|
+
obj['issuerInformation'] = Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation.constructFromObject(data['issuerInformation']);
|
|
73
|
+
}
|
|
70
74
|
if (data.hasOwnProperty('lowValueExemptionIndicator')) {
|
|
71
75
|
obj['lowValueExemptionIndicator'] = ApiClient.convertToType(data['lowValueExemptionIndicator'], 'String');
|
|
72
76
|
}
|
|
@@ -92,6 +96,10 @@
|
|
|
92
96
|
return obj;
|
|
93
97
|
}
|
|
94
98
|
|
|
99
|
+
/**
|
|
100
|
+
* @member {module:model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation} issuerInformation
|
|
101
|
+
*/
|
|
102
|
+
exports.prototype['issuerInformation'] = undefined;
|
|
95
103
|
/**
|
|
96
104
|
* This field will contain the low value exemption indicator with one of the following values: Possible values: - `0` ( low value exemption does not apply to the transaction) - `1` (Transaction exempt from SCA as the merchant/acquirer has determined it to be a low value payment)
|
|
97
105
|
* @member {String} lowValueExemptionIndicator
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CyberSource Merged Spec
|
|
3
|
+
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 0.0.1
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
8
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
*
|
|
10
|
+
* Swagger Codegen version: 2.4.38
|
|
11
|
+
*
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
(function(root, factory) {
|
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
|
18
|
+
// AMD. Register as an anonymous module.
|
|
19
|
+
define(['ApiClient'], factory);
|
|
20
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
+
module.exports = factory(require('../ApiClient'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
if (!root.CyberSource) {
|
|
26
|
+
root.CyberSource = {};
|
|
27
|
+
}
|
|
28
|
+
root.CyberSource.Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation = factory(root.CyberSource.ApiClient);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(ApiClient) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation model module.
|
|
38
|
+
* @module model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation
|
|
39
|
+
* @version 0.0.1
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new <code>Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation</code>.
|
|
44
|
+
* @alias module:model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation
|
|
45
|
+
* @class
|
|
46
|
+
*/
|
|
47
|
+
var exports = function() {
|
|
48
|
+
var _this = this;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constructs a <code>Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
+
* @param {module:model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation} The populated <code>Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation</code> instance.
|
|
59
|
+
*/
|
|
60
|
+
exports.constructFromObject = function(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new exports();
|
|
63
|
+
|
|
64
|
+
if (data.hasOwnProperty('exemptionDataRaw')) {
|
|
65
|
+
obj['exemptionDataRaw'] = ApiClient.convertToType(data['exemptionDataRaw'], 'String');
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return obj;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Payer authentication exemption indicator for Carte Bancaire exemptions. This is used with unbundled authentication and authorizations calls, for example: \"low fraud merchant program\". The value for this field maps to the value returned in the payer authentication API response field - `consumerAuthenticationInformation.exemptionDataRaw`.
|
|
73
|
+
* @member {String} exemptionDataRaw
|
|
74
|
+
*/
|
|
75
|
+
exports.prototype['exemptionDataRaw'] = undefined;
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
return exports;
|
|
80
|
+
}));
|
|
81
|
+
|
|
82
|
+
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
*/
|
|
146
146
|
exports.prototype['type'] = undefined;
|
|
147
147
|
/**
|
|
148
|
-
* Flag that specifies the type of account associated with the card.
|
|
148
|
+
* Flag that specifies the type of account associated with the card. This field is available only for China UnionPay, Cielo, Comercio Latino and Visa Platform Connect. The cardholder provides this information during the payment process. This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. **China UnionPayCard Transactions on China UnionPay:** Possible values: - C: Domestic credit card - D: Domestic debit card - F: International credit card - I: International debit card When the value is D, the e-commerce indicator and CAVV fields must be included in the authorization request. When the value is C, F or I the card verification number, expiration month and expiration year fields must in included in the authorization request. **Cielo and Comercio Latino Credit Card Transactions:** On these processors, this field is supported only for authorizations. Possible values: - CR: Credit card - DB: Debit card **Visa Platform Connect Credit Card Transactions:** This field is supported for all card types on Visa Platform Connect. For combo **card present** transactions with Mastercard on Brazilian-issued cards, possible values: - CR: Credit card - DB: Debit Card For combo **card not present** transactions with Mastercard on Brazilian-issued cards, possible values: - C: Credit card - D: Debit card A value of CR or DB in the useAs field takes precedence over any value in the Source Account Type field.
|
|
149
149
|
* @member {String} useAs
|
|
150
150
|
*/
|
|
151
151
|
exports.prototype['useAs'] = undefined;
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
*/
|
|
100
100
|
exports.prototype['cardholderVerificationMethodUsed'] = undefined;
|
|
101
101
|
/**
|
|
102
|
-
* Number assigned to a specific card when two or more cards are associated with the same primary account number. This value enables issuers to distinguish among multiple cards that are linked to the same account. This value can also act as a tracking tool when reissuing cards. When this value is available, it is provided by the chip reader. When the chip reader does not provide this value, do not include this field in your request. When sequence number is not provided via this API field, the value is extracted from EMV tag 5F34 for Mastercard transactions. To enable this feature please call support. **Note** Card present information about EMV applies only to credit card processing and PIN debit processing. All other card present information applies only to credit card processing. PIN debit processing is available only on CyberSource through VisaNet and FDC Nashville Global. #### Used by Authorization: Optional PIN Debit processing: Optional #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
|
102
|
+
* Number assigned to a specific card when two or more cards are associated with the same primary account number. This value enables issuers to distinguish among multiple cards that are linked to the same account. This value can also act as a tracking tool when reissuing cards. When this value is available, it is provided by the chip reader. When the chip reader does not provide this value, do not include this field in your request. When sequence number is not provided via this API field, the value is extracted from EMV tag 5F34 for Visa and Mastercard transactions. To enable this feature please call support. **Note** Card present information about EMV applies only to credit card processing and PIN debit processing. All other card present information applies only to credit card processing. PIN debit processing is available only on CyberSource through VisaNet and FDC Nashville Global. #### Used by Authorization: Optional PIN Debit processing: Optional #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
|
103
103
|
* @member {String} cardSequenceNumber
|
|
104
104
|
*/
|
|
105
105
|
exports.prototype['cardSequenceNumber'] = undefined;
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
*/
|
|
169
169
|
exports.prototype['securityCode'] = undefined;
|
|
170
170
|
/**
|
|
171
|
-
* Flag that specifies the type of account associated with the card.
|
|
171
|
+
* Flag that specifies the type of account associated with the card. This field is available only for China UnionPay, Cielo, Comercio Latino and Visa Platform Connect. The cardholder provides this information during the payment process. This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. **China UnionPayCard Transactions on China UnionPay:** Possible values: - C: Domestic credit card - D: Domestic debit card - F: International credit card - I: International debit card When the value is D, the e-commerce indicator and CAVV fields must be included in the authorization request. When the value is C, F or I the card verification number, expiration month and expiration year fields must in included in the authorization request. **Cielo and Comercio Latino Credit Card Transactions:** On these processors, this field is supported only for authorizations. Possible values: - CR: Credit card - DB: Debit card **Visa Platform Connect Credit Card Transactions:** This field is supported for all card types on Visa Platform Connect. For combo **card present** transactions with Mastercard on Brazilian-issued cards, possible values: - CR: Credit card - DB: Debit Card For combo **card not present** transactions with Mastercard on Brazilian-issued cards, possible values: - C: Credit card - D: Debit card A value of CR or DB in the useAs field takes precedence over any value in the Source Account Type field.
|
|
172
172
|
* @member {String} useAs
|
|
173
173
|
*/
|
|
174
174
|
exports.prototype['useAs'] = undefined;
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
|
|
93
|
+
|
|
93
94
|
|
|
94
95
|
|
|
95
96
|
};
|
|
@@ -171,6 +172,9 @@
|
|
|
171
172
|
if (data.hasOwnProperty('effectiveAuthenticationType')) {
|
|
172
173
|
obj['effectiveAuthenticationType'] = ApiClient.convertToType(data['effectiveAuthenticationType'], 'String');
|
|
173
174
|
}
|
|
175
|
+
if (data.hasOwnProperty('exemptionDataRaw')) {
|
|
176
|
+
obj['exemptionDataRaw'] = ApiClient.convertToType(data['exemptionDataRaw'], 'String');
|
|
177
|
+
}
|
|
174
178
|
if (data.hasOwnProperty('ivr')) {
|
|
175
179
|
obj['ivr'] = PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr.constructFromObject(data['ivr']);
|
|
176
180
|
}
|
|
@@ -354,6 +358,11 @@
|
|
|
354
358
|
* @member {String} effectiveAuthenticationType
|
|
355
359
|
*/
|
|
356
360
|
exports.prototype['effectiveAuthenticationType'] = undefined;
|
|
361
|
+
/**
|
|
362
|
+
* Payer authentication exemption indicator for Carte Bancaire exemptions. This is used with unbundled authentication and authorizations calls, for example: \"low fraud merchant program\". The value returned in this field should be passed in the authorization request under the field - `consumerAuthenticationInformation.strongAuthentication.issuerInformation.exemptionDataRaw`.
|
|
363
|
+
* @member {String} exemptionDataRaw
|
|
364
|
+
*/
|
|
365
|
+
exports.prototype['exemptionDataRaw'] = undefined;
|
|
357
366
|
/**
|
|
358
367
|
* @member {module:model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr} ivr
|
|
359
368
|
*/
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
*/
|
|
169
169
|
exports.prototype['accountEncoderId'] = undefined;
|
|
170
170
|
/**
|
|
171
|
-
* Flag that specifies the type of account associated with the card.
|
|
171
|
+
* Flag that specifies the type of account associated with the card. This field is available only for China UnionPay, Cielo, Comercio Latino and Visa Platform Connect. The cardholder provides this information during the payment process. This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. **China UnionPayCard Transactions on China UnionPay:** Possible values: - C: Domestic credit card - D: Domestic debit card - F: International credit card - I: International debit card When the value is D, the e-commerce indicator and CAVV fields must be included in the authorization request. When the value is C, F or I the card verification number, expiration month and expiration year fields must in included in the authorization request. **Cielo and Comercio Latino Credit Card Transactions:** On these processors, this field is supported only for authorizations. Possible values: - CR: Credit card - DB: Debit card **Visa Platform Connect Credit Card Transactions:** This field is supported for all card types on Visa Platform Connect. For combo **card present** transactions with Mastercard on Brazilian-issued cards, possible values: - CR: Credit card - DB: Debit Card For combo **card not present** transactions with Mastercard on Brazilian-issued cards, possible values: - C: Credit card - D: Debit card A value of CR or DB in the useAs field takes precedence over any value in the Source Account Type field.
|
|
172
172
|
* @member {String} useAs
|
|
173
173
|
*/
|
|
174
174
|
exports.prototype['useAs'] = undefined;
|