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.
Files changed (61) hide show
  1. package/docs/BillingAgreementsApi.md +155 -0
  2. package/docs/CreateBillingAgreement.md +16 -0
  3. package/docs/CreateBundledDecisionManagerCaseRequest.md +1 -0
  4. package/docs/IntimateBillingAgreement.md +12 -0
  5. package/docs/InvoiceSettingsApi.md +2 -2
  6. package/docs/InvoicesApi.md +6 -6
  7. package/docs/ModifyBillingAgreement.md +16 -0
  8. package/docs/PlansApi.md +8 -8
  9. package/docs/PtsV2CreditsPost201Response1.md +12 -0
  10. package/docs/PtsV2CreditsPost201Response1InstallmentInformation.md +8 -0
  11. package/docs/PtsV2CreditsPost201Response1ProcessorInformation.md +9 -0
  12. package/docs/Ptsv2billingagreementsAggregatorInformation.md +9 -0
  13. package/docs/Ptsv2billingagreementsConsumerAuthenticationInformation.md +11 -0
  14. package/docs/Ptsv2billingagreementsDeviceInformation.md +10 -0
  15. package/docs/Ptsv2billingagreementsInstallmentInformation.md +16 -0
  16. package/docs/Ptsv2billingagreementsMerchantInformation.md +11 -0
  17. package/docs/Ptsv2billingagreementsMerchantInformationMerchantDescriptor.md +11 -0
  18. package/docs/Ptsv2billingagreementsOrderInformation.md +9 -0
  19. package/docs/Ptsv2billingagreementsOrderInformationBillTo.md +20 -0
  20. package/docs/Ptsv2billingagreementsPaymentInformation.md +9 -0
  21. package/docs/Ptsv2billingagreementsPaymentInformationCard.md +12 -0
  22. package/docs/Ptsv2billingagreementsPaymentInformationTokenizedCard.md +13 -0
  23. package/docs/Ptsv2billingagreementsProcessingInformation.md +9 -0
  24. package/docs/Ptsv2paymentsOrderInformation.md +1 -0
  25. package/docs/Riskv1authenticationsetupsTokenInformation.md +1 -0
  26. package/docs/Riskv1decisionsOrderInformation.md +1 -0
  27. package/docs/Riskv1decisionsTokenInformation.md +8 -0
  28. package/docs/SubscriptionsApi.md +8 -8
  29. package/docs/ValidateRequest.md +1 -0
  30. package/package.json +1 -1
  31. package/src/ApiClient.js +3 -1
  32. package/src/api/BillingAgreementsApi.js +203 -0
  33. package/src/api/InvoiceSettingsApi.js +2 -2
  34. package/src/api/InvoicesApi.js +6 -6
  35. package/src/api/PlansApi.js +8 -8
  36. package/src/api/SubscriptionsApi.js +8 -8
  37. package/src/index.js +103 -3
  38. package/src/model/CreateBillingAgreement.js +145 -0
  39. package/src/model/CreateBundledDecisionManagerCaseRequest.js +12 -4
  40. package/src/model/IntimateBillingAgreement.js +113 -0
  41. package/src/model/ModifyBillingAgreement.js +145 -0
  42. package/src/model/PtsV2CreditsPost201Response1.js +116 -0
  43. package/src/model/PtsV2CreditsPost201Response1InstallmentInformation.js +82 -0
  44. package/src/model/PtsV2CreditsPost201Response1ProcessorInformation.js +91 -0
  45. package/src/model/Ptsv2billingagreementsAggregatorInformation.js +90 -0
  46. package/src/model/Ptsv2billingagreementsConsumerAuthenticationInformation.js +109 -0
  47. package/src/model/Ptsv2billingagreementsDeviceInformation.js +100 -0
  48. package/src/model/Ptsv2billingagreementsInstallmentInformation.js +154 -0
  49. package/src/model/Ptsv2billingagreementsMerchantInformation.js +108 -0
  50. package/src/model/Ptsv2billingagreementsMerchantInformationMerchantDescriptor.js +109 -0
  51. package/src/model/Ptsv2billingagreementsOrderInformation.js +89 -0
  52. package/src/model/Ptsv2billingagreementsOrderInformationBillTo.js +190 -0
  53. package/src/model/Ptsv2billingagreementsPaymentInformation.js +89 -0
  54. package/src/model/Ptsv2billingagreementsPaymentInformationCard.js +118 -0
  55. package/src/model/Ptsv2billingagreementsPaymentInformationTokenizedCard.js +127 -0
  56. package/src/model/Ptsv2billingagreementsProcessingInformation.js +91 -0
  57. package/src/model/Ptsv2paymentsOrderInformation.js +9 -0
  58. package/src/model/Riskv1authenticationsetupsTokenInformation.js +9 -0
  59. package/src/model/Riskv1decisionsOrderInformation.js +9 -0
  60. package/src/model/Riskv1decisionsTokenInformation.js +82 -0
  61. package/src/model/ValidateRequest.js +12 -4
@@ -0,0 +1,145 @@
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/Ptsv2billingagreementsAggregatorInformation', 'model/Ptsv2billingagreementsConsumerAuthenticationInformation', 'model/Ptsv2billingagreementsDeviceInformation', 'model/Ptsv2billingagreementsInstallmentInformation', 'model/Ptsv2billingagreementsMerchantInformation', 'model/Ptsv2billingagreementsOrderInformation', 'model/Ptsv2billingagreementsPaymentInformation', 'model/Ptsv2billingagreementsProcessingInformation', 'model/Ptsv2paymentsClientReferenceInformation'], 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('./Ptsv2billingagreementsAggregatorInformation'), require('./Ptsv2billingagreementsConsumerAuthenticationInformation'), require('./Ptsv2billingagreementsDeviceInformation'), require('./Ptsv2billingagreementsInstallmentInformation'), require('./Ptsv2billingagreementsMerchantInformation'), require('./Ptsv2billingagreementsOrderInformation'), require('./Ptsv2billingagreementsPaymentInformation'), require('./Ptsv2billingagreementsProcessingInformation'), require('./Ptsv2paymentsClientReferenceInformation'));
23
+ } else {
24
+ // Browser globals (root is window)
25
+ if (!root.CyberSource) {
26
+ root.CyberSource = {};
27
+ }
28
+ root.CyberSource.CreateBillingAgreement = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2billingagreementsAggregatorInformation, root.CyberSource.Ptsv2billingagreementsConsumerAuthenticationInformation, root.CyberSource.Ptsv2billingagreementsDeviceInformation, root.CyberSource.Ptsv2billingagreementsInstallmentInformation, root.CyberSource.Ptsv2billingagreementsMerchantInformation, root.CyberSource.Ptsv2billingagreementsOrderInformation, root.CyberSource.Ptsv2billingagreementsPaymentInformation, root.CyberSource.Ptsv2billingagreementsProcessingInformation, root.CyberSource.Ptsv2paymentsClientReferenceInformation);
29
+ }
30
+ }(this, function(ApiClient, Ptsv2billingagreementsAggregatorInformation, Ptsv2billingagreementsConsumerAuthenticationInformation, Ptsv2billingagreementsDeviceInformation, Ptsv2billingagreementsInstallmentInformation, Ptsv2billingagreementsMerchantInformation, Ptsv2billingagreementsOrderInformation, Ptsv2billingagreementsPaymentInformation, Ptsv2billingagreementsProcessingInformation, Ptsv2paymentsClientReferenceInformation) {
31
+ 'use strict';
32
+
33
+
34
+
35
+
36
+ /**
37
+ * The CreateBillingAgreement model module.
38
+ * @module model/CreateBillingAgreement
39
+ * @version 0.0.1
40
+ */
41
+
42
+ /**
43
+ * Constructs a new <code>CreateBillingAgreement</code>.
44
+ * @alias module:model/CreateBillingAgreement
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>CreateBillingAgreement</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/CreateBillingAgreement} obj Optional instance to populate.
66
+ * @return {module:model/CreateBillingAgreement} The populated <code>CreateBillingAgreement</code> instance.
67
+ */
68
+ exports.constructFromObject = function(data, obj) {
69
+ if (data) {
70
+ obj = obj || new exports();
71
+
72
+ if (data.hasOwnProperty('clientReferenceInformation')) {
73
+ obj['clientReferenceInformation'] = Ptsv2paymentsClientReferenceInformation.constructFromObject(data['clientReferenceInformation']);
74
+ }
75
+ if (data.hasOwnProperty('aggregatorInformation')) {
76
+ obj['aggregatorInformation'] = Ptsv2billingagreementsAggregatorInformation.constructFromObject(data['aggregatorInformation']);
77
+ }
78
+ if (data.hasOwnProperty('consumerAuthenticationInformation')) {
79
+ obj['consumerAuthenticationInformation'] = Ptsv2billingagreementsConsumerAuthenticationInformation.constructFromObject(data['consumerAuthenticationInformation']);
80
+ }
81
+ if (data.hasOwnProperty('deviceInformation')) {
82
+ obj['deviceInformation'] = Ptsv2billingagreementsDeviceInformation.constructFromObject(data['deviceInformation']);
83
+ }
84
+ if (data.hasOwnProperty('installmentInformation')) {
85
+ obj['installmentInformation'] = Ptsv2billingagreementsInstallmentInformation.constructFromObject(data['installmentInformation']);
86
+ }
87
+ if (data.hasOwnProperty('merchantInformation')) {
88
+ obj['merchantInformation'] = Ptsv2billingagreementsMerchantInformation.constructFromObject(data['merchantInformation']);
89
+ }
90
+ if (data.hasOwnProperty('orderInformation')) {
91
+ obj['orderInformation'] = Ptsv2billingagreementsOrderInformation.constructFromObject(data['orderInformation']);
92
+ }
93
+ if (data.hasOwnProperty('paymentInformation')) {
94
+ obj['paymentInformation'] = Ptsv2billingagreementsPaymentInformation.constructFromObject(data['paymentInformation']);
95
+ }
96
+ if (data.hasOwnProperty('processingInformation')) {
97
+ obj['processingInformation'] = Ptsv2billingagreementsProcessingInformation.constructFromObject(data['processingInformation']);
98
+ }
99
+ }
100
+ return obj;
101
+ }
102
+
103
+ /**
104
+ * @member {module:model/Ptsv2paymentsClientReferenceInformation} clientReferenceInformation
105
+ */
106
+ exports.prototype['clientReferenceInformation'] = undefined;
107
+ /**
108
+ * @member {module:model/Ptsv2billingagreementsAggregatorInformation} aggregatorInformation
109
+ */
110
+ exports.prototype['aggregatorInformation'] = undefined;
111
+ /**
112
+ * @member {module:model/Ptsv2billingagreementsConsumerAuthenticationInformation} consumerAuthenticationInformation
113
+ */
114
+ exports.prototype['consumerAuthenticationInformation'] = undefined;
115
+ /**
116
+ * @member {module:model/Ptsv2billingagreementsDeviceInformation} deviceInformation
117
+ */
118
+ exports.prototype['deviceInformation'] = undefined;
119
+ /**
120
+ * @member {module:model/Ptsv2billingagreementsInstallmentInformation} installmentInformation
121
+ */
122
+ exports.prototype['installmentInformation'] = undefined;
123
+ /**
124
+ * @member {module:model/Ptsv2billingagreementsMerchantInformation} merchantInformation
125
+ */
126
+ exports.prototype['merchantInformation'] = undefined;
127
+ /**
128
+ * @member {module:model/Ptsv2billingagreementsOrderInformation} orderInformation
129
+ */
130
+ exports.prototype['orderInformation'] = undefined;
131
+ /**
132
+ * @member {module:model/Ptsv2billingagreementsPaymentInformation} paymentInformation
133
+ */
134
+ exports.prototype['paymentInformation'] = undefined;
135
+ /**
136
+ * @member {module:model/Ptsv2billingagreementsProcessingInformation} processingInformation
137
+ */
138
+ exports.prototype['processingInformation'] = undefined;
139
+
140
+
141
+
142
+ return exports;
143
+ }));
144
+
145
+
@@ -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/Ptsv2paymentsAcquirerInformation', 'model/Ptsv2paymentsRecurringPaymentInformation', 'model/Ptsv2paymentsWatchlistScreeningInformation', 'model/Riskv1decisionsBuyerInformation', 'model/Riskv1decisionsClientReferenceInformation', 'model/Riskv1decisionsConsumerAuthenticationInformation', 'model/Riskv1decisionsDeviceInformation', 'model/Riskv1decisionsMerchantDefinedInformation', 'model/Riskv1decisionsMerchantInformation', 'model/Riskv1decisionsOrderInformation', 'model/Riskv1decisionsPaymentInformation', 'model/Riskv1decisionsProcessingInformation', 'model/Riskv1decisionsProcessorInformation', 'model/Riskv1decisionsRiskInformation', 'model/Riskv1decisionsTravelInformation'], factory);
19
+ define(['ApiClient', 'model/Ptsv2paymentsAcquirerInformation', 'model/Ptsv2paymentsRecurringPaymentInformation', 'model/Ptsv2paymentsWatchlistScreeningInformation', 'model/Riskv1decisionsBuyerInformation', 'model/Riskv1decisionsClientReferenceInformation', 'model/Riskv1decisionsConsumerAuthenticationInformation', 'model/Riskv1decisionsDeviceInformation', 'model/Riskv1decisionsMerchantDefinedInformation', 'model/Riskv1decisionsMerchantInformation', 'model/Riskv1decisionsOrderInformation', 'model/Riskv1decisionsPaymentInformation', 'model/Riskv1decisionsProcessingInformation', 'model/Riskv1decisionsProcessorInformation', 'model/Riskv1decisionsRiskInformation', 'model/Riskv1decisionsTokenInformation', 'model/Riskv1decisionsTravelInformation'], 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('./Ptsv2paymentsAcquirerInformation'), require('./Ptsv2paymentsRecurringPaymentInformation'), require('./Ptsv2paymentsWatchlistScreeningInformation'), require('./Riskv1decisionsBuyerInformation'), require('./Riskv1decisionsClientReferenceInformation'), require('./Riskv1decisionsConsumerAuthenticationInformation'), require('./Riskv1decisionsDeviceInformation'), require('./Riskv1decisionsMerchantDefinedInformation'), require('./Riskv1decisionsMerchantInformation'), require('./Riskv1decisionsOrderInformation'), require('./Riskv1decisionsPaymentInformation'), require('./Riskv1decisionsProcessingInformation'), require('./Riskv1decisionsProcessorInformation'), require('./Riskv1decisionsRiskInformation'), require('./Riskv1decisionsTravelInformation'));
22
+ module.exports = factory(require('../ApiClient'), require('./Ptsv2paymentsAcquirerInformation'), require('./Ptsv2paymentsRecurringPaymentInformation'), require('./Ptsv2paymentsWatchlistScreeningInformation'), require('./Riskv1decisionsBuyerInformation'), require('./Riskv1decisionsClientReferenceInformation'), require('./Riskv1decisionsConsumerAuthenticationInformation'), require('./Riskv1decisionsDeviceInformation'), require('./Riskv1decisionsMerchantDefinedInformation'), require('./Riskv1decisionsMerchantInformation'), require('./Riskv1decisionsOrderInformation'), require('./Riskv1decisionsPaymentInformation'), require('./Riskv1decisionsProcessingInformation'), require('./Riskv1decisionsProcessorInformation'), require('./Riskv1decisionsRiskInformation'), require('./Riskv1decisionsTokenInformation'), require('./Riskv1decisionsTravelInformation'));
23
23
  } else {
24
24
  // Browser globals (root is window)
25
25
  if (!root.CyberSource) {
26
26
  root.CyberSource = {};
27
27
  }
28
- root.CyberSource.CreateBundledDecisionManagerCaseRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2paymentsAcquirerInformation, root.CyberSource.Ptsv2paymentsRecurringPaymentInformation, root.CyberSource.Ptsv2paymentsWatchlistScreeningInformation, root.CyberSource.Riskv1decisionsBuyerInformation, root.CyberSource.Riskv1decisionsClientReferenceInformation, root.CyberSource.Riskv1decisionsConsumerAuthenticationInformation, root.CyberSource.Riskv1decisionsDeviceInformation, root.CyberSource.Riskv1decisionsMerchantDefinedInformation, root.CyberSource.Riskv1decisionsMerchantInformation, root.CyberSource.Riskv1decisionsOrderInformation, root.CyberSource.Riskv1decisionsPaymentInformation, root.CyberSource.Riskv1decisionsProcessingInformation, root.CyberSource.Riskv1decisionsProcessorInformation, root.CyberSource.Riskv1decisionsRiskInformation, root.CyberSource.Riskv1decisionsTravelInformation);
28
+ root.CyberSource.CreateBundledDecisionManagerCaseRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2paymentsAcquirerInformation, root.CyberSource.Ptsv2paymentsRecurringPaymentInformation, root.CyberSource.Ptsv2paymentsWatchlistScreeningInformation, root.CyberSource.Riskv1decisionsBuyerInformation, root.CyberSource.Riskv1decisionsClientReferenceInformation, root.CyberSource.Riskv1decisionsConsumerAuthenticationInformation, root.CyberSource.Riskv1decisionsDeviceInformation, root.CyberSource.Riskv1decisionsMerchantDefinedInformation, root.CyberSource.Riskv1decisionsMerchantInformation, root.CyberSource.Riskv1decisionsOrderInformation, root.CyberSource.Riskv1decisionsPaymentInformation, root.CyberSource.Riskv1decisionsProcessingInformation, root.CyberSource.Riskv1decisionsProcessorInformation, root.CyberSource.Riskv1decisionsRiskInformation, root.CyberSource.Riskv1decisionsTokenInformation, root.CyberSource.Riskv1decisionsTravelInformation);
29
29
  }
30
- }(this, function(ApiClient, Ptsv2paymentsAcquirerInformation, Ptsv2paymentsRecurringPaymentInformation, Ptsv2paymentsWatchlistScreeningInformation, Riskv1decisionsBuyerInformation, Riskv1decisionsClientReferenceInformation, Riskv1decisionsConsumerAuthenticationInformation, Riskv1decisionsDeviceInformation, Riskv1decisionsMerchantDefinedInformation, Riskv1decisionsMerchantInformation, Riskv1decisionsOrderInformation, Riskv1decisionsPaymentInformation, Riskv1decisionsProcessingInformation, Riskv1decisionsProcessorInformation, Riskv1decisionsRiskInformation, Riskv1decisionsTravelInformation) {
30
+ }(this, function(ApiClient, Ptsv2paymentsAcquirerInformation, Ptsv2paymentsRecurringPaymentInformation, Ptsv2paymentsWatchlistScreeningInformation, Riskv1decisionsBuyerInformation, Riskv1decisionsClientReferenceInformation, Riskv1decisionsConsumerAuthenticationInformation, Riskv1decisionsDeviceInformation, Riskv1decisionsMerchantDefinedInformation, Riskv1decisionsMerchantInformation, Riskv1decisionsOrderInformation, Riskv1decisionsPaymentInformation, Riskv1decisionsProcessingInformation, Riskv1decisionsProcessorInformation, Riskv1decisionsRiskInformation, Riskv1decisionsTokenInformation, Riskv1decisionsTravelInformation) {
31
31
  'use strict';
32
32
 
33
33
 
@@ -63,6 +63,7 @@
63
63
 
64
64
 
65
65
 
66
+
66
67
  };
67
68
 
68
69
  /**
@@ -121,6 +122,9 @@
121
122
  if (data.hasOwnProperty('watchlistScreeningInformation')) {
122
123
  obj['watchlistScreeningInformation'] = Ptsv2paymentsWatchlistScreeningInformation.constructFromObject(data['watchlistScreeningInformation']);
123
124
  }
125
+ if (data.hasOwnProperty('tokenInformation')) {
126
+ obj['tokenInformation'] = Riskv1decisionsTokenInformation.constructFromObject(data['tokenInformation']);
127
+ }
124
128
  }
125
129
  return obj;
126
130
  }
@@ -185,6 +189,10 @@
185
189
  * @member {module:model/Ptsv2paymentsWatchlistScreeningInformation} watchlistScreeningInformation
186
190
  */
187
191
  exports.prototype['watchlistScreeningInformation'] = undefined;
192
+ /**
193
+ * @member {module:model/Riskv1decisionsTokenInformation} tokenInformation
194
+ */
195
+ exports.prototype['tokenInformation'] = undefined;
188
196
 
189
197
 
190
198
 
@@ -0,0 +1,113 @@
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/Ptsv2billingagreementsInstallmentInformation', 'model/Ptsv2billingagreementsMerchantInformation', 'model/Ptsv2billingagreementsOrderInformation', 'model/Ptsv2billingagreementsPaymentInformation', 'model/Ptsv2paymentsClientReferenceInformation'], 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('./Ptsv2billingagreementsInstallmentInformation'), require('./Ptsv2billingagreementsMerchantInformation'), require('./Ptsv2billingagreementsOrderInformation'), require('./Ptsv2billingagreementsPaymentInformation'), require('./Ptsv2paymentsClientReferenceInformation'));
23
+ } else {
24
+ // Browser globals (root is window)
25
+ if (!root.CyberSource) {
26
+ root.CyberSource = {};
27
+ }
28
+ root.CyberSource.IntimateBillingAgreement = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2billingagreementsInstallmentInformation, root.CyberSource.Ptsv2billingagreementsMerchantInformation, root.CyberSource.Ptsv2billingagreementsOrderInformation, root.CyberSource.Ptsv2billingagreementsPaymentInformation, root.CyberSource.Ptsv2paymentsClientReferenceInformation);
29
+ }
30
+ }(this, function(ApiClient, Ptsv2billingagreementsInstallmentInformation, Ptsv2billingagreementsMerchantInformation, Ptsv2billingagreementsOrderInformation, Ptsv2billingagreementsPaymentInformation, Ptsv2paymentsClientReferenceInformation) {
31
+ 'use strict';
32
+
33
+
34
+
35
+
36
+ /**
37
+ * The IntimateBillingAgreement model module.
38
+ * @module model/IntimateBillingAgreement
39
+ * @version 0.0.1
40
+ */
41
+
42
+ /**
43
+ * Constructs a new <code>IntimateBillingAgreement</code>.
44
+ * @alias module:model/IntimateBillingAgreement
45
+ * @class
46
+ */
47
+ var exports = function() {
48
+ var _this = this;
49
+
50
+
51
+
52
+
53
+
54
+
55
+ };
56
+
57
+ /**
58
+ * Constructs a <code>IntimateBillingAgreement</code> from a plain JavaScript object, optionally creating a new instance.
59
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
61
+ * @param {module:model/IntimateBillingAgreement} obj Optional instance to populate.
62
+ * @return {module:model/IntimateBillingAgreement} The populated <code>IntimateBillingAgreement</code> instance.
63
+ */
64
+ exports.constructFromObject = function(data, obj) {
65
+ if (data) {
66
+ obj = obj || new exports();
67
+
68
+ if (data.hasOwnProperty('clientReferenceInformation')) {
69
+ obj['clientReferenceInformation'] = Ptsv2paymentsClientReferenceInformation.constructFromObject(data['clientReferenceInformation']);
70
+ }
71
+ if (data.hasOwnProperty('installmentInformation')) {
72
+ obj['installmentInformation'] = Ptsv2billingagreementsInstallmentInformation.constructFromObject(data['installmentInformation']);
73
+ }
74
+ if (data.hasOwnProperty('merchantInformation')) {
75
+ obj['merchantInformation'] = Ptsv2billingagreementsMerchantInformation.constructFromObject(data['merchantInformation']);
76
+ }
77
+ if (data.hasOwnProperty('orderInformation')) {
78
+ obj['orderInformation'] = Ptsv2billingagreementsOrderInformation.constructFromObject(data['orderInformation']);
79
+ }
80
+ if (data.hasOwnProperty('paymentInformation')) {
81
+ obj['paymentInformation'] = Ptsv2billingagreementsPaymentInformation.constructFromObject(data['paymentInformation']);
82
+ }
83
+ }
84
+ return obj;
85
+ }
86
+
87
+ /**
88
+ * @member {module:model/Ptsv2paymentsClientReferenceInformation} clientReferenceInformation
89
+ */
90
+ exports.prototype['clientReferenceInformation'] = undefined;
91
+ /**
92
+ * @member {module:model/Ptsv2billingagreementsInstallmentInformation} installmentInformation
93
+ */
94
+ exports.prototype['installmentInformation'] = undefined;
95
+ /**
96
+ * @member {module:model/Ptsv2billingagreementsMerchantInformation} merchantInformation
97
+ */
98
+ exports.prototype['merchantInformation'] = undefined;
99
+ /**
100
+ * @member {module:model/Ptsv2billingagreementsOrderInformation} orderInformation
101
+ */
102
+ exports.prototype['orderInformation'] = undefined;
103
+ /**
104
+ * @member {module:model/Ptsv2billingagreementsPaymentInformation} paymentInformation
105
+ */
106
+ exports.prototype['paymentInformation'] = undefined;
107
+
108
+
109
+
110
+ return exports;
111
+ }));
112
+
113
+
@@ -0,0 +1,145 @@
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/Ptsv2billingagreementsAggregatorInformation', 'model/Ptsv2billingagreementsConsumerAuthenticationInformation', 'model/Ptsv2billingagreementsDeviceInformation', 'model/Ptsv2billingagreementsInstallmentInformation', 'model/Ptsv2billingagreementsMerchantInformation', 'model/Ptsv2billingagreementsOrderInformation', 'model/Ptsv2billingagreementsPaymentInformation', 'model/Ptsv2billingagreementsProcessingInformation', 'model/Ptsv2paymentsClientReferenceInformation'], 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('./Ptsv2billingagreementsAggregatorInformation'), require('./Ptsv2billingagreementsConsumerAuthenticationInformation'), require('./Ptsv2billingagreementsDeviceInformation'), require('./Ptsv2billingagreementsInstallmentInformation'), require('./Ptsv2billingagreementsMerchantInformation'), require('./Ptsv2billingagreementsOrderInformation'), require('./Ptsv2billingagreementsPaymentInformation'), require('./Ptsv2billingagreementsProcessingInformation'), require('./Ptsv2paymentsClientReferenceInformation'));
23
+ } else {
24
+ // Browser globals (root is window)
25
+ if (!root.CyberSource) {
26
+ root.CyberSource = {};
27
+ }
28
+ root.CyberSource.ModifyBillingAgreement = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2billingagreementsAggregatorInformation, root.CyberSource.Ptsv2billingagreementsConsumerAuthenticationInformation, root.CyberSource.Ptsv2billingagreementsDeviceInformation, root.CyberSource.Ptsv2billingagreementsInstallmentInformation, root.CyberSource.Ptsv2billingagreementsMerchantInformation, root.CyberSource.Ptsv2billingagreementsOrderInformation, root.CyberSource.Ptsv2billingagreementsPaymentInformation, root.CyberSource.Ptsv2billingagreementsProcessingInformation, root.CyberSource.Ptsv2paymentsClientReferenceInformation);
29
+ }
30
+ }(this, function(ApiClient, Ptsv2billingagreementsAggregatorInformation, Ptsv2billingagreementsConsumerAuthenticationInformation, Ptsv2billingagreementsDeviceInformation, Ptsv2billingagreementsInstallmentInformation, Ptsv2billingagreementsMerchantInformation, Ptsv2billingagreementsOrderInformation, Ptsv2billingagreementsPaymentInformation, Ptsv2billingagreementsProcessingInformation, Ptsv2paymentsClientReferenceInformation) {
31
+ 'use strict';
32
+
33
+
34
+
35
+
36
+ /**
37
+ * The ModifyBillingAgreement model module.
38
+ * @module model/ModifyBillingAgreement
39
+ * @version 0.0.1
40
+ */
41
+
42
+ /**
43
+ * Constructs a new <code>ModifyBillingAgreement</code>.
44
+ * @alias module:model/ModifyBillingAgreement
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>ModifyBillingAgreement</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/ModifyBillingAgreement} obj Optional instance to populate.
66
+ * @return {module:model/ModifyBillingAgreement} The populated <code>ModifyBillingAgreement</code> instance.
67
+ */
68
+ exports.constructFromObject = function(data, obj) {
69
+ if (data) {
70
+ obj = obj || new exports();
71
+
72
+ if (data.hasOwnProperty('clientReferenceInformation')) {
73
+ obj['clientReferenceInformation'] = Ptsv2paymentsClientReferenceInformation.constructFromObject(data['clientReferenceInformation']);
74
+ }
75
+ if (data.hasOwnProperty('aggregatorInformation')) {
76
+ obj['aggregatorInformation'] = Ptsv2billingagreementsAggregatorInformation.constructFromObject(data['aggregatorInformation']);
77
+ }
78
+ if (data.hasOwnProperty('consumerAuthenticationInformation')) {
79
+ obj['consumerAuthenticationInformation'] = Ptsv2billingagreementsConsumerAuthenticationInformation.constructFromObject(data['consumerAuthenticationInformation']);
80
+ }
81
+ if (data.hasOwnProperty('deviceInformation')) {
82
+ obj['deviceInformation'] = Ptsv2billingagreementsDeviceInformation.constructFromObject(data['deviceInformation']);
83
+ }
84
+ if (data.hasOwnProperty('installmentInformation')) {
85
+ obj['installmentInformation'] = Ptsv2billingagreementsInstallmentInformation.constructFromObject(data['installmentInformation']);
86
+ }
87
+ if (data.hasOwnProperty('merchantInformation')) {
88
+ obj['merchantInformation'] = Ptsv2billingagreementsMerchantInformation.constructFromObject(data['merchantInformation']);
89
+ }
90
+ if (data.hasOwnProperty('orderInformation')) {
91
+ obj['orderInformation'] = Ptsv2billingagreementsOrderInformation.constructFromObject(data['orderInformation']);
92
+ }
93
+ if (data.hasOwnProperty('paymentInformation')) {
94
+ obj['paymentInformation'] = Ptsv2billingagreementsPaymentInformation.constructFromObject(data['paymentInformation']);
95
+ }
96
+ if (data.hasOwnProperty('processingInformation')) {
97
+ obj['processingInformation'] = Ptsv2billingagreementsProcessingInformation.constructFromObject(data['processingInformation']);
98
+ }
99
+ }
100
+ return obj;
101
+ }
102
+
103
+ /**
104
+ * @member {module:model/Ptsv2paymentsClientReferenceInformation} clientReferenceInformation
105
+ */
106
+ exports.prototype['clientReferenceInformation'] = undefined;
107
+ /**
108
+ * @member {module:model/Ptsv2billingagreementsAggregatorInformation} aggregatorInformation
109
+ */
110
+ exports.prototype['aggregatorInformation'] = undefined;
111
+ /**
112
+ * @member {module:model/Ptsv2billingagreementsConsumerAuthenticationInformation} consumerAuthenticationInformation
113
+ */
114
+ exports.prototype['consumerAuthenticationInformation'] = undefined;
115
+ /**
116
+ * @member {module:model/Ptsv2billingagreementsDeviceInformation} deviceInformation
117
+ */
118
+ exports.prototype['deviceInformation'] = undefined;
119
+ /**
120
+ * @member {module:model/Ptsv2billingagreementsInstallmentInformation} installmentInformation
121
+ */
122
+ exports.prototype['installmentInformation'] = undefined;
123
+ /**
124
+ * @member {module:model/Ptsv2billingagreementsMerchantInformation} merchantInformation
125
+ */
126
+ exports.prototype['merchantInformation'] = undefined;
127
+ /**
128
+ * @member {module:model/Ptsv2billingagreementsOrderInformation} orderInformation
129
+ */
130
+ exports.prototype['orderInformation'] = undefined;
131
+ /**
132
+ * @member {module:model/Ptsv2billingagreementsPaymentInformation} paymentInformation
133
+ */
134
+ exports.prototype['paymentInformation'] = undefined;
135
+ /**
136
+ * @member {module:model/Ptsv2billingagreementsProcessingInformation} processingInformation
137
+ */
138
+ exports.prototype['processingInformation'] = undefined;
139
+
140
+
141
+
142
+ return exports;
143
+ }));
144
+
145
+
@@ -0,0 +1,116 @@
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/PtsV2CreditsPost201Response1InstallmentInformation', 'model/PtsV2CreditsPost201Response1ProcessorInformation'], 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('./PtsV2CreditsPost201Response1InstallmentInformation'), require('./PtsV2CreditsPost201Response1ProcessorInformation'));
23
+ } else {
24
+ // Browser globals (root is window)
25
+ if (!root.CyberSource) {
26
+ root.CyberSource = {};
27
+ }
28
+ root.CyberSource.PtsV2CreditsPost201Response1 = factory(root.CyberSource.ApiClient, root.CyberSource.PtsV2CreditsPost201Response1InstallmentInformation, root.CyberSource.PtsV2CreditsPost201Response1ProcessorInformation);
29
+ }
30
+ }(this, function(ApiClient, PtsV2CreditsPost201Response1InstallmentInformation, PtsV2CreditsPost201Response1ProcessorInformation) {
31
+ 'use strict';
32
+
33
+
34
+
35
+
36
+ /**
37
+ * The PtsV2CreditsPost201Response1 model module.
38
+ * @module model/PtsV2CreditsPost201Response1
39
+ * @version 0.0.1
40
+ */
41
+
42
+ /**
43
+ * Constructs a new <code>PtsV2CreditsPost201Response1</code>.
44
+ * @alias module:model/PtsV2CreditsPost201Response1
45
+ * @class
46
+ */
47
+ var exports = function() {
48
+ var _this = this;
49
+
50
+
51
+
52
+
53
+
54
+
55
+ };
56
+
57
+ /**
58
+ * Constructs a <code>PtsV2CreditsPost201Response1</code> from a plain JavaScript object, optionally creating a new instance.
59
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
61
+ * @param {module:model/PtsV2CreditsPost201Response1} obj Optional instance to populate.
62
+ * @return {module:model/PtsV2CreditsPost201Response1} The populated <code>PtsV2CreditsPost201Response1</code> instance.
63
+ */
64
+ exports.constructFromObject = function(data, obj) {
65
+ if (data) {
66
+ obj = obj || new exports();
67
+
68
+ if (data.hasOwnProperty('id')) {
69
+ obj['id'] = ApiClient.convertToType(data['id'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('submitTimeUtc')) {
72
+ obj['submitTimeUtc'] = ApiClient.convertToType(data['submitTimeUtc'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('status')) {
75
+ obj['status'] = ApiClient.convertToType(data['status'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('processorInformation')) {
78
+ obj['processorInformation'] = PtsV2CreditsPost201Response1ProcessorInformation.constructFromObject(data['processorInformation']);
79
+ }
80
+ if (data.hasOwnProperty('installmentInformation')) {
81
+ obj['installmentInformation'] = PtsV2CreditsPost201Response1InstallmentInformation.constructFromObject(data['installmentInformation']);
82
+ }
83
+ }
84
+ return obj;
85
+ }
86
+
87
+ /**
88
+ * An unique identification number generated by Cybersource to identify the submitted request. Returned by all services. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response.
89
+ * @member {String} id
90
+ */
91
+ exports.prototype['id'] = undefined;
92
+ /**
93
+ * Time of request in UTC. 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. Returned by Cybersource for all services.
94
+ * @member {String} submitTimeUtc
95
+ */
96
+ exports.prototype['submitTimeUtc'] = undefined;
97
+ /**
98
+ * The status of the submitted transaction.
99
+ * @member {String} status
100
+ */
101
+ exports.prototype['status'] = undefined;
102
+ /**
103
+ * @member {module:model/PtsV2CreditsPost201Response1ProcessorInformation} processorInformation
104
+ */
105
+ exports.prototype['processorInformation'] = undefined;
106
+ /**
107
+ * @member {module:model/PtsV2CreditsPost201Response1InstallmentInformation} installmentInformation
108
+ */
109
+ exports.prototype['installmentInformation'] = undefined;
110
+
111
+
112
+
113
+ return exports;
114
+ }));
115
+
116
+
@@ -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.PtsV2CreditsPost201Response1InstallmentInformation = factory(root.CyberSource.ApiClient);
29
+ }
30
+ }(this, function(ApiClient) {
31
+ 'use strict';
32
+
33
+
34
+
35
+
36
+ /**
37
+ * The PtsV2CreditsPost201Response1InstallmentInformation model module.
38
+ * @module model/PtsV2CreditsPost201Response1InstallmentInformation
39
+ * @version 0.0.1
40
+ */
41
+
42
+ /**
43
+ * Constructs a new <code>PtsV2CreditsPost201Response1InstallmentInformation</code>.
44
+ * @alias module:model/PtsV2CreditsPost201Response1InstallmentInformation
45
+ * @class
46
+ */
47
+ var exports = function() {
48
+ var _this = this;
49
+
50
+
51
+ };
52
+
53
+ /**
54
+ * Constructs a <code>PtsV2CreditsPost201Response1InstallmentInformation</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/PtsV2CreditsPost201Response1InstallmentInformation} obj Optional instance to populate.
58
+ * @return {module:model/PtsV2CreditsPost201Response1InstallmentInformation} The populated <code>PtsV2CreditsPost201Response1InstallmentInformation</code> instance.
59
+ */
60
+ exports.constructFromObject = function(data, obj) {
61
+ if (data) {
62
+ obj = obj || new exports();
63
+
64
+ if (data.hasOwnProperty('identifier')) {
65
+ obj['identifier'] = ApiClient.convertToType(data['identifier'], 'String');
66
+ }
67
+ }
68
+ return obj;
69
+ }
70
+
71
+ /**
72
+ * Identifier
73
+ * @member {String} identifier
74
+ */
75
+ exports.prototype['identifier'] = undefined;
76
+
77
+
78
+
79
+ return exports;
80
+ }));
81
+
82
+