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,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.PtsV2CreditsPost201Response1ProcessorInformation = factory(root.CyberSource.ApiClient);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(ApiClient) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The PtsV2CreditsPost201Response1ProcessorInformation model module.
|
|
38
|
+
* @module model/PtsV2CreditsPost201Response1ProcessorInformation
|
|
39
|
+
* @version 0.0.1
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new <code>PtsV2CreditsPost201Response1ProcessorInformation</code>.
|
|
44
|
+
* @alias module:model/PtsV2CreditsPost201Response1ProcessorInformation
|
|
45
|
+
* @class
|
|
46
|
+
*/
|
|
47
|
+
var exports = function() {
|
|
48
|
+
var _this = this;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>PtsV2CreditsPost201Response1ProcessorInformation</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/PtsV2CreditsPost201Response1ProcessorInformation} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/PtsV2CreditsPost201Response1ProcessorInformation} The populated <code>PtsV2CreditsPost201Response1ProcessorInformation</code> instance.
|
|
60
|
+
*/
|
|
61
|
+
exports.constructFromObject = function(data, obj) {
|
|
62
|
+
if (data) {
|
|
63
|
+
obj = obj || new exports();
|
|
64
|
+
|
|
65
|
+
if (data.hasOwnProperty('approvalCode')) {
|
|
66
|
+
obj['approvalCode'] = ApiClient.convertToType(data['approvalCode'], 'String');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('responseCode')) {
|
|
69
|
+
obj['responseCode'] = ApiClient.convertToType(data['responseCode'], 'String');
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Authorization code. Returned only when the processor returns this value. The length of this value depends on your processor. Returned by authorization service. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit credit. #### Elavon Encrypted Account Number Program The returned value is OFFLINE. #### TSYS Acquiring Solutions The returned value for a successful zero amount authorization is 000000.
|
|
77
|
+
* @member {String} approvalCode
|
|
78
|
+
*/
|
|
79
|
+
exports.prototype['approvalCode'] = undefined;
|
|
80
|
+
/**
|
|
81
|
+
* For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. **Important** Do not use this field to evaluate the result of the authorization. #### PIN debit Response value that is returned by the processor or bank. **Important** Do not use this field to evaluate the results of the transaction request. Returned by PIN debit credit, PIN debit purchase, and PIN debit reversal. #### AIBMS If this value is `08`, you can accept the transaction if the customer provides you with identification. #### Atos This value is the response code sent from Atos and it might also include the response code from the bank. Format: `aa,bb` with the two values separated by a comma and where: - `aa` is the two-digit error message from Atos. - `bb` is the optional two-digit error message from the bank. #### Comercio Latino This value is the status code and the error or response code received from the processor separated by a colon. Format: [status code]:E[error code] or [status code]:R[response code] Example `2:R06` #### JCN Gateway Processor-defined detail error code. The associated response category code is in the `processorInformation.responseCategoryCode` field. String (3)
|
|
82
|
+
* @member {String} responseCode
|
|
83
|
+
*/
|
|
84
|
+
exports.prototype['responseCode'] = undefined;
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
return exports;
|
|
89
|
+
}));
|
|
90
|
+
|
|
91
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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/Ptsv2paymentsAggregatorInformationSubMerchant'], 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('./Ptsv2paymentsAggregatorInformationSubMerchant'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
if (!root.CyberSource) {
|
|
26
|
+
root.CyberSource = {};
|
|
27
|
+
}
|
|
28
|
+
root.CyberSource.Ptsv2billingagreementsAggregatorInformation = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2paymentsAggregatorInformationSubMerchant);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(ApiClient, Ptsv2paymentsAggregatorInformationSubMerchant) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Ptsv2billingagreementsAggregatorInformation model module.
|
|
38
|
+
* @module model/Ptsv2billingagreementsAggregatorInformation
|
|
39
|
+
* @version 0.0.1
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new <code>Ptsv2billingagreementsAggregatorInformation</code>.
|
|
44
|
+
* @alias module:model/Ptsv2billingagreementsAggregatorInformation
|
|
45
|
+
* @class
|
|
46
|
+
*/
|
|
47
|
+
var exports = function() {
|
|
48
|
+
var _this = this;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>Ptsv2billingagreementsAggregatorInformation</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/Ptsv2billingagreementsAggregatorInformation} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/Ptsv2billingagreementsAggregatorInformation} The populated <code>Ptsv2billingagreementsAggregatorInformation</code> instance.
|
|
60
|
+
*/
|
|
61
|
+
exports.constructFromObject = function(data, obj) {
|
|
62
|
+
if (data) {
|
|
63
|
+
obj = obj || new exports();
|
|
64
|
+
|
|
65
|
+
if (data.hasOwnProperty('name')) {
|
|
66
|
+
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('subMerchant')) {
|
|
69
|
+
obj['subMerchant'] = Ptsv2paymentsAggregatorInformationSubMerchant.constructFromObject(data['subMerchant']);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Your payment aggregator business name. **American Express Direct**\\ The maximum length of the aggregator name depends on the length of the sub-merchant name. The combined length for both values must not exceed 36 characters.\\ #### CyberSource through VisaNet With American Express, the maximum length of the aggregator name depends on the length of the sub-merchant name. The combined length for both values must not exceed 36 characters. The value for this field does not map to the TC 33 capture file5. **FDC Compass**\\ This value must consist of uppercase characters. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
|
77
|
+
* @member {String} name
|
|
78
|
+
*/
|
|
79
|
+
exports.prototype['name'] = undefined;
|
|
80
|
+
/**
|
|
81
|
+
* @member {module:model/Ptsv2paymentsAggregatorInformationSubMerchant} subMerchant
|
|
82
|
+
*/
|
|
83
|
+
exports.prototype['subMerchant'] = undefined;
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
return exports;
|
|
88
|
+
}));
|
|
89
|
+
|
|
90
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
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.Ptsv2billingagreementsConsumerAuthenticationInformation = factory(root.CyberSource.ApiClient);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(ApiClient) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Ptsv2billingagreementsConsumerAuthenticationInformation model module.
|
|
38
|
+
* @module model/Ptsv2billingagreementsConsumerAuthenticationInformation
|
|
39
|
+
* @version 0.0.1
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new <code>Ptsv2billingagreementsConsumerAuthenticationInformation</code>.
|
|
44
|
+
* @alias module:model/Ptsv2billingagreementsConsumerAuthenticationInformation
|
|
45
|
+
* @class
|
|
46
|
+
*/
|
|
47
|
+
var exports = function() {
|
|
48
|
+
var _this = this;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>Ptsv2billingagreementsConsumerAuthenticationInformation</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/Ptsv2billingagreementsConsumerAuthenticationInformation} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/Ptsv2billingagreementsConsumerAuthenticationInformation} The populated <code>Ptsv2billingagreementsConsumerAuthenticationInformation</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
exports.constructFromObject = function(data, obj) {
|
|
64
|
+
if (data) {
|
|
65
|
+
obj = obj || new exports();
|
|
66
|
+
|
|
67
|
+
if (data.hasOwnProperty('authenticationTransactionContextId')) {
|
|
68
|
+
obj['authenticationTransactionContextId'] = ApiClient.convertToType(data['authenticationTransactionContextId'], 'String');
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('cavv')) {
|
|
71
|
+
obj['cavv'] = ApiClient.convertToType(data['cavv'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('transactionToken')) {
|
|
74
|
+
obj['transactionToken'] = ApiClient.convertToType(data['transactionToken'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('xid')) {
|
|
77
|
+
obj['xid'] = ApiClient.convertToType(data['xid'], 'String');
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return obj;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Payer authentication transaction identifier passed to link the validation and authorization calls.
|
|
85
|
+
* @member {String} authenticationTransactionContextId
|
|
86
|
+
*/
|
|
87
|
+
exports.prototype['authenticationTransactionContextId'] = undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Unique identifier generated by the card-issuing bank for Visa, American Express, JCB, Diners Club, and Discover transactions after the customer is authenticated. The value is in base64. When you request the card authorization service, CyberSource automatically converts the value, not the field name, to the format required by your payment processor.
|
|
90
|
+
* @member {String} cavv
|
|
91
|
+
*/
|
|
92
|
+
exports.prototype['cavv'] = undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Web based token used to authenticate consumer with Rupay authentication provider.
|
|
95
|
+
* @member {String} transactionToken
|
|
96
|
+
*/
|
|
97
|
+
exports.prototype['transactionToken'] = undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Transaction identifier generated by CyberSource for successful enrollment or validation checks. Use this value, which is in base64, to match an outgoing PAReq with an incoming PARes. CyberSource forwards the XID with the card authorization service to these payment processors in these cases: - Barclays - Streamline (when the **ecommerceIndicator**`=spa`)
|
|
100
|
+
* @member {String} xid
|
|
101
|
+
*/
|
|
102
|
+
exports.prototype['xid'] = undefined;
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
return exports;
|
|
107
|
+
}));
|
|
108
|
+
|
|
109
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
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.Ptsv2billingagreementsDeviceInformation = factory(root.CyberSource.ApiClient);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(ApiClient) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Ptsv2billingagreementsDeviceInformation model module.
|
|
38
|
+
* @module model/Ptsv2billingagreementsDeviceInformation
|
|
39
|
+
* @version 0.0.1
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new <code>Ptsv2billingagreementsDeviceInformation</code>.
|
|
44
|
+
* @alias module:model/Ptsv2billingagreementsDeviceInformation
|
|
45
|
+
* @class
|
|
46
|
+
*/
|
|
47
|
+
var exports = function() {
|
|
48
|
+
var _this = this;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Constructs a <code>Ptsv2billingagreementsDeviceInformation</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
+
* @param {module:model/Ptsv2billingagreementsDeviceInformation} obj Optional instance to populate.
|
|
60
|
+
* @return {module:model/Ptsv2billingagreementsDeviceInformation} The populated <code>Ptsv2billingagreementsDeviceInformation</code> instance.
|
|
61
|
+
*/
|
|
62
|
+
exports.constructFromObject = function(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new exports();
|
|
65
|
+
|
|
66
|
+
if (data.hasOwnProperty('httpAcceptBrowserValue')) {
|
|
67
|
+
obj['httpAcceptBrowserValue'] = ApiClient.convertToType(data['httpAcceptBrowserValue'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('ipAddress')) {
|
|
70
|
+
obj['ipAddress'] = ApiClient.convertToType(data['ipAddress'], 'String');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('userAgentBrowserValue')) {
|
|
73
|
+
obj['userAgentBrowserValue'] = ApiClient.convertToType(data['userAgentBrowserValue'], 'String');
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return obj;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Value of the Accept header sent by the customer’s web browser. **Note** If the customer’s browser provides a value, you must include it in your request.
|
|
81
|
+
* @member {String} httpAcceptBrowserValue
|
|
82
|
+
*/
|
|
83
|
+
exports.prototype['httpAcceptBrowserValue'] = undefined;
|
|
84
|
+
/**
|
|
85
|
+
* IP address of the customer. #### Used by **Authorization, Capture, and Credit** Optional field.
|
|
86
|
+
* @member {String} ipAddress
|
|
87
|
+
*/
|
|
88
|
+
exports.prototype['ipAddress'] = undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Value of the User-Agent header sent by the customer’s web browser. Note If the customer’s browser provides a value, you must include it in your request.
|
|
91
|
+
* @member {String} userAgentBrowserValue
|
|
92
|
+
*/
|
|
93
|
+
exports.prototype['userAgentBrowserValue'] = undefined;
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
return exports;
|
|
98
|
+
}));
|
|
99
|
+
|
|
100
|
+
|
|
@@ -0,0 +1,154 @@
|
|
|
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.Ptsv2billingagreementsInstallmentInformation = factory(root.CyberSource.ApiClient);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(ApiClient) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Ptsv2billingagreementsInstallmentInformation model module.
|
|
38
|
+
* @module model/Ptsv2billingagreementsInstallmentInformation
|
|
39
|
+
* @version 0.0.1
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new <code>Ptsv2billingagreementsInstallmentInformation</code>.
|
|
44
|
+
* @alias module:model/Ptsv2billingagreementsInstallmentInformation
|
|
45
|
+
* @class
|
|
46
|
+
*/
|
|
47
|
+
var exports = function() {
|
|
48
|
+
var _this = this;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a <code>Ptsv2billingagreementsInstallmentInformation</code> from a plain JavaScript object, optionally creating a new instance.
|
|
63
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
64
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
65
|
+
* @param {module:model/Ptsv2billingagreementsInstallmentInformation} obj Optional instance to populate.
|
|
66
|
+
* @return {module:model/Ptsv2billingagreementsInstallmentInformation} The populated <code>Ptsv2billingagreementsInstallmentInformation</code> instance.
|
|
67
|
+
*/
|
|
68
|
+
exports.constructFromObject = function(data, obj) {
|
|
69
|
+
if (data) {
|
|
70
|
+
obj = obj || new exports();
|
|
71
|
+
|
|
72
|
+
if (data.hasOwnProperty('alertPreference')) {
|
|
73
|
+
obj['alertPreference'] = ApiClient.convertToType(data['alertPreference'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('firstInstallmentDate')) {
|
|
76
|
+
obj['firstInstallmentDate'] = ApiClient.convertToType(data['firstInstallmentDate'], 'String');
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('identifier')) {
|
|
79
|
+
obj['identifier'] = ApiClient.convertToType(data['identifier'], 'String');
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('lastInstallmentDate')) {
|
|
82
|
+
obj['lastInstallmentDate'] = ApiClient.convertToType(data['lastInstallmentDate'], 'String');
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('maxAmount')) {
|
|
85
|
+
obj['maxAmount'] = ApiClient.convertToType(data['maxAmount'], 'String');
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty('minAmount')) {
|
|
88
|
+
obj['minAmount'] = ApiClient.convertToType(data['minAmount'], 'String');
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty('paymentType')) {
|
|
91
|
+
obj['paymentType'] = ApiClient.convertToType(data['paymentType'], 'String');
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty('preferredDay')) {
|
|
94
|
+
obj['preferredDay'] = ApiClient.convertToType(data['preferredDay'], 'String');
|
|
95
|
+
}
|
|
96
|
+
if (data.hasOwnProperty('sequence')) {
|
|
97
|
+
obj['sequence'] = ApiClient.convertToType(data['sequence'], 'Number');
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return obj;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Applicable only for SI. Required in case the authentication is initiated for SI registration. Valid Values: - `SMS` - `EMAIL` - `BOTH`
|
|
105
|
+
* @member {String} alertPreference
|
|
106
|
+
*/
|
|
107
|
+
exports.prototype['alertPreference'] = undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Date of the first installment payment. Format: YYMMDD. When you do not include this field, CyberSource sends a string of six zeros (000000) to the processor. For details, see \"Installment Payments on CyberSource through VisaNet\" in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) This field is supported only for Crediario installment payments in Brazil on CyberSource through VisaNet. The value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR9 - Position: 42-47 - Field: Date of First Installment
|
|
110
|
+
* @member {String} firstInstallmentDate
|
|
111
|
+
*/
|
|
112
|
+
exports.prototype['firstInstallmentDate'] = undefined;
|
|
113
|
+
/**
|
|
114
|
+
* Standing Instruction/Installment identifier.
|
|
115
|
+
* @member {String} identifier
|
|
116
|
+
*/
|
|
117
|
+
exports.prototype['identifier'] = undefined;
|
|
118
|
+
/**
|
|
119
|
+
* End date of the SI transactions. Cannot be later than card expiry date. Ideally this can be set to expiry date. Required in case the authentication is initiated for SI registration.
|
|
120
|
+
* @member {String} lastInstallmentDate
|
|
121
|
+
*/
|
|
122
|
+
exports.prototype['lastInstallmentDate'] = undefined;
|
|
123
|
+
/**
|
|
124
|
+
* Maximum Amount for which SI can be initiated. Required in case the authentication is initiated for SI registration.
|
|
125
|
+
* @member {String} maxAmount
|
|
126
|
+
*/
|
|
127
|
+
exports.prototype['maxAmount'] = undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Minimum Amount for which SI can be initiated. Required in case the authentication is initiated for SI registration.
|
|
130
|
+
* @member {String} minAmount
|
|
131
|
+
*/
|
|
132
|
+
exports.prototype['minAmount'] = undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Payment plan for the installments. Possible values: - 0 (default): Regular installment. This value is not allowed for airline transactions. - 1: Installment payment with down payment. - 2: Installment payment without down payment. This value is supported only for airline transactions. - 3: Installment payment; down payment and boarding fee will follow. This value is supported only for airline transactions. - 4: Down payment only; regular installment payment will follow. - 5: Boarding fee only. This value is supported only for airline transactions. This field is supported only for installment payments with Visa on CyberSource through VisaNet in Brazil. For details, see \"Installment Payments on CyberSource through VisaNet\" in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR1 - Position: 9 - Field: Merchant Installment Supporting Information
|
|
135
|
+
* @member {String} paymentType
|
|
136
|
+
*/
|
|
137
|
+
exports.prototype['paymentType'] = undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Preferred date for initiating the SI transaction every month. This field need not be sent in case the SI has to be initiated as and when required, e.g., topping up the wallet, etc.
|
|
140
|
+
* @member {String} preferredDay
|
|
141
|
+
*/
|
|
142
|
+
exports.prototype['preferredDay'] = undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Installment number when making payments in installments. Used along with `totalCount` to track which payment is being processed. For example, the second of 5 payments would be passed to CyberSource as `sequence` = 2 and `totalCount` = 5. For details, see \"Installment Payments\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) #### Chase Paymentech Solutions and FDC Compass This field is optional because this value is required in the merchant descriptors. For details, see \"Chase Paymentech Solutions Merchant Descriptors\" and \"FDC Compass Merchant Descriptors\" in the [Merchant Descriptors Using the SCMP API] (https://apps.cybersource.com/library/documentation/dev_guides/Merchant_Descriptors_SCMP_API/html/) #### CyberSource through VisaNet When you do not include this field in a request for a Crediario installment payment, CyberSource sends a value of 0 to the processor. For Crediario installment payments, the value for this field corresponds to the following data in the TC 33 capture file*: - Record: CP01 TCR9 - Position: 38-40 - Field: Installment Payment Number * The TC 33 Capture file contains information about the purchases and refunds that a merchant submits to CyberSource. CyberSource through VisaNet creates the TC 33 Capture file at the end of the day and sends it to the merchant’s acquirer, who uses this information to facilitate end-of-day clearing processing with payment card companies.
|
|
145
|
+
* @member {Number} sequence
|
|
146
|
+
*/
|
|
147
|
+
exports.prototype['sequence'] = undefined;
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
return exports;
|
|
152
|
+
}));
|
|
153
|
+
|
|
154
|
+
|
|
@@ -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/Ptsv2billingagreementsMerchantInformationMerchantDescriptor'], 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('./Ptsv2billingagreementsMerchantInformationMerchantDescriptor'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
if (!root.CyberSource) {
|
|
26
|
+
root.CyberSource = {};
|
|
27
|
+
}
|
|
28
|
+
root.CyberSource.Ptsv2billingagreementsMerchantInformation = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2billingagreementsMerchantInformationMerchantDescriptor);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(ApiClient, Ptsv2billingagreementsMerchantInformationMerchantDescriptor) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Ptsv2billingagreementsMerchantInformation model module.
|
|
38
|
+
* @module model/Ptsv2billingagreementsMerchantInformation
|
|
39
|
+
* @version 0.0.1
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new <code>Ptsv2billingagreementsMerchantInformation</code>.
|
|
44
|
+
* @alias module:model/Ptsv2billingagreementsMerchantInformation
|
|
45
|
+
* @class
|
|
46
|
+
*/
|
|
47
|
+
var exports = function() {
|
|
48
|
+
var _this = this;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>Ptsv2billingagreementsMerchantInformation</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/Ptsv2billingagreementsMerchantInformation} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/Ptsv2billingagreementsMerchantInformation} The populated <code>Ptsv2billingagreementsMerchantInformation</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
exports.constructFromObject = function(data, obj) {
|
|
64
|
+
if (data) {
|
|
65
|
+
obj = obj || new exports();
|
|
66
|
+
|
|
67
|
+
if (data.hasOwnProperty('merchantDescriptor')) {
|
|
68
|
+
obj['merchantDescriptor'] = Ptsv2billingagreementsMerchantInformationMerchantDescriptor.constructFromObject(data['merchantDescriptor']);
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('categoryCode')) {
|
|
71
|
+
obj['categoryCode'] = ApiClient.convertToType(data['categoryCode'], 'Number');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('administrativeArea')) {
|
|
74
|
+
obj['administrativeArea'] = ApiClient.convertToType(data['administrativeArea'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('transactionLocalDateTime')) {
|
|
77
|
+
obj['transactionLocalDateTime'] = ApiClient.convertToType(data['transactionLocalDateTime'], 'String');
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return obj;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @member {module:model/Ptsv2billingagreementsMerchantInformationMerchantDescriptor} merchantDescriptor
|
|
85
|
+
*/
|
|
86
|
+
exports.prototype['merchantDescriptor'] = undefined;
|
|
87
|
+
/**
|
|
88
|
+
* The value for this field is a four-digit number that the payment card industry uses to classify merchants into market segments. A payment card company assigned one or more of these values to your business when you started accepting the payment card company’s cards. When you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the `merchant_category_code` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR4 - Position: 150-153 - Field: Merchant Category Code
|
|
89
|
+
* @member {Number} categoryCode
|
|
90
|
+
*/
|
|
91
|
+
exports.prototype['categoryCode'] = undefined;
|
|
92
|
+
/**
|
|
93
|
+
* The state where the merchant is located. #### PIN debit State code or region code for your business. Use the Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf) This value might be displayed on the cardholder’s statement. When you do not include this value in your PIN debit request, the merchant name from your account is used. **Important** This value must consist of English characters. **Note** This field is supported only for businesses located in the U.S. or Canada. Optional field for PIN debit credit or PIN debit purchase.
|
|
94
|
+
* @member {String} administrativeArea
|
|
95
|
+
*/
|
|
96
|
+
exports.prototype['administrativeArea'] = undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Date and time at your physical location. Format: `YYYYMMDDhhmmss`, where: - `YYYY` = year - `MM` = month - `DD` = day - `hh` = hour - `mm` = minutes - `ss` = seconds #### Used by **Authorization** Required for these processors: - American Express Direct - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - SIX Optional for all other processors.
|
|
99
|
+
* @member {String} transactionLocalDateTime
|
|
100
|
+
*/
|
|
101
|
+
exports.prototype['transactionLocalDateTime'] = undefined;
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
return exports;
|
|
106
|
+
}));
|
|
107
|
+
|
|
108
|
+
|