cybersource-rest-client 0.0.48 → 0.0.49
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/BillingAgreementsApi.md +155 -0
- package/docs/CreateBillingAgreement.md +16 -0
- package/docs/CreateBundledDecisionManagerCaseRequest.md +1 -0
- package/docs/IntimateBillingAgreement.md +12 -0
- package/docs/InvoiceSettingsApi.md +2 -2
- package/docs/InvoicesApi.md +6 -6
- package/docs/ModifyBillingAgreement.md +16 -0
- package/docs/PlansApi.md +8 -8
- package/docs/PtsV2CreditsPost201Response1.md +12 -0
- package/docs/PtsV2CreditsPost201Response1InstallmentInformation.md +8 -0
- package/docs/PtsV2CreditsPost201Response1ProcessorInformation.md +9 -0
- package/docs/Ptsv2billingagreementsAggregatorInformation.md +9 -0
- package/docs/Ptsv2billingagreementsConsumerAuthenticationInformation.md +11 -0
- package/docs/Ptsv2billingagreementsDeviceInformation.md +10 -0
- package/docs/Ptsv2billingagreementsInstallmentInformation.md +16 -0
- package/docs/Ptsv2billingagreementsMerchantInformation.md +11 -0
- package/docs/Ptsv2billingagreementsMerchantInformationMerchantDescriptor.md +11 -0
- package/docs/Ptsv2billingagreementsOrderInformation.md +9 -0
- package/docs/Ptsv2billingagreementsOrderInformationBillTo.md +20 -0
- package/docs/Ptsv2billingagreementsPaymentInformation.md +9 -0
- package/docs/Ptsv2billingagreementsPaymentInformationCard.md +12 -0
- package/docs/Ptsv2billingagreementsPaymentInformationTokenizedCard.md +13 -0
- package/docs/Ptsv2billingagreementsProcessingInformation.md +9 -0
- package/docs/Ptsv2paymentsOrderInformation.md +1 -0
- package/docs/Riskv1authenticationsetupsTokenInformation.md +1 -0
- package/docs/Riskv1decisionsOrderInformation.md +1 -0
- package/docs/Riskv1decisionsTokenInformation.md +8 -0
- package/docs/SubscriptionsApi.md +8 -8
- package/docs/ValidateRequest.md +1 -0
- package/package.json +1 -1
- package/src/ApiClient.js +3 -1
- package/src/api/BillingAgreementsApi.js +203 -0
- package/src/api/InvoiceSettingsApi.js +2 -2
- package/src/api/InvoicesApi.js +6 -6
- package/src/api/PlansApi.js +8 -8
- package/src/api/SubscriptionsApi.js +8 -8
- package/src/index.js +103 -3
- package/src/model/CreateBillingAgreement.js +145 -0
- package/src/model/CreateBundledDecisionManagerCaseRequest.js +12 -4
- package/src/model/IntimateBillingAgreement.js +113 -0
- package/src/model/ModifyBillingAgreement.js +145 -0
- package/src/model/PtsV2CreditsPost201Response1.js +116 -0
- package/src/model/PtsV2CreditsPost201Response1InstallmentInformation.js +82 -0
- package/src/model/PtsV2CreditsPost201Response1ProcessorInformation.js +91 -0
- package/src/model/Ptsv2billingagreementsAggregatorInformation.js +90 -0
- package/src/model/Ptsv2billingagreementsConsumerAuthenticationInformation.js +109 -0
- package/src/model/Ptsv2billingagreementsDeviceInformation.js +100 -0
- package/src/model/Ptsv2billingagreementsInstallmentInformation.js +154 -0
- package/src/model/Ptsv2billingagreementsMerchantInformation.js +108 -0
- package/src/model/Ptsv2billingagreementsMerchantInformationMerchantDescriptor.js +109 -0
- package/src/model/Ptsv2billingagreementsOrderInformation.js +89 -0
- package/src/model/Ptsv2billingagreementsOrderInformationBillTo.js +190 -0
- package/src/model/Ptsv2billingagreementsPaymentInformation.js +89 -0
- package/src/model/Ptsv2billingagreementsPaymentInformationCard.js +118 -0
- package/src/model/Ptsv2billingagreementsPaymentInformationTokenizedCard.js +127 -0
- package/src/model/Ptsv2billingagreementsProcessingInformation.js +91 -0
- package/src/model/Ptsv2paymentsOrderInformation.js +9 -0
- package/src/model/Riskv1authenticationsetupsTokenInformation.js +9 -0
- package/src/model/Riskv1decisionsOrderInformation.js +9 -0
- package/src/model/Riskv1decisionsTokenInformation.js +82 -0
- package/src/model/ValidateRequest.js +12 -4
|
@@ -0,0 +1,127 @@
|
|
|
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'], 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.Ptsv2billingagreementsPaymentInformationTokenizedCard = factory(root.CyberSource.ApiClient);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(ApiClient) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Ptsv2billingagreementsPaymentInformationTokenizedCard model module.
|
|
38
|
+
* @module model/Ptsv2billingagreementsPaymentInformationTokenizedCard
|
|
39
|
+
* @version 0.0.1
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new <code>Ptsv2billingagreementsPaymentInformationTokenizedCard</code>.
|
|
44
|
+
* @alias module:model/Ptsv2billingagreementsPaymentInformationTokenizedCard
|
|
45
|
+
* @class
|
|
46
|
+
*/
|
|
47
|
+
var exports = function() {
|
|
48
|
+
var _this = this;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>Ptsv2billingagreementsPaymentInformationTokenizedCard</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
+
* @param {module:model/Ptsv2billingagreementsPaymentInformationTokenizedCard} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/Ptsv2billingagreementsPaymentInformationTokenizedCard} The populated <code>Ptsv2billingagreementsPaymentInformationTokenizedCard</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
exports.constructFromObject = function(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new exports();
|
|
68
|
+
|
|
69
|
+
if (data.hasOwnProperty('cryptogram')) {
|
|
70
|
+
obj['cryptogram'] = ApiClient.convertToType(data['cryptogram'], 'String');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('expirationMonth')) {
|
|
73
|
+
obj['expirationMonth'] = ApiClient.convertToType(data['expirationMonth'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('expirationYear')) {
|
|
76
|
+
obj['expirationYear'] = ApiClient.convertToType(data['expirationYear'], 'String');
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('number')) {
|
|
79
|
+
obj['number'] = ApiClient.convertToType(data['number'], 'String');
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('transactionType')) {
|
|
82
|
+
obj['transactionType'] = ApiClient.convertToType(data['transactionType'], 'String');
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('type')) {
|
|
85
|
+
obj['type'] = ApiClient.convertToType(data['type'], 'String');
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return obj;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* This field contains token information.
|
|
93
|
+
* @member {String} cryptogram
|
|
94
|
+
*/
|
|
95
|
+
exports.prototype['cryptogram'] = undefined;
|
|
96
|
+
/**
|
|
97
|
+
* 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)
|
|
98
|
+
* @member {String} expirationMonth
|
|
99
|
+
*/
|
|
100
|
+
exports.prototype['expirationMonth'] = undefined;
|
|
101
|
+
/**
|
|
102
|
+
* 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)
|
|
103
|
+
* @member {String} expirationYear
|
|
104
|
+
*/
|
|
105
|
+
exports.prototype['expirationYear'] = undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Customer’s payment network token value.
|
|
108
|
+
* @member {String} number
|
|
109
|
+
*/
|
|
110
|
+
exports.prototype['number'] = undefined;
|
|
111
|
+
/**
|
|
112
|
+
* 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.
|
|
113
|
+
* @member {String} transactionType
|
|
114
|
+
*/
|
|
115
|
+
exports.prototype['transactionType'] = undefined;
|
|
116
|
+
/**
|
|
117
|
+
* 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 - '070': EFTPOS [^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
|
|
118
|
+
* @member {String} type
|
|
119
|
+
*/
|
|
120
|
+
exports.prototype['type'] = undefined;
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
return exports;
|
|
125
|
+
}));
|
|
126
|
+
|
|
127
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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'], 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.Ptsv2billingagreementsProcessingInformation = factory(root.CyberSource.ApiClient);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(ApiClient) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Ptsv2billingagreementsProcessingInformation model module.
|
|
38
|
+
* @module model/Ptsv2billingagreementsProcessingInformation
|
|
39
|
+
* @version 0.0.1
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new <code>Ptsv2billingagreementsProcessingInformation</code>.
|
|
44
|
+
* @alias module:model/Ptsv2billingagreementsProcessingInformation
|
|
45
|
+
* @class
|
|
46
|
+
*/
|
|
47
|
+
var exports = function() {
|
|
48
|
+
var _this = this;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>Ptsv2billingagreementsProcessingInformation</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
57
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
58
|
+
* @param {module:model/Ptsv2billingagreementsProcessingInformation} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/Ptsv2billingagreementsProcessingInformation} The populated <code>Ptsv2billingagreementsProcessingInformation</code> instance.
|
|
60
|
+
*/
|
|
61
|
+
exports.constructFromObject = function(data, obj) {
|
|
62
|
+
if (data) {
|
|
63
|
+
obj = obj || new exports();
|
|
64
|
+
|
|
65
|
+
if (data.hasOwnProperty('commerceIndicator')) {
|
|
66
|
+
obj['commerceIndicator'] = ApiClient.convertToType(data['commerceIndicator'], 'String');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('actionList')) {
|
|
69
|
+
obj['actionList'] = ApiClient.convertToType(data['actionList'], ['String']);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Type of transaction. Used to determine fees based on channel. Possible values: - aesk: American Express SafeKey authentication was successful. - aesk_attempted: American Express SafeKey authentication was attempted but did not succeed. • install: Installment payment. - install_internet: Non-U.S. e-commerce (Internet) installment payment. This value is supported only on Visa Platform Connect. - internet (default for authorizations): E-commerce order placed using a web site. - js: JCB J/Secure authentication was successful. - js_attempted: JCB J/Secure authentication was attempted but did not succeed. - moto: Mail order or telephone order. - moto_cc: Mail order or telephone order from a call center. This value is supported only on the Asia, Middle East, and Africa Gateway. - pb: ProtectBuy authentication was successful. - pb_attempted: ProtectBuy authentication was attempted but did not succeed. - recurring: Recurring payment that is a U.S. transaction or non-U.S. mail order / telephone order (MOTO) transaction. - recurring_internet: Recurring payment that is a non-U.S. e-commerce (Internet) transaction. - retail: Card-present transaction. - spa: For Mastercard Identity Check: Authentication was successful or was attempted but did not succeed. The e-commerce indicator for all Mastercard Identity Check transactions, including authentication attempts, must be set to spa. - spa_attempted: Authentication for a co-badged Mastercard and Cartes Bancaires card was attempted but did not succeed. - spa_failure: – For Mastercard Identity Check: Authentication failed. This value is supported only on Elavon, HSBC, and Streamline. - vbv: – For Visa Secure: Authentication was successful. - vbv_attempted: – For Visa Secure: Authentication was attempted but did not succeed. - vbv_failure: – For Visa Secure: Authentication failed. This value is supported only on HSBC and Streamline.
|
|
77
|
+
* @member {String} commerceIndicator
|
|
78
|
+
*/
|
|
79
|
+
exports.prototype['commerceIndicator'] = undefined;
|
|
80
|
+
/**
|
|
81
|
+
* - Use `CONSUMER_AUTHENTICATION` to use Payer Authentication along with Decision Manager. For any other value, only Decision Manager will run. - Use `WATCHLIST_SCREENING` when you want to call Watchlist Screening service. - Use `UPDATE_AGREEMENT` - Use `BILLING_AGREEMENT_CREATE` - Use `CANCEL_AGREEMENT`
|
|
82
|
+
* @member {Array.<String>} actionList
|
|
83
|
+
*/
|
|
84
|
+
exports.prototype['actionList'] = undefined;
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
return exports;
|
|
89
|
+
}));
|
|
90
|
+
|
|
91
|
+
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
+
|
|
62
63
|
};
|
|
63
64
|
|
|
64
65
|
/**
|
|
@@ -96,6 +97,9 @@
|
|
|
96
97
|
if (data.hasOwnProperty('isCryptocurrencyPurchase')) {
|
|
97
98
|
obj['isCryptocurrencyPurchase'] = ApiClient.convertToType(data['isCryptocurrencyPurchase'], 'String');
|
|
98
99
|
}
|
|
100
|
+
if (data.hasOwnProperty('cutoffDateTime')) {
|
|
101
|
+
obj['cutoffDateTime'] = ApiClient.convertToType(data['cutoffDateTime'], 'String');
|
|
102
|
+
}
|
|
99
103
|
if (data.hasOwnProperty('preOrder')) {
|
|
100
104
|
obj['preOrder'] = ApiClient.convertToType(data['preOrder'], 'String');
|
|
101
105
|
}
|
|
@@ -146,6 +150,11 @@
|
|
|
146
150
|
* @member {String} isCryptocurrencyPurchase
|
|
147
151
|
*/
|
|
148
152
|
exports.prototype['isCryptocurrencyPurchase'] = undefined;
|
|
153
|
+
/**
|
|
154
|
+
* Starting date and time for an event or a journey that is independent of which transportation mechanism, in UTC. The cutoffDateTime will supersede travelInformation.transit.airline.legs[].departureDate and travelInformation.transit.airline.legs[].departureTime if these fields are supplied in the request. Format: YYYY-MM-DDThh:mm:ssZ. Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
|
|
155
|
+
* @member {String} cutoffDateTime
|
|
156
|
+
*/
|
|
157
|
+
exports.prototype['cutoffDateTime'] = undefined;
|
|
149
158
|
/**
|
|
150
159
|
* Indicates whether cardholder is placing an order with a future availability or release date. This field can contain one of these values: - MERCHANDISE_AVAILABLE: Merchandise available - FUTURE_AVAILABILITY: Future availability
|
|
151
160
|
* @member {String} preOrder
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
var _this = this;
|
|
49
49
|
|
|
50
50
|
|
|
51
|
+
|
|
51
52
|
};
|
|
52
53
|
|
|
53
54
|
/**
|
|
@@ -64,6 +65,9 @@
|
|
|
64
65
|
if (data.hasOwnProperty('transientToken')) {
|
|
65
66
|
obj['transientToken'] = ApiClient.convertToType(data['transientToken'], 'String');
|
|
66
67
|
}
|
|
68
|
+
if (data.hasOwnProperty('jti')) {
|
|
69
|
+
obj['jti'] = ApiClient.convertToType(data['jti'], 'String');
|
|
70
|
+
}
|
|
67
71
|
}
|
|
68
72
|
return obj;
|
|
69
73
|
}
|
|
@@ -73,6 +77,11 @@
|
|
|
73
77
|
* @member {String} transientToken
|
|
74
78
|
*/
|
|
75
79
|
exports.prototype['transientToken'] = undefined;
|
|
80
|
+
/**
|
|
81
|
+
* TMS Transient Token, 64 hexadecimal id value representing captured payment credentials (including Sensitive Authentication Data, e.g. CVV).
|
|
82
|
+
* @member {String} jti
|
|
83
|
+
*/
|
|
84
|
+
exports.prototype['jti'] = undefined;
|
|
76
85
|
|
|
77
86
|
|
|
78
87
|
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
+
|
|
61
62
|
};
|
|
62
63
|
|
|
63
64
|
/**
|
|
@@ -80,6 +81,9 @@
|
|
|
80
81
|
if (data.hasOwnProperty('preOrderDate')) {
|
|
81
82
|
obj['preOrderDate'] = ApiClient.convertToType(data['preOrderDate'], 'String');
|
|
82
83
|
}
|
|
84
|
+
if (data.hasOwnProperty('cutoffDateTime')) {
|
|
85
|
+
obj['cutoffDateTime'] = ApiClient.convertToType(data['cutoffDateTime'], 'String');
|
|
86
|
+
}
|
|
83
87
|
if (data.hasOwnProperty('reordered')) {
|
|
84
88
|
obj['reordered'] = ApiClient.convertToType(data['reordered'], 'Boolean');
|
|
85
89
|
}
|
|
@@ -119,6 +123,11 @@
|
|
|
119
123
|
* @member {String} preOrderDate
|
|
120
124
|
*/
|
|
121
125
|
exports.prototype['preOrderDate'] = undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Starting date and time for an event or a journey that is independent of which transportation mechanism, in UTC. The cutoffDateTime will supersede travelInformation.departureTime if both are supplied in the request. Format: YYYY-MM-DDThh:mm:ssZ. Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
|
|
128
|
+
* @member {String} cutoffDateTime
|
|
129
|
+
*/
|
|
130
|
+
exports.prototype['cutoffDateTime'] = undefined;
|
|
122
131
|
/**
|
|
123
132
|
* Indicates whether the cardholder is reordering previously purchased merchandise. This field can contain one of these values: - false: First time ordered - true: Reordered
|
|
124
133
|
* @member {Boolean} reordered
|
|
@@ -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.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'], 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.Riskv1decisionsTokenInformation = factory(root.CyberSource.ApiClient);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(ApiClient) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Riskv1decisionsTokenInformation model module.
|
|
38
|
+
* @module model/Riskv1decisionsTokenInformation
|
|
39
|
+
* @version 0.0.1
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new <code>Riskv1decisionsTokenInformation</code>.
|
|
44
|
+
* @alias module:model/Riskv1decisionsTokenInformation
|
|
45
|
+
* @class
|
|
46
|
+
*/
|
|
47
|
+
var exports = function() {
|
|
48
|
+
var _this = this;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constructs a <code>Riskv1decisionsTokenInformation</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/Riskv1decisionsTokenInformation} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/Riskv1decisionsTokenInformation} The populated <code>Riskv1decisionsTokenInformation</code> instance.
|
|
59
|
+
*/
|
|
60
|
+
exports.constructFromObject = function(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new exports();
|
|
63
|
+
|
|
64
|
+
if (data.hasOwnProperty('jti')) {
|
|
65
|
+
obj['jti'] = ApiClient.convertToType(data['jti'], 'String');
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return obj;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* TMS Transient Token, 64 hexadecimal id value representing captured payment credentials (including Sensitive Authentication Data, e.g. CVV).
|
|
73
|
+
* @member {String} jti
|
|
74
|
+
*/
|
|
75
|
+
exports.prototype['jti'] = undefined;
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
return exports;
|
|
80
|
+
}));
|
|
81
|
+
|
|
82
|
+
|
|
@@ -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/Riskv1authenticationresultsConsumerAuthenticationInformation', 'model/Riskv1authenticationresultsDeviceInformation', 'model/Riskv1authenticationresultsOrderInformation', 'model/Riskv1authenticationresultsPaymentInformation', 'model/Riskv1authenticationsetupsProcessingInformation', 'model/Riskv1decisionsClientReferenceInformation'], factory);
|
|
19
|
+
define(['ApiClient', 'model/Riskv1authenticationresultsConsumerAuthenticationInformation', 'model/Riskv1authenticationresultsDeviceInformation', 'model/Riskv1authenticationresultsOrderInformation', 'model/Riskv1authenticationresultsPaymentInformation', 'model/Riskv1authenticationsetupsProcessingInformation', 'model/Riskv1decisionsClientReferenceInformation', 'model/Riskv1decisionsTokenInformation'], 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('./Riskv1authenticationresultsConsumerAuthenticationInformation'), require('./Riskv1authenticationresultsDeviceInformation'), require('./Riskv1authenticationresultsOrderInformation'), require('./Riskv1authenticationresultsPaymentInformation'), require('./Riskv1authenticationsetupsProcessingInformation'), require('./Riskv1decisionsClientReferenceInformation'));
|
|
22
|
+
module.exports = factory(require('../ApiClient'), require('./Riskv1authenticationresultsConsumerAuthenticationInformation'), require('./Riskv1authenticationresultsDeviceInformation'), require('./Riskv1authenticationresultsOrderInformation'), require('./Riskv1authenticationresultsPaymentInformation'), require('./Riskv1authenticationsetupsProcessingInformation'), require('./Riskv1decisionsClientReferenceInformation'), require('./Riskv1decisionsTokenInformation'));
|
|
23
23
|
} else {
|
|
24
24
|
// Browser globals (root is window)
|
|
25
25
|
if (!root.CyberSource) {
|
|
26
26
|
root.CyberSource = {};
|
|
27
27
|
}
|
|
28
|
-
root.CyberSource.ValidateRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Riskv1authenticationresultsConsumerAuthenticationInformation, root.CyberSource.Riskv1authenticationresultsDeviceInformation, root.CyberSource.Riskv1authenticationresultsOrderInformation, root.CyberSource.Riskv1authenticationresultsPaymentInformation, root.CyberSource.Riskv1authenticationsetupsProcessingInformation, root.CyberSource.Riskv1decisionsClientReferenceInformation);
|
|
28
|
+
root.CyberSource.ValidateRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Riskv1authenticationresultsConsumerAuthenticationInformation, root.CyberSource.Riskv1authenticationresultsDeviceInformation, root.CyberSource.Riskv1authenticationresultsOrderInformation, root.CyberSource.Riskv1authenticationresultsPaymentInformation, root.CyberSource.Riskv1authenticationsetupsProcessingInformation, root.CyberSource.Riskv1decisionsClientReferenceInformation, root.CyberSource.Riskv1decisionsTokenInformation);
|
|
29
29
|
}
|
|
30
|
-
}(this, function(ApiClient, Riskv1authenticationresultsConsumerAuthenticationInformation, Riskv1authenticationresultsDeviceInformation, Riskv1authenticationresultsOrderInformation, Riskv1authenticationresultsPaymentInformation, Riskv1authenticationsetupsProcessingInformation, Riskv1decisionsClientReferenceInformation) {
|
|
30
|
+
}(this, function(ApiClient, Riskv1authenticationresultsConsumerAuthenticationInformation, Riskv1authenticationresultsDeviceInformation, Riskv1authenticationresultsOrderInformation, Riskv1authenticationresultsPaymentInformation, Riskv1authenticationsetupsProcessingInformation, Riskv1decisionsClientReferenceInformation, Riskv1decisionsTokenInformation) {
|
|
31
31
|
'use strict';
|
|
32
32
|
|
|
33
33
|
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
+
|
|
56
57
|
};
|
|
57
58
|
|
|
58
59
|
/**
|
|
@@ -84,6 +85,9 @@
|
|
|
84
85
|
if (data.hasOwnProperty('deviceInformation')) {
|
|
85
86
|
obj['deviceInformation'] = Riskv1authenticationresultsDeviceInformation.constructFromObject(data['deviceInformation']);
|
|
86
87
|
}
|
|
88
|
+
if (data.hasOwnProperty('tokenInformation')) {
|
|
89
|
+
obj['tokenInformation'] = Riskv1decisionsTokenInformation.constructFromObject(data['tokenInformation']);
|
|
90
|
+
}
|
|
87
91
|
}
|
|
88
92
|
return obj;
|
|
89
93
|
}
|
|
@@ -112,6 +116,10 @@
|
|
|
112
116
|
* @member {module:model/Riskv1authenticationresultsDeviceInformation} deviceInformation
|
|
113
117
|
*/
|
|
114
118
|
exports.prototype['deviceInformation'] = undefined;
|
|
119
|
+
/**
|
|
120
|
+
* @member {module:model/Riskv1decisionsTokenInformation} tokenInformation
|
|
121
|
+
*/
|
|
122
|
+
exports.prototype['tokenInformation'] = undefined;
|
|
115
123
|
|
|
116
124
|
|
|
117
125
|
|