cybersource-rest-client 0.0.38 → 0.0.39
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/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/misc.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/workspace.xml +47 -4
- package/cybersource-rest-client-0.0.38.tgz +0 -0
- package/docs/PtsV2PaymentsPost201Response.md +1 -0
- package/docs/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation.md +1 -1
- package/docs/PtsV2PaymentsPost201ResponseIssuerInformation.md +1 -0
- package/docs/PtsV2PaymentsPost201ResponsePaymentInsightsInformation.md +8 -0
- package/docs/PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights.md +9 -0
- package/docs/Ptsv2paymentsConsumerAuthenticationInformation.md +2 -2
- package/docs/Ptsv2paymentsPaymentInformationCard.md +1 -0
- package/docs/Ptsv2paymentsPaymentInformationTokenizedCard.md +3 -2
- package/docs/Ptsv2paymentsPointOfSaleInformationEmv.md +1 -1
- package/docs/Ptsv2paymentsProcessingInformation.md +1 -0
- package/docs/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.md +1 -1
- package/docs/Ptsv2paymentsidProcessingInformationAuthorizationOptionsInitiator.md +1 -1
- package/docs/ReportingV3ChargebackDetailsGet200ResponseChargebackDetails.md +1 -0
- package/docs/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.md +3 -0
- package/docs/RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.md +4 -1
- package/docs/Riskv1authenticationresultsConsumerAuthenticationInformation.md +4 -2
- package/docs/{TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.md → Riskv1authenticationresultsDeviceInformation.md} +1 -1
- package/docs/Riskv1authenticationresultsPaymentInformationTokenizedCard.md +1 -1
- package/docs/Riskv1authenticationsPaymentInformationTokenizedCard.md +3 -1
- package/docs/Riskv1authenticationsetupsPaymentInformationTokenizedCard.md +1 -1
- package/docs/Riskv1decisionsConsumerAuthenticationInformation.md +3 -2
- package/docs/Riskv1decisionsPaymentInformationTokenizedCard.md +1 -1
- package/docs/SecureFileShareApi.md +2 -2
- package/docs/TssV2TransactionsGet200Response.md +1 -0
- package/docs/TssV2TransactionsGet200ResponsePaymentInformationCustomer.md +1 -1
- package/docs/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.md +1 -1
- package/docs/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator.md +11 -0
- package/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformation.md +2 -1
- package/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank.md +8 -0
- package/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBankAccount.md +9 -0
- package/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCustomer.md +8 -0
- package/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md +1 -1
- package/docs/ValidateRequest.md +1 -0
- package/package.json +1 -1
- package/src/api/SecureFileShareApi.js +2 -2
- package/src/index.js +38 -8
- package/src/model/PtsV2PaymentsPost201Response.js +12 -4
- package/src/model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation.js +1 -1
- package/src/model/PtsV2PaymentsPost201ResponseIssuerInformation.js +9 -0
- package/src/model/PtsV2PaymentsPost201ResponsePaymentInsightsInformation.js +81 -0
- package/src/model/PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights.js +91 -0
- package/src/model/Ptsv2paymentsConsumerAuthenticationInformation.js +2 -2
- package/src/model/Ptsv2paymentsPaymentInformationCard.js +9 -0
- package/src/model/Ptsv2paymentsPaymentInformationTokenizedCard.js +11 -2
- package/src/model/Ptsv2paymentsPointOfSaleInformationEmv.js +3 -3
- package/src/model/Ptsv2paymentsProcessingInformation.js +9 -0
- package/src/model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.js +3 -3
- package/src/model/Ptsv2paymentsidProcessingInformationAuthorizationOptionsInitiator.js +3 -3
- package/src/model/ReportingV3ChargebackDetailsGet200ResponseChargebackDetails.js +9 -0
- package/src/model/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.js +27 -0
- package/src/model/RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.js +28 -1
- package/src/model/Riskv1authenticationresultsConsumerAuthenticationInformation.js +20 -2
- package/src/model/{TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.js → Riskv1authenticationresultsDeviceInformation.js} +8 -8
- package/src/model/Riskv1authenticationresultsPaymentInformationTokenizedCard.js +1 -1
- package/src/model/Riskv1authenticationsPaymentInformationTokenizedCard.js +24 -3
- package/src/model/Riskv1authenticationsetupsPaymentInformationTokenizedCard.js +2 -2
- package/src/model/Riskv1decisionsConsumerAuthenticationInformation.js +11 -2
- package/src/model/Riskv1decisionsPaymentInformationTokenizedCard.js +1 -1
- package/src/model/TssV2TransactionsGet200Response.js +12 -4
- package/src/model/TssV2TransactionsGet200ResponsePaymentInformationCustomer.js +1 -1
- package/src/model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.js +6 -6
- package/src/model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator.js +108 -0
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformation.js +14 -6
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank.js +81 -0
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBankAccount.js +91 -0
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCustomer.js +82 -0
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.js +6 -6
- package/src/model/ValidateRequest.js +12 -4
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
if (!root.CyberSource) {
|
|
26
26
|
root.CyberSource = {};
|
|
27
27
|
}
|
|
28
|
-
root.CyberSource.
|
|
28
|
+
root.CyberSource.Riskv1authenticationresultsDeviceInformation = factory(root.CyberSource.ApiClient);
|
|
29
29
|
}
|
|
30
30
|
}(this, function(ApiClient) {
|
|
31
31
|
'use strict';
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* The
|
|
38
|
-
* @module model/
|
|
37
|
+
* The Riskv1authenticationresultsDeviceInformation model module.
|
|
38
|
+
* @module model/Riskv1authenticationresultsDeviceInformation
|
|
39
39
|
* @version 0.0.1
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Constructs a new <code>
|
|
44
|
-
* @alias module:model/
|
|
43
|
+
* Constructs a new <code>Riskv1authenticationresultsDeviceInformation</code>.
|
|
44
|
+
* @alias module:model/Riskv1authenticationresultsDeviceInformation
|
|
45
45
|
* @class
|
|
46
46
|
*/
|
|
47
47
|
var exports = function() {
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* Constructs a <code>
|
|
54
|
+
* Constructs a <code>Riskv1authenticationresultsDeviceInformation</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
55
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
56
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
-
* @param {module:model/
|
|
58
|
-
* @return {module:model/
|
|
57
|
+
* @param {module:model/Riskv1authenticationresultsDeviceInformation} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/Riskv1authenticationresultsDeviceInformation} The populated <code>Riskv1authenticationresultsDeviceInformation</code> instance.
|
|
59
59
|
*/
|
|
60
60
|
exports.constructFromObject = function(data, obj) {
|
|
61
61
|
if (data) {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
* Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
|
88
|
+
* Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: For Rupay and In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
|
89
89
|
* @member {String} transactionType
|
|
90
90
|
*/
|
|
91
91
|
exports.prototype['transactionType'] = undefined;
|
|
@@ -43,18 +43,23 @@
|
|
|
43
43
|
* Constructs a new <code>Riskv1authenticationsPaymentInformationTokenizedCard</code>.
|
|
44
44
|
* @alias module:model/Riskv1authenticationsPaymentInformationTokenizedCard
|
|
45
45
|
* @class
|
|
46
|
+
* @param transactionType {String} Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: For Rupay and In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
|
46
47
|
* @param type {String} Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
|
47
48
|
* @param expirationMonth {String} One of two possible meanings: - The two-digit month in which a token expires. - The two-digit month in which a card expires. Format: `MM` Possible values: `01` through `12` **NOTE** The meaning of this field is dependent on the payment processor that is returning the value in an authorization reply. Please see the processor-specific details below. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`01` through `12`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (`card_type=039`), if there is no expiration date on the card, use `12`.\\ **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Samsung Pay and Apple Pay Month in which the token expires. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. For processor-specific information, see the `customer_cc_expmo` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
|
48
49
|
* @param expirationYear {String} One of two possible meanings: - The four-digit year in which a token expires. - The four-digit year in which a card expires. Format: `YYYY` Possible values: `1900` through `3000` Data type: Non-negative integer **NOTE** The meaning of this field is dependent on the payment processor that is returning the value in an authorization reply. Please see the processor-specific details below. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (1900 through 3000) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (`card_ type=039`), if there is no expiration date on the card, use `2021`. #### FDC Nashville Global and FDMS South You can send in 2 digits or 4 digits. When you send in 2 digits, they must be the last 2 digits of the year. #### Samsung Pay and Apple Pay Year in which the token expires. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `customer_cc_expyr` or `token_expiration_year` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
|
50
|
+
* @param cryptogram {String} This field contains token information.
|
|
51
|
+
* @param securityCode {String} Card Verification Number (CVN). #### Ingenico ePayments Do not include this field when **commerceIndicator=recurring**. **Note** Ingenico ePayments was previously called _Global Collect_. For details, see `customer_cc_cv_number` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
|
|
49
52
|
* @param _number {String} Customer’s payment network token value.
|
|
50
53
|
*/
|
|
51
|
-
var exports = function(type, expirationMonth, expirationYear, _number) {
|
|
54
|
+
var exports = function(transactionType, type, expirationMonth, expirationYear, cryptogram, securityCode, _number) {
|
|
52
55
|
var _this = this;
|
|
53
56
|
|
|
54
|
-
|
|
57
|
+
_this['transactionType'] = transactionType;
|
|
55
58
|
_this['type'] = type;
|
|
56
59
|
_this['expirationMonth'] = expirationMonth;
|
|
57
60
|
_this['expirationYear'] = expirationYear;
|
|
61
|
+
_this['cryptogram'] = cryptogram;
|
|
62
|
+
_this['securityCode'] = securityCode;
|
|
58
63
|
_this['number'] = _number;
|
|
59
64
|
};
|
|
60
65
|
|
|
@@ -81,6 +86,12 @@
|
|
|
81
86
|
if (data.hasOwnProperty('expirationYear')) {
|
|
82
87
|
obj['expirationYear'] = ApiClient.convertToType(data['expirationYear'], 'String');
|
|
83
88
|
}
|
|
89
|
+
if (data.hasOwnProperty('cryptogram')) {
|
|
90
|
+
obj['cryptogram'] = ApiClient.convertToType(data['cryptogram'], 'String');
|
|
91
|
+
}
|
|
92
|
+
if (data.hasOwnProperty('securityCode')) {
|
|
93
|
+
obj['securityCode'] = ApiClient.convertToType(data['securityCode'], 'String');
|
|
94
|
+
}
|
|
84
95
|
if (data.hasOwnProperty('number')) {
|
|
85
96
|
obj['number'] = ApiClient.convertToType(data['number'], 'String');
|
|
86
97
|
}
|
|
@@ -89,7 +100,7 @@
|
|
|
89
100
|
}
|
|
90
101
|
|
|
91
102
|
/**
|
|
92
|
-
* Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
|
103
|
+
* Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: For Rupay and In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
|
93
104
|
* @member {String} transactionType
|
|
94
105
|
*/
|
|
95
106
|
exports.prototype['transactionType'] = undefined;
|
|
@@ -108,6 +119,16 @@
|
|
|
108
119
|
* @member {String} expirationYear
|
|
109
120
|
*/
|
|
110
121
|
exports.prototype['expirationYear'] = undefined;
|
|
122
|
+
/**
|
|
123
|
+
* This field contains token information.
|
|
124
|
+
* @member {String} cryptogram
|
|
125
|
+
*/
|
|
126
|
+
exports.prototype['cryptogram'] = undefined;
|
|
127
|
+
/**
|
|
128
|
+
* Card Verification Number (CVN). #### Ingenico ePayments Do not include this field when **commerceIndicator=recurring**. **Note** Ingenico ePayments was previously called _Global Collect_. For details, see `customer_cc_cv_number` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
|
|
129
|
+
* @member {String} securityCode
|
|
130
|
+
*/
|
|
131
|
+
exports.prototype['securityCode'] = undefined;
|
|
111
132
|
/**
|
|
112
133
|
* Customer’s payment network token value.
|
|
113
134
|
* @member {String} number
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* Constructs a new <code>Riskv1authenticationsetupsPaymentInformationTokenizedCard</code>.
|
|
44
44
|
* @alias module:model/Riskv1authenticationsetupsPaymentInformationTokenizedCard
|
|
45
45
|
* @class
|
|
46
|
-
* @param transactionType {String} Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
|
46
|
+
* @param transactionType {String} Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: For Rupay and In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
|
47
47
|
* @param type {String} Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
|
48
48
|
* @param expirationMonth {String} One of two possible meanings: - The two-digit month in which a token expires. - The two-digit month in which a card expires. Format: `MM` Possible values: `01` through `12` **NOTE** The meaning of this field is dependent on the payment processor that is returning the value in an authorization reply. Please see the processor-specific details below. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`01` through `12`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (`card_type=039`), if there is no expiration date on the card, use `12`.\\ **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Samsung Pay and Apple Pay Month in which the token expires. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. For processor-specific information, see the `customer_cc_expmo` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
|
49
49
|
* @param expirationYear {String} One of two possible meanings: - The four-digit year in which a token expires. - The four-digit year in which a card expires. Format: `YYYY` Possible values: `1900` through `3000` Data type: Non-negative integer **NOTE** The meaning of this field is dependent on the payment processor that is returning the value in an authorization reply. Please see the processor-specific details below. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (1900 through 3000) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (`card_ type=039`), if there is no expiration date on the card, use `2021`. #### FDC Nashville Global and FDMS South You can send in 2 digits or 4 digits. When you send in 2 digits, they must be the last 2 digits of the year. #### Samsung Pay and Apple Pay Year in which the token expires. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `customer_cc_expyr` or `token_expiration_year` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
* Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
|
93
|
+
* Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: For Rupay and In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
|
94
94
|
* @member {String} transactionType
|
|
95
95
|
*/
|
|
96
96
|
exports.prototype['transactionType'] = undefined;
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
88
|
+
|
|
88
89
|
|
|
89
90
|
|
|
90
91
|
};
|
|
@@ -124,6 +125,9 @@
|
|
|
124
125
|
if (data.hasOwnProperty('authenticationTransactionId')) {
|
|
125
126
|
obj['authenticationTransactionId'] = ApiClient.convertToType(data['authenticationTransactionId'], 'String');
|
|
126
127
|
}
|
|
128
|
+
if (data.hasOwnProperty('transactionFlowIndicator')) {
|
|
129
|
+
obj['transactionFlowIndicator'] = ApiClient.convertToType(data['transactionFlowIndicator'], 'Number');
|
|
130
|
+
}
|
|
127
131
|
if (data.hasOwnProperty('challengeCancelCode')) {
|
|
128
132
|
obj['challengeCancelCode'] = ApiClient.convertToType(data['challengeCancelCode'], 'String');
|
|
129
133
|
}
|
|
@@ -229,7 +233,7 @@
|
|
|
229
233
|
*/
|
|
230
234
|
exports.prototype['strongAuthentication'] = undefined;
|
|
231
235
|
/**
|
|
232
|
-
* Indicates the type of authentication that will be used to challenge the card holder. Possible Values: 01 - Static 02 - Dynamic 03 - OOB (Out of Band) 04 - Decoupled **NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time.
|
|
236
|
+
* Indicates the type of authentication that will be used to challenge the card holder. Possible Values: 01 - Static 02 - Dynamic 03 - OOB (Out of Band) 04 - Decoupled 20 - OTP hosted at merchant end. (Rupay S2S flow) **NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time.
|
|
233
237
|
* @member {String} authenticationType
|
|
234
238
|
*/
|
|
235
239
|
exports.prototype['authenticationType'] = undefined;
|
|
@@ -259,10 +263,15 @@
|
|
|
259
263
|
*/
|
|
260
264
|
exports.prototype['authenticationDate'] = undefined;
|
|
261
265
|
/**
|
|
262
|
-
* Payer authentication transaction identifier passed to link the check enrollment and validate authentication messages. **Note**: Required for Standard integration for enroll service. Required for Hybrid integration for validate service.
|
|
266
|
+
* Payer authentication transaction identifier passed to link the check enrollment and validate authentication messages.For Rupay,this is passed only in Re-Send OTP usecase. **Note**: Required for Standard integration, Rupay Seamless server to server integration for enroll service. Required for Hybrid integration for validate service.
|
|
263
267
|
* @member {String} authenticationTransactionId
|
|
264
268
|
*/
|
|
265
269
|
exports.prototype['authenticationTransactionId'] = undefined;
|
|
270
|
+
/**
|
|
271
|
+
* This field is only applicable to Rupay and is optional. Merchant will have to pass a valid value from 01 through 07 which indicates the transaction flow. Below are the possible values. 01:NW – Transaction performed at domestic merchant. 02:TW - Transaction performed at domestic merchant along with Token provisioning. 03:IT – Transaction performed at International merchant. 04:AT- Authentication Transaction Only. 05:AW- Authentication transaction for provisioning. 06:DI- Domestic InApp Transaction. 07:II- International InApp transaction.
|
|
272
|
+
* @member {Number} transactionFlowIndicator
|
|
273
|
+
*/
|
|
274
|
+
exports.prototype['transactionFlowIndicator'] = undefined;
|
|
266
275
|
/**
|
|
267
276
|
* An indicator as to why the transaction was canceled. Possible Values: - `01`: Cardholder selected Cancel. - `02`: Reserved for future EMVCo use (values invalid until defined by EMVCo). - `03`: Transaction Timed Out—Decoupled Authentication - `04`: Transaction timed out at ACS—other timeouts - `05`: Transaction Timed out at ACS - First CReq not received by ACS - `06`: Transaction Error - `07`: Unknown - `08`: Transaction Timed Out at SDK
|
|
268
277
|
* @member {String} challengeCancelCode
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
|
89
|
+
* Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: For Rupay and In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
|
90
90
|
* @member {String} transactionType
|
|
91
91
|
*/
|
|
92
92
|
exports.prototype['transactionType'] = 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', 'model/Ptsv2paymentsHealthCareInformation', 'model/Ptsv2paymentsMerchantDefinedInformation', 'model/TssV2TransactionsGet200ResponseApplicationInformation', 'model/TssV2TransactionsGet200ResponseBuyerInformation', 'model/TssV2TransactionsGet200ResponseClientReferenceInformation', 'model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation', 'model/TssV2TransactionsGet200ResponseDeviceInformation', 'model/TssV2TransactionsGet200ResponseErrorInformation', 'model/TssV2TransactionsGet200ResponseFraudMarkingInformation', 'model/TssV2TransactionsGet200ResponseInstallmentInformation', 'model/TssV2TransactionsGet200ResponseLinks', 'model/TssV2TransactionsGet200ResponseMerchantInformation', 'model/TssV2TransactionsGet200ResponseOrderInformation', 'model/TssV2TransactionsGet200ResponsePaymentInformation', 'model/TssV2TransactionsGet200ResponsePointOfSaleInformation', 'model/TssV2TransactionsGet200ResponseProcessingInformation', 'model/TssV2TransactionsGet200ResponseProcessorInformation', 'model/TssV2TransactionsGet200ResponseRiskInformation', 'model/TssV2TransactionsGet200ResponseSenderInformation', 'model/TssV2TransactionsGet200ResponseTokenInformation'], factory);
|
|
19
|
+
define(['ApiClient', 'model/PtsV2PaymentsPost201ResponsePaymentInsightsInformation', 'model/Ptsv2paymentsHealthCareInformation', 'model/Ptsv2paymentsMerchantDefinedInformation', 'model/TssV2TransactionsGet200ResponseApplicationInformation', 'model/TssV2TransactionsGet200ResponseBuyerInformation', 'model/TssV2TransactionsGet200ResponseClientReferenceInformation', 'model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation', 'model/TssV2TransactionsGet200ResponseDeviceInformation', 'model/TssV2TransactionsGet200ResponseErrorInformation', 'model/TssV2TransactionsGet200ResponseFraudMarkingInformation', 'model/TssV2TransactionsGet200ResponseInstallmentInformation', 'model/TssV2TransactionsGet200ResponseLinks', 'model/TssV2TransactionsGet200ResponseMerchantInformation', 'model/TssV2TransactionsGet200ResponseOrderInformation', 'model/TssV2TransactionsGet200ResponsePaymentInformation', 'model/TssV2TransactionsGet200ResponsePointOfSaleInformation', 'model/TssV2TransactionsGet200ResponseProcessingInformation', 'model/TssV2TransactionsGet200ResponseProcessorInformation', 'model/TssV2TransactionsGet200ResponseRiskInformation', 'model/TssV2TransactionsGet200ResponseSenderInformation', 'model/TssV2TransactionsGet200ResponseTokenInformation'], 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'), require('./Ptsv2paymentsHealthCareInformation'), require('./Ptsv2paymentsMerchantDefinedInformation'), require('./TssV2TransactionsGet200ResponseApplicationInformation'), require('./TssV2TransactionsGet200ResponseBuyerInformation'), require('./TssV2TransactionsGet200ResponseClientReferenceInformation'), require('./TssV2TransactionsGet200ResponseConsumerAuthenticationInformation'), require('./TssV2TransactionsGet200ResponseDeviceInformation'), require('./TssV2TransactionsGet200ResponseErrorInformation'), require('./TssV2TransactionsGet200ResponseFraudMarkingInformation'), require('./TssV2TransactionsGet200ResponseInstallmentInformation'), require('./TssV2TransactionsGet200ResponseLinks'), require('./TssV2TransactionsGet200ResponseMerchantInformation'), require('./TssV2TransactionsGet200ResponseOrderInformation'), require('./TssV2TransactionsGet200ResponsePaymentInformation'), require('./TssV2TransactionsGet200ResponsePointOfSaleInformation'), require('./TssV2TransactionsGet200ResponseProcessingInformation'), require('./TssV2TransactionsGet200ResponseProcessorInformation'), require('./TssV2TransactionsGet200ResponseRiskInformation'), require('./TssV2TransactionsGet200ResponseSenderInformation'), require('./TssV2TransactionsGet200ResponseTokenInformation'));
|
|
22
|
+
module.exports = factory(require('../ApiClient'), require('./PtsV2PaymentsPost201ResponsePaymentInsightsInformation'), require('./Ptsv2paymentsHealthCareInformation'), require('./Ptsv2paymentsMerchantDefinedInformation'), require('./TssV2TransactionsGet200ResponseApplicationInformation'), require('./TssV2TransactionsGet200ResponseBuyerInformation'), require('./TssV2TransactionsGet200ResponseClientReferenceInformation'), require('./TssV2TransactionsGet200ResponseConsumerAuthenticationInformation'), require('./TssV2TransactionsGet200ResponseDeviceInformation'), require('./TssV2TransactionsGet200ResponseErrorInformation'), require('./TssV2TransactionsGet200ResponseFraudMarkingInformation'), require('./TssV2TransactionsGet200ResponseInstallmentInformation'), require('./TssV2TransactionsGet200ResponseLinks'), require('./TssV2TransactionsGet200ResponseMerchantInformation'), require('./TssV2TransactionsGet200ResponseOrderInformation'), require('./TssV2TransactionsGet200ResponsePaymentInformation'), require('./TssV2TransactionsGet200ResponsePointOfSaleInformation'), require('./TssV2TransactionsGet200ResponseProcessingInformation'), require('./TssV2TransactionsGet200ResponseProcessorInformation'), require('./TssV2TransactionsGet200ResponseRiskInformation'), require('./TssV2TransactionsGet200ResponseSenderInformation'), require('./TssV2TransactionsGet200ResponseTokenInformation'));
|
|
23
23
|
} else {
|
|
24
24
|
// Browser globals (root is window)
|
|
25
25
|
if (!root.CyberSource) {
|
|
26
26
|
root.CyberSource = {};
|
|
27
27
|
}
|
|
28
|
-
root.CyberSource.TssV2TransactionsGet200Response = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2paymentsHealthCareInformation, root.CyberSource.Ptsv2paymentsMerchantDefinedInformation, root.CyberSource.TssV2TransactionsGet200ResponseApplicationInformation, root.CyberSource.TssV2TransactionsGet200ResponseBuyerInformation, root.CyberSource.TssV2TransactionsGet200ResponseClientReferenceInformation, root.CyberSource.TssV2TransactionsGet200ResponseConsumerAuthenticationInformation, root.CyberSource.TssV2TransactionsGet200ResponseDeviceInformation, root.CyberSource.TssV2TransactionsGet200ResponseErrorInformation, root.CyberSource.TssV2TransactionsGet200ResponseFraudMarkingInformation, root.CyberSource.TssV2TransactionsGet200ResponseInstallmentInformation, root.CyberSource.TssV2TransactionsGet200ResponseLinks, root.CyberSource.TssV2TransactionsGet200ResponseMerchantInformation, root.CyberSource.TssV2TransactionsGet200ResponseOrderInformation, root.CyberSource.TssV2TransactionsGet200ResponsePaymentInformation, root.CyberSource.TssV2TransactionsGet200ResponsePointOfSaleInformation, root.CyberSource.TssV2TransactionsGet200ResponseProcessingInformation, root.CyberSource.TssV2TransactionsGet200ResponseProcessorInformation, root.CyberSource.TssV2TransactionsGet200ResponseRiskInformation, root.CyberSource.TssV2TransactionsGet200ResponseSenderInformation, root.CyberSource.TssV2TransactionsGet200ResponseTokenInformation);
|
|
28
|
+
root.CyberSource.TssV2TransactionsGet200Response = factory(root.CyberSource.ApiClient, root.CyberSource.PtsV2PaymentsPost201ResponsePaymentInsightsInformation, root.CyberSource.Ptsv2paymentsHealthCareInformation, root.CyberSource.Ptsv2paymentsMerchantDefinedInformation, root.CyberSource.TssV2TransactionsGet200ResponseApplicationInformation, root.CyberSource.TssV2TransactionsGet200ResponseBuyerInformation, root.CyberSource.TssV2TransactionsGet200ResponseClientReferenceInformation, root.CyberSource.TssV2TransactionsGet200ResponseConsumerAuthenticationInformation, root.CyberSource.TssV2TransactionsGet200ResponseDeviceInformation, root.CyberSource.TssV2TransactionsGet200ResponseErrorInformation, root.CyberSource.TssV2TransactionsGet200ResponseFraudMarkingInformation, root.CyberSource.TssV2TransactionsGet200ResponseInstallmentInformation, root.CyberSource.TssV2TransactionsGet200ResponseLinks, root.CyberSource.TssV2TransactionsGet200ResponseMerchantInformation, root.CyberSource.TssV2TransactionsGet200ResponseOrderInformation, root.CyberSource.TssV2TransactionsGet200ResponsePaymentInformation, root.CyberSource.TssV2TransactionsGet200ResponsePointOfSaleInformation, root.CyberSource.TssV2TransactionsGet200ResponseProcessingInformation, root.CyberSource.TssV2TransactionsGet200ResponseProcessorInformation, root.CyberSource.TssV2TransactionsGet200ResponseRiskInformation, root.CyberSource.TssV2TransactionsGet200ResponseSenderInformation, root.CyberSource.TssV2TransactionsGet200ResponseTokenInformation);
|
|
29
29
|
}
|
|
30
|
-
}(this, function(ApiClient, Ptsv2paymentsHealthCareInformation, Ptsv2paymentsMerchantDefinedInformation, TssV2TransactionsGet200ResponseApplicationInformation, TssV2TransactionsGet200ResponseBuyerInformation, TssV2TransactionsGet200ResponseClientReferenceInformation, TssV2TransactionsGet200ResponseConsumerAuthenticationInformation, TssV2TransactionsGet200ResponseDeviceInformation, TssV2TransactionsGet200ResponseErrorInformation, TssV2TransactionsGet200ResponseFraudMarkingInformation, TssV2TransactionsGet200ResponseInstallmentInformation, TssV2TransactionsGet200ResponseLinks, TssV2TransactionsGet200ResponseMerchantInformation, TssV2TransactionsGet200ResponseOrderInformation, TssV2TransactionsGet200ResponsePaymentInformation, TssV2TransactionsGet200ResponsePointOfSaleInformation, TssV2TransactionsGet200ResponseProcessingInformation, TssV2TransactionsGet200ResponseProcessorInformation, TssV2TransactionsGet200ResponseRiskInformation, TssV2TransactionsGet200ResponseSenderInformation, TssV2TransactionsGet200ResponseTokenInformation) {
|
|
30
|
+
}(this, function(ApiClient, PtsV2PaymentsPost201ResponsePaymentInsightsInformation, Ptsv2paymentsHealthCareInformation, Ptsv2paymentsMerchantDefinedInformation, TssV2TransactionsGet200ResponseApplicationInformation, TssV2TransactionsGet200ResponseBuyerInformation, TssV2TransactionsGet200ResponseClientReferenceInformation, TssV2TransactionsGet200ResponseConsumerAuthenticationInformation, TssV2TransactionsGet200ResponseDeviceInformation, TssV2TransactionsGet200ResponseErrorInformation, TssV2TransactionsGet200ResponseFraudMarkingInformation, TssV2TransactionsGet200ResponseInstallmentInformation, TssV2TransactionsGet200ResponseLinks, TssV2TransactionsGet200ResponseMerchantInformation, TssV2TransactionsGet200ResponseOrderInformation, TssV2TransactionsGet200ResponsePaymentInformation, TssV2TransactionsGet200ResponsePointOfSaleInformation, TssV2TransactionsGet200ResponseProcessingInformation, TssV2TransactionsGet200ResponseProcessorInformation, TssV2TransactionsGet200ResponseRiskInformation, TssV2TransactionsGet200ResponseSenderInformation, TssV2TransactionsGet200ResponseTokenInformation) {
|
|
31
31
|
'use strict';
|
|
32
32
|
|
|
33
33
|
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
+
|
|
73
74
|
|
|
74
75
|
|
|
75
76
|
};
|
|
@@ -139,6 +140,9 @@
|
|
|
139
140
|
if (data.hasOwnProperty('paymentInformation')) {
|
|
140
141
|
obj['paymentInformation'] = TssV2TransactionsGet200ResponsePaymentInformation.constructFromObject(data['paymentInformation']);
|
|
141
142
|
}
|
|
143
|
+
if (data.hasOwnProperty('paymentInsightsInformation')) {
|
|
144
|
+
obj['paymentInsightsInformation'] = PtsV2PaymentsPost201ResponsePaymentInsightsInformation.constructFromObject(data['paymentInsightsInformation']);
|
|
145
|
+
}
|
|
142
146
|
if (data.hasOwnProperty('processingInformation')) {
|
|
143
147
|
obj['processingInformation'] = TssV2TransactionsGet200ResponseProcessingInformation.constructFromObject(data['processingInformation']);
|
|
144
148
|
}
|
|
@@ -242,6 +246,10 @@
|
|
|
242
246
|
* @member {module:model/TssV2TransactionsGet200ResponsePaymentInformation} paymentInformation
|
|
243
247
|
*/
|
|
244
248
|
exports.prototype['paymentInformation'] = undefined;
|
|
249
|
+
/**
|
|
250
|
+
* @member {module:model/PtsV2PaymentsPost201ResponsePaymentInsightsInformation} paymentInsightsInformation
|
|
251
|
+
*/
|
|
252
|
+
exports.prototype['paymentInsightsInformation'] = undefined;
|
|
245
253
|
/**
|
|
246
254
|
* @member {module:model/TssV2TransactionsGet200ResponseProcessingInformation} processingInformation
|
|
247
255
|
*/
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
* Unique identifier for the
|
|
76
|
+
* Unique identifier for the customer's card and billing information. When you use Payment Tokenization or Recurring Billing and you include this value in your request, many of the fields that are normally required for an authorization or credit become optional. **NOTE** When you use Payment Tokenization or Recurring Billing, the value for the Customer ID is actually the Cybersource payment token for a customer. This token stores information such as the consumer’s card number so it can be applied towards bill payments, recurring payments, or one-time payments. By using this token in a payment API request, the merchant doesn't need to pass in data such as the card number or expiration date in the request itself. For details, see the `subscription_id` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
|
|
77
77
|
* @member {String} customerId
|
|
78
78
|
*/
|
|
79
79
|
exports.prototype['customerId'] = undefined;
|
package/src/model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.js
CHANGED
|
@@ -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', 'model/
|
|
19
|
+
define(['ApiClient', 'model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator'], 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'), require('./
|
|
22
|
+
module.exports = factory(require('../ApiClient'), require('./TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator'));
|
|
23
23
|
} else {
|
|
24
24
|
// Browser globals (root is window)
|
|
25
25
|
if (!root.CyberSource) {
|
|
26
26
|
root.CyberSource = {};
|
|
27
27
|
}
|
|
28
|
-
root.CyberSource.TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions = factory(root.CyberSource.ApiClient, root.CyberSource.
|
|
28
|
+
root.CyberSource.TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions = factory(root.CyberSource.ApiClient, root.CyberSource.TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator);
|
|
29
29
|
}
|
|
30
|
-
}(this, function(ApiClient,
|
|
30
|
+
}(this, function(ApiClient, TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator) {
|
|
31
31
|
'use strict';
|
|
32
32
|
|
|
33
33
|
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
obj['authType'] = ApiClient.convertToType(data['authType'], 'String');
|
|
67
67
|
}
|
|
68
68
|
if (data.hasOwnProperty('initiator')) {
|
|
69
|
-
obj['initiator'] =
|
|
69
|
+
obj['initiator'] = TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator.constructFromObject(data['initiator']);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
return obj;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
*/
|
|
79
79
|
exports.prototype['authType'] = undefined;
|
|
80
80
|
/**
|
|
81
|
-
* @member {module:model/
|
|
81
|
+
* @member {module:model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator} initiator
|
|
82
82
|
*/
|
|
83
83
|
exports.prototype['initiator'] = undefined;
|
|
84
84
|
|
|
@@ -0,0 +1,108 @@
|
|
|
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.3.0
|
|
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', 'model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction'], 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'), require('./Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
if (!root.CyberSource) {
|
|
26
|
+
root.CyberSource = {};
|
|
27
|
+
}
|
|
28
|
+
root.CyberSource.TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(ApiClient, Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator model module.
|
|
38
|
+
* @module model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator
|
|
39
|
+
* @version 0.0.1
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new <code>TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator</code>.
|
|
44
|
+
* @alias module:model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator
|
|
45
|
+
* @class
|
|
46
|
+
*/
|
|
47
|
+
var exports = function() {
|
|
48
|
+
var _this = this;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator} The populated <code>TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
exports.constructFromObject = function(data, obj) {
|
|
64
|
+
if (data) {
|
|
65
|
+
obj = obj || new exports();
|
|
66
|
+
|
|
67
|
+
if (data.hasOwnProperty('type')) {
|
|
68
|
+
obj['type'] = ApiClient.convertToType(data['type'], 'String');
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('credentialStoredOnFile')) {
|
|
71
|
+
obj['credentialStoredOnFile'] = ApiClient.convertToType(data['credentialStoredOnFile'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('storedCredentialUsed')) {
|
|
74
|
+
obj['storedCredentialUsed'] = ApiClient.convertToType(data['storedCredentialUsed'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('merchantInitiatedTransaction')) {
|
|
77
|
+
obj['merchantInitiatedTransaction'] = Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.constructFromObject(data['merchantInitiatedTransaction']);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return obj;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* This field indicates whether the transaction is a merchant-initiated transaction or customer-initiated transaction. Valid values: - **customer** - **merchant**
|
|
85
|
+
* @member {String} type
|
|
86
|
+
*/
|
|
87
|
+
exports.prototype['type'] = undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Indicates to the issuing bank two things: - The merchant has received consent from the cardholder to store their card details on file - The merchant wants the issuing bank to check out the card details before the merchant initiates their first transaction for this cardholder. The purpose of the merchant-initiated transaction is to ensure that the cardholder’s credentials are valid (that the card is not stolen or has restrictions) and that the card details are good to be stored on the merchant’s file for future transactions. Valid values: - `Y` means merchant will use this transaction to store payment credentials for follow-up merchant-initiated transactions. - `N` means merchant will not use this transaction to store payment credentials for follow-up merchant-initiated transactions. For details, see `subsequent_auth_first` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) **NOTE:** The value for this field does not correspond to any data in the TC 33 capture file5. This field is supported only for Visa transactions on CyberSource through VisaNet.
|
|
90
|
+
* @member {String} credentialStoredOnFile
|
|
91
|
+
*/
|
|
92
|
+
exports.prototype['credentialStoredOnFile'] = undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Indicates to an issuing bank whether a merchant-initiated transaction came from a card that was already stored on file. Possible values: - **Y** means the merchant-initiated transaction came from a card that was already stored on file. - **N** means the merchant-initiated transaction came from a card that was not stored on file.
|
|
95
|
+
* @member {String} storedCredentialUsed
|
|
96
|
+
*/
|
|
97
|
+
exports.prototype['storedCredentialUsed'] = undefined;
|
|
98
|
+
/**
|
|
99
|
+
* @member {module:model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction} merchantInitiatedTransaction
|
|
100
|
+
*/
|
|
101
|
+
exports.prototype['merchantInitiatedTransaction'] = undefined;
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
return exports;
|
|
106
|
+
}));
|
|
107
|
+
|
|
108
|
+
|
|
@@ -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', 'model/
|
|
19
|
+
define(['ApiClient', 'model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank', 'model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard', 'model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCustomer', 'model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentType'], 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'), require('./
|
|
22
|
+
module.exports = factory(require('../ApiClient'), require('./TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank'), require('./TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard'), require('./TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCustomer'), require('./TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentType'));
|
|
23
23
|
} else {
|
|
24
24
|
// Browser globals (root is window)
|
|
25
25
|
if (!root.CyberSource) {
|
|
26
26
|
root.CyberSource = {};
|
|
27
27
|
}
|
|
28
|
-
root.CyberSource.TssV2TransactionsPost201ResponseEmbeddedPaymentInformation = factory(root.CyberSource.ApiClient, root.CyberSource.
|
|
28
|
+
root.CyberSource.TssV2TransactionsPost201ResponseEmbeddedPaymentInformation = factory(root.CyberSource.ApiClient, root.CyberSource.TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank, root.CyberSource.TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard, root.CyberSource.TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCustomer, root.CyberSource.TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentType);
|
|
29
29
|
}
|
|
30
|
-
}(this, function(ApiClient,
|
|
30
|
+
}(this, function(ApiClient, TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank, TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard, TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCustomer, TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentType) {
|
|
31
31
|
'use strict';
|
|
32
32
|
|
|
33
33
|
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
53
|
+
|
|
53
54
|
};
|
|
54
55
|
|
|
55
56
|
/**
|
|
@@ -67,11 +68,14 @@
|
|
|
67
68
|
obj['paymentType'] = TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentType.constructFromObject(data['paymentType']);
|
|
68
69
|
}
|
|
69
70
|
if (data.hasOwnProperty('customer')) {
|
|
70
|
-
obj['customer'] =
|
|
71
|
+
obj['customer'] = TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCustomer.constructFromObject(data['customer']);
|
|
71
72
|
}
|
|
72
73
|
if (data.hasOwnProperty('card')) {
|
|
73
74
|
obj['card'] = TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.constructFromObject(data['card']);
|
|
74
75
|
}
|
|
76
|
+
if (data.hasOwnProperty('bank')) {
|
|
77
|
+
obj['bank'] = TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank.constructFromObject(data['bank']);
|
|
78
|
+
}
|
|
75
79
|
}
|
|
76
80
|
return obj;
|
|
77
81
|
}
|
|
@@ -81,13 +85,17 @@
|
|
|
81
85
|
*/
|
|
82
86
|
exports.prototype['paymentType'] = undefined;
|
|
83
87
|
/**
|
|
84
|
-
* @member {module:model/
|
|
88
|
+
* @member {module:model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCustomer} customer
|
|
85
89
|
*/
|
|
86
90
|
exports.prototype['customer'] = undefined;
|
|
87
91
|
/**
|
|
88
92
|
* @member {module:model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard} card
|
|
89
93
|
*/
|
|
90
94
|
exports.prototype['card'] = undefined;
|
|
95
|
+
/**
|
|
96
|
+
* @member {module:model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank} bank
|
|
97
|
+
*/
|
|
98
|
+
exports.prototype['bank'] = undefined;
|
|
91
99
|
|
|
92
100
|
|
|
93
101
|
|
|
@@ -0,0 +1,81 @@
|
|
|
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.3.0
|
|
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', 'model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBankAccount'], 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'), require('./TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBankAccount'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
if (!root.CyberSource) {
|
|
26
|
+
root.CyberSource = {};
|
|
27
|
+
}
|
|
28
|
+
root.CyberSource.TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank = factory(root.CyberSource.ApiClient, root.CyberSource.TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBankAccount);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(ApiClient, TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBankAccount) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank model module.
|
|
38
|
+
* @module model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank
|
|
39
|
+
* @version 0.0.1
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new <code>TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank</code>.
|
|
44
|
+
* @alias module:model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank
|
|
45
|
+
* @class
|
|
46
|
+
*/
|
|
47
|
+
var exports = function() {
|
|
48
|
+
var _this = this;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constructs a <code>TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank</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/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank} The populated <code>TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank</code> instance.
|
|
59
|
+
*/
|
|
60
|
+
exports.constructFromObject = function(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new exports();
|
|
63
|
+
|
|
64
|
+
if (data.hasOwnProperty('account')) {
|
|
65
|
+
obj['account'] = TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBankAccount.constructFromObject(data['account']);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return obj;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @member {module:model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBankAccount} account
|
|
73
|
+
*/
|
|
74
|
+
exports.prototype['account'] = undefined;
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
return exports;
|
|
79
|
+
}));
|
|
80
|
+
|
|
81
|
+
|