cybersource-rest-client 0.0.47 → 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 (87) 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 +12 -20
  9. package/docs/PtsV2CreditsPost201Response1.md +12 -0
  10. package/docs/PtsV2CreditsPost201Response1InstallmentInformation.md +8 -0
  11. package/docs/PtsV2CreditsPost201Response1ProcessorInformation.md +9 -0
  12. package/docs/PtsV2PaymentsPost201Response.md +1 -0
  13. package/docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md +12 -0
  14. package/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md +10 -0
  15. package/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md +10 -0
  16. package/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md +10 -0
  17. package/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md +10 -0
  18. package/docs/Ptsv2billingagreementsAggregatorInformation.md +9 -0
  19. package/docs/Ptsv2billingagreementsConsumerAuthenticationInformation.md +11 -0
  20. package/docs/Ptsv2billingagreementsDeviceInformation.md +10 -0
  21. package/docs/Ptsv2billingagreementsInstallmentInformation.md +16 -0
  22. package/docs/Ptsv2billingagreementsMerchantInformation.md +11 -0
  23. package/docs/Ptsv2billingagreementsMerchantInformationMerchantDescriptor.md +11 -0
  24. package/docs/Ptsv2billingagreementsOrderInformation.md +9 -0
  25. package/docs/Ptsv2billingagreementsOrderInformationBillTo.md +20 -0
  26. package/docs/Ptsv2billingagreementsPaymentInformation.md +9 -0
  27. package/docs/Ptsv2billingagreementsPaymentInformationCard.md +12 -0
  28. package/docs/Ptsv2billingagreementsPaymentInformationTokenizedCard.md +13 -0
  29. package/docs/Ptsv2billingagreementsProcessingInformation.md +9 -0
  30. package/docs/Ptsv2paymentsOrderInformation.md +1 -0
  31. package/docs/Ptsv2paymentsProcessingInformation.md +1 -1
  32. package/docs/Ptsv2paymentsRecipientInformation.md +1 -0
  33. package/docs/Riskv1authenticationsetupsTokenInformation.md +1 -0
  34. package/docs/Riskv1decisionsOrderInformation.md +1 -0
  35. package/docs/Riskv1decisionsTokenInformation.md +8 -0
  36. package/docs/SubscriptionsApi.md +14 -26
  37. package/docs/TssV2TransactionsGet200Response.md +1 -0
  38. package/docs/TssV2TransactionsPost201Response.md +0 -1
  39. package/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md +2 -0
  40. package/docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md +8 -0
  41. package/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md +2 -0
  42. package/docs/ValidateRequest.md +1 -0
  43. package/package.json +1 -1
  44. package/src/ApiClient.js +3 -1
  45. package/src/api/BillingAgreementsApi.js +203 -0
  46. package/src/api/InvoiceSettingsApi.js +2 -2
  47. package/src/api/InvoicesApi.js +6 -6
  48. package/src/api/PlansApi.js +18 -18
  49. package/src/api/SubscriptionsApi.js +23 -23
  50. package/src/index.js +133 -3
  51. package/src/model/CreateBillingAgreement.js +145 -0
  52. package/src/model/CreateBundledDecisionManagerCaseRequest.js +12 -4
  53. package/src/model/IntimateBillingAgreement.js +113 -0
  54. package/src/model/ModifyBillingAgreement.js +145 -0
  55. package/src/model/PtsV2CreditsPost201Response1.js +116 -0
  56. package/src/model/PtsV2CreditsPost201Response1InstallmentInformation.js +82 -0
  57. package/src/model/PtsV2CreditsPost201Response1ProcessorInformation.js +91 -0
  58. package/src/model/PtsV2PaymentsPost201Response.js +12 -4
  59. package/src/model/PtsV2PaymentsPost201ResponseEmbeddedActions.js +114 -0
  60. package/src/model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.js +100 -0
  61. package/src/model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.js +100 -0
  62. package/src/model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.js +100 -0
  63. package/src/model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.js +100 -0
  64. package/src/model/Ptsv2billingagreementsAggregatorInformation.js +90 -0
  65. package/src/model/Ptsv2billingagreementsConsumerAuthenticationInformation.js +109 -0
  66. package/src/model/Ptsv2billingagreementsDeviceInformation.js +100 -0
  67. package/src/model/Ptsv2billingagreementsInstallmentInformation.js +154 -0
  68. package/src/model/Ptsv2billingagreementsMerchantInformation.js +108 -0
  69. package/src/model/Ptsv2billingagreementsMerchantInformationMerchantDescriptor.js +109 -0
  70. package/src/model/Ptsv2billingagreementsOrderInformation.js +89 -0
  71. package/src/model/Ptsv2billingagreementsOrderInformationBillTo.js +190 -0
  72. package/src/model/Ptsv2billingagreementsPaymentInformation.js +89 -0
  73. package/src/model/Ptsv2billingagreementsPaymentInformationCard.js +118 -0
  74. package/src/model/Ptsv2billingagreementsPaymentInformationTokenizedCard.js +127 -0
  75. package/src/model/Ptsv2billingagreementsProcessingInformation.js +91 -0
  76. package/src/model/Ptsv2paymentsOrderInformation.js +9 -0
  77. package/src/model/Ptsv2paymentsProcessingInformation.js +1 -1
  78. package/src/model/Ptsv2paymentsRecipientInformation.js +9 -0
  79. package/src/model/Riskv1authenticationsetupsTokenInformation.js +9 -0
  80. package/src/model/Riskv1decisionsOrderInformation.js +9 -0
  81. package/src/model/Riskv1decisionsTokenInformation.js +82 -0
  82. package/src/model/TssV2TransactionsGet200Response.js +9 -0
  83. package/src/model/TssV2TransactionsPost201Response.js +0 -9
  84. package/src/model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.js +18 -0
  85. package/src/model/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.js +82 -0
  86. package/src/model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.js +21 -4
  87. package/src/model/ValidateRequest.js +12 -4
@@ -0,0 +1,203 @@
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/CreateBillingAgreement', 'model/IntimateBillingAgreement', 'model/ModifyBillingAgreement', 'model/PtsV2CreditsPost201Response1', 'model/PtsV2PaymentsPost502Response', 'model/PtsV2PaymentsRefundPost400Response'], 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('../model/CreateBillingAgreement'), require('../model/IntimateBillingAgreement'), require('../model/ModifyBillingAgreement'), require('../model/PtsV2CreditsPost201Response1'), require('../model/PtsV2PaymentsPost502Response'), require('../model/PtsV2PaymentsRefundPost400Response'));
23
+ } else {
24
+ // Browser globals (root is window)
25
+ if (!root.CyberSource) {
26
+ root.CyberSource = {};
27
+ }
28
+ root.CyberSource.BillingAgreementsApi = factory(root.CyberSource.ApiClient, root.CyberSource.CreateBillingAgreement, root.CyberSource.IntimateBillingAgreement, root.CyberSource.ModifyBillingAgreement, root.CyberSource.PtsV2CreditsPost201Response1, root.CyberSource.PtsV2PaymentsPost502Response, root.CyberSource.PtsV2PaymentsRefundPost400Response);
29
+ }
30
+ }(this, function(ApiClient, CreateBillingAgreement, IntimateBillingAgreement, ModifyBillingAgreement, PtsV2CreditsPost201Response1, PtsV2PaymentsPost502Response, PtsV2PaymentsRefundPost400Response) {
31
+ 'use strict';
32
+
33
+ /**
34
+ * BillingAgreements service.
35
+ * @module api/BillingAgreementsApi
36
+ * @version 0.0.1
37
+ */
38
+
39
+ /**
40
+ * Constructs a new BillingAgreementsApi.
41
+ * @alias module:api/BillingAgreementsApi
42
+ * @class
43
+ * @param {module:ApiClient} apiClient Optional API client implementation to use,
44
+ * default to {@link module:ApiClient#instance} if unspecified.
45
+ */
46
+ var exports = function(configObject, apiClient) {
47
+ this.apiClient = apiClient || ApiClient.instance;
48
+
49
+ this.apiClient.setConfiguration(configObject);
50
+
51
+
52
+ /**
53
+ * Callback function to receive the result of the billingAgreementsDeRegistration operation.
54
+ * @callback module:api/BillingAgreementsApi~billingAgreementsDeRegistrationCallback
55
+ * @param {String} error Error message, if any.
56
+ * @param {module:model/PtsV2CreditsPost201Response1} data The data returned by the service call.
57
+ * @param {String} response The complete HTTP response.
58
+ */
59
+
60
+ /**
61
+ * Standing Instruction Cancellation or Modification
62
+ * Standing Instruction with or without Token
63
+ * @param {module:model/ModifyBillingAgreement} modifyBillingAgreement
64
+ * @param {String} id ID for de-registration or cancellation of Billing Agreement
65
+ * @param {module:api/BillingAgreementsApi~billingAgreementsDeRegistrationCallback} callback The callback function, accepting three arguments: error, data, response
66
+ * data is of type: {@link module:model/PtsV2CreditsPost201Response1}
67
+ */
68
+ this.billingAgreementsDeRegistration = function(modifyBillingAgreement, id, callback) {
69
+ var postBody = modifyBillingAgreement;
70
+
71
+ // verify the required parameter 'modifyBillingAgreement' is set
72
+ if (modifyBillingAgreement === undefined || modifyBillingAgreement === null) {
73
+ throw new Error("Missing the required parameter 'modifyBillingAgreement' when calling billingAgreementsDeRegistration");
74
+ }
75
+
76
+ // verify the required parameter 'id' is set
77
+ if (id === undefined || id === null) {
78
+ throw new Error("Missing the required parameter 'id' when calling billingAgreementsDeRegistration");
79
+ }
80
+
81
+
82
+ var pathParams = {
83
+ 'id': id
84
+ };
85
+ var queryParams = {
86
+ };
87
+ var headerParams = {
88
+ };
89
+ var formParams = {
90
+ };
91
+
92
+ var authNames = [];
93
+ var contentTypes = ['application/json;charset=utf-8'];
94
+ var accepts = ['application/hal+json;charset=utf-8'];
95
+ var returnType = PtsV2CreditsPost201Response1;
96
+
97
+ return this.apiClient.callApi(
98
+ '/pts/v2/billing-agreements/{id}', 'PATCH',
99
+ pathParams, queryParams, headerParams, formParams, postBody,
100
+ authNames, contentTypes, accepts, returnType, callback
101
+ );
102
+ }
103
+
104
+ /**
105
+ * Callback function to receive the result of the billingAgreementsIntimation operation.
106
+ * @callback module:api/BillingAgreementsApi~billingAgreementsIntimationCallback
107
+ * @param {String} error Error message, if any.
108
+ * @param {module:model/PtsV2CreditsPost201Response1} data The data returned by the service call.
109
+ * @param {String} response The complete HTTP response.
110
+ */
111
+
112
+ /**
113
+ * Standing Instruction intimation
114
+ * Standing Instruction with or without Token.
115
+ * @param {module:model/IntimateBillingAgreement} intimateBillingAgreement
116
+ * @param {String} id ID for intimation of Billing Agreement
117
+ * @param {module:api/BillingAgreementsApi~billingAgreementsIntimationCallback} callback The callback function, accepting three arguments: error, data, response
118
+ * data is of type: {@link module:model/PtsV2CreditsPost201Response1}
119
+ */
120
+ this.billingAgreementsIntimation = function(intimateBillingAgreement, id, callback) {
121
+ var postBody = intimateBillingAgreement;
122
+
123
+ // verify the required parameter 'intimateBillingAgreement' is set
124
+ if (intimateBillingAgreement === undefined || intimateBillingAgreement === null) {
125
+ throw new Error("Missing the required parameter 'intimateBillingAgreement' when calling billingAgreementsIntimation");
126
+ }
127
+
128
+ // verify the required parameter 'id' is set
129
+ if (id === undefined || id === null) {
130
+ throw new Error("Missing the required parameter 'id' when calling billingAgreementsIntimation");
131
+ }
132
+
133
+
134
+ var pathParams = {
135
+ 'id': id
136
+ };
137
+ var queryParams = {
138
+ };
139
+ var headerParams = {
140
+ };
141
+ var formParams = {
142
+ };
143
+
144
+ var authNames = [];
145
+ var contentTypes = ['application/json;charset=utf-8'];
146
+ var accepts = ['application/hal+json;charset=utf-8'];
147
+ var returnType = PtsV2CreditsPost201Response1;
148
+
149
+ return this.apiClient.callApi(
150
+ '/pts/v2/billing-agreements/{id}/intimations', 'POST',
151
+ pathParams, queryParams, headerParams, formParams, postBody,
152
+ authNames, contentTypes, accepts, returnType, callback
153
+ );
154
+ }
155
+
156
+ /**
157
+ * Callback function to receive the result of the billingAgreementsRegistration operation.
158
+ * @callback module:api/BillingAgreementsApi~billingAgreementsRegistrationCallback
159
+ * @param {String} error Error message, if any.
160
+ * @param {module:model/PtsV2CreditsPost201Response1} data The data returned by the service call.
161
+ * @param {String} response The complete HTTP response.
162
+ */
163
+
164
+ /**
165
+ * Standing Instruction completion registration
166
+ * Standing Instruction with or without Token. Transaction amount in case First payment is coming along with registration. Only 2 decimal places allowed
167
+ * @param {module:model/CreateBillingAgreement} createBillingAgreement
168
+ * @param {module:api/BillingAgreementsApi~billingAgreementsRegistrationCallback} callback The callback function, accepting three arguments: error, data, response
169
+ * data is of type: {@link module:model/PtsV2CreditsPost201Response1}
170
+ */
171
+ this.billingAgreementsRegistration = function(createBillingAgreement, callback) {
172
+ var postBody = createBillingAgreement;
173
+
174
+ // verify the required parameter 'createBillingAgreement' is set
175
+ if (createBillingAgreement === undefined || createBillingAgreement === null) {
176
+ throw new Error("Missing the required parameter 'createBillingAgreement' when calling billingAgreementsRegistration");
177
+ }
178
+
179
+
180
+ var pathParams = {
181
+ };
182
+ var queryParams = {
183
+ };
184
+ var headerParams = {
185
+ };
186
+ var formParams = {
187
+ };
188
+
189
+ var authNames = [];
190
+ var contentTypes = ['application/json;charset=utf-8'];
191
+ var accepts = ['application/hal+json;charset=utf-8'];
192
+ var returnType = PtsV2CreditsPost201Response1;
193
+
194
+ return this.apiClient.callApi(
195
+ '/pts/v2/billing-agreements', 'POST',
196
+ pathParams, queryParams, headerParams, formParams, postBody,
197
+ authNames, contentTypes, accepts, returnType, callback
198
+ );
199
+ }
200
+ };
201
+
202
+ return exports;
203
+ }));
@@ -81,7 +81,7 @@
81
81
 
82
82
  var authNames = [];
83
83
  var contentTypes = ['application/json;charset=utf-8'];
84
- var accepts = ['application/json;charset=utf-8'];
84
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
85
85
  var returnType = InvoicingV2InvoiceSettingsGet200Response;
86
86
 
87
87
  return this.apiClient.callApi(
@@ -126,7 +126,7 @@
126
126
 
127
127
  var authNames = [];
128
128
  var contentTypes = ['application/json;charset=utf-8'];
129
- var accepts = ['application/json;charset=utf-8'];
129
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
130
130
  var returnType = InvoicingV2InvoiceSettingsGet200Response;
131
131
 
132
132
  return this.apiClient.callApi(
@@ -84,7 +84,7 @@
84
84
 
85
85
  var authNames = [];
86
86
  var contentTypes = ['application/json;charset=utf-8'];
87
- var accepts = ['application/json;charset=utf-8'];
87
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
88
88
  var returnType = InvoicingV2InvoicesPost201Response;
89
89
 
90
90
  return this.apiClient.callApi(
@@ -144,7 +144,7 @@
144
144
 
145
145
  var authNames = [];
146
146
  var contentTypes = ['application/json;charset=utf-8'];
147
- var accepts = ['application/json;charset=utf-8'];
147
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
148
148
  var returnType = InvoicingV2InvoicesAllGet200Response;
149
149
 
150
150
  return this.apiClient.callApi(
@@ -193,7 +193,7 @@
193
193
 
194
194
  var authNames = [];
195
195
  var contentTypes = ['application/json;charset=utf-8'];
196
- var accepts = ['application/json;charset=utf-8'];
196
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
197
197
  var returnType = InvoicingV2InvoicesGet200Response;
198
198
 
199
199
  return this.apiClient.callApi(
@@ -242,7 +242,7 @@
242
242
 
243
243
  var authNames = [];
244
244
  var contentTypes = ['application/json;charset=utf-8'];
245
- var accepts = ['application/json;charset=utf-8'];
245
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
246
246
  var returnType = InvoicingV2InvoicesPost201Response;
247
247
 
248
248
  return this.apiClient.callApi(
@@ -291,7 +291,7 @@
291
291
 
292
292
  var authNames = [];
293
293
  var contentTypes = ['application/json;charset=utf-8'];
294
- var accepts = ['application/json;charset=utf-8'];
294
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
295
295
  var returnType = InvoicingV2InvoicesPost201Response;
296
296
 
297
297
  return this.apiClient.callApi(
@@ -343,7 +343,7 @@
343
343
 
344
344
  var authNames = [];
345
345
  var contentTypes = ['application/json;charset=utf-8'];
346
- var accepts = ['application/json;charset=utf-8'];
346
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
347
347
  var returnType = InvoicingV2InvoicesPost201Response;
348
348
 
349
349
  return this.apiClient.callApi(
@@ -61,14 +61,14 @@
61
61
  * Activate a Plan
62
62
  * Activate a Plan
63
63
  * @param {String} id Plan Id
64
- * @param {Object} opts Optional parameters
65
- * @param {Object} opts.activatePlanRequest
66
64
  * @param {module:api/PlansApi~activatePlanCallback} callback The callback function, accepting three arguments: error, data, response
67
65
  * data is of type: {@link module:model/InlineResponse2004}
68
66
  */
69
- this.activatePlan = function(id, opts, callback) {
70
- opts = opts || {};
71
- var postBody = opts['activatePlanRequest'];
67
+ this.activatePlan = function(id, callback) {
68
+ var postBody = null;
69
+ if ('POST' == 'POST') {
70
+ postBody = '{}';
71
+ }
72
72
 
73
73
  // verify the required parameter 'id' is set
74
74
  if (id === undefined || id === null) {
@@ -88,7 +88,7 @@
88
88
 
89
89
  var authNames = [];
90
90
  var contentTypes = ['application/json;charset=utf-8'];
91
- var accepts = ['application/hal+json;charset=utf-8'];
91
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
92
92
  var returnType = InlineResponse2004;
93
93
 
94
94
  return this.apiClient.callApi(
@@ -133,7 +133,7 @@
133
133
 
134
134
  var authNames = [];
135
135
  var contentTypes = ['application/json;charset=utf-8'];
136
- var accepts = ['application/hal+json;charset=utf-8'];
136
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
137
137
  var returnType = InlineResponse201;
138
138
 
139
139
  return this.apiClient.callApi(
@@ -155,14 +155,14 @@
155
155
  * Deactivate a Plan
156
156
  * Deactivate a Plan
157
157
  * @param {String} id Plan Id
158
- * @param {Object} opts Optional parameters
159
- * @param {Object} opts.deactivatePlanRequest
160
158
  * @param {module:api/PlansApi~deactivatePlanCallback} callback The callback function, accepting three arguments: error, data, response
161
159
  * data is of type: {@link module:model/InlineResponse2004}
162
160
  */
163
- this.deactivatePlan = function(id, opts, callback) {
164
- opts = opts || {};
165
- var postBody = opts['deactivatePlanRequest'];
161
+ this.deactivatePlan = function(id, callback) {
162
+ var postBody = null;
163
+ if ('POST' == 'POST') {
164
+ postBody = '{}';
165
+ }
166
166
 
167
167
  // verify the required parameter 'id' is set
168
168
  if (id === undefined || id === null) {
@@ -182,7 +182,7 @@
182
182
 
183
183
  var authNames = [];
184
184
  var contentTypes = ['application/json;charset=utf-8'];
185
- var accepts = ['application/hal+json;charset=utf-8'];
185
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
186
186
  var returnType = InlineResponse2004;
187
187
 
188
188
  return this.apiClient.callApi(
@@ -231,7 +231,7 @@
231
231
 
232
232
  var authNames = [];
233
233
  var contentTypes = ['application/json;charset=utf-8'];
234
- var accepts = ['application/hal+json;charset=utf-8'];
234
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
235
235
  var returnType = InlineResponse2002;
236
236
 
237
237
  return this.apiClient.callApi(
@@ -280,7 +280,7 @@
280
280
 
281
281
  var authNames = [];
282
282
  var contentTypes = ['application/json;charset=utf-8'];
283
- var accepts = ['application/hal+json;charset=utf-8'];
283
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
284
284
  var returnType = InlineResponse2001;
285
285
 
286
286
  return this.apiClient.callApi(
@@ -322,7 +322,7 @@
322
322
 
323
323
  var authNames = [];
324
324
  var contentTypes = ['application/json;charset=utf-8'];
325
- var accepts = ['application/hal+json;charset=utf-8'];
325
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
326
326
  var returnType = InlineResponse2005;
327
327
 
328
328
  return this.apiClient.callApi(
@@ -376,7 +376,7 @@
376
376
 
377
377
  var authNames = [];
378
378
  var contentTypes = ['application/json;charset=utf-8'];
379
- var accepts = ['application/hal+json;charset=utf-8'];
379
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
380
380
  var returnType = InlineResponse200;
381
381
 
382
382
  return this.apiClient.callApi(
@@ -428,7 +428,7 @@
428
428
 
429
429
  var authNames = [];
430
430
  var contentTypes = ['application/json;charset=utf-8'];
431
- var accepts = ['application/hal+json;charset=utf-8'];
431
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
432
432
  var returnType = InlineResponse2003;
433
433
 
434
434
  return this.apiClient.callApi(
@@ -61,14 +61,14 @@
61
61
  * Activate a Subscription
62
62
  * Activate a `CANCELLED` Or `SUSPENDED` Subscription
63
63
  * @param {String} id Subscription Id
64
- * @param {Object} opts Optional parameters
65
- * @param {Object} opts.activateSubscriptionRequest
66
64
  * @param {module:api/SubscriptionsApi~activateSubscriptionCallback} callback The callback function, accepting three arguments: error, data, response
67
65
  * data is of type: {@link module:model/InlineResponse2009}
68
66
  */
69
- this.activateSubscription = function(id, opts, callback) {
70
- opts = opts || {};
71
- var postBody = opts['activateSubscriptionRequest'];
67
+ this.activateSubscription = function(id, callback) {
68
+ var postBody = null;
69
+ if ('POST' == 'POST') {
70
+ postBody = '{}';
71
+ }
72
72
 
73
73
  // verify the required parameter 'id' is set
74
74
  if (id === undefined || id === null) {
@@ -88,7 +88,7 @@
88
88
 
89
89
  var authNames = [];
90
90
  var contentTypes = ['application/json;charset=utf-8'];
91
- var accepts = ['application/hal+json;charset=utf-8'];
91
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
92
92
  var returnType = InlineResponse2009;
93
93
 
94
94
  return this.apiClient.callApi(
@@ -110,14 +110,14 @@
110
110
  * Cancel a Subscription
111
111
  * Cancel a Subscription
112
112
  * @param {String} id Subscription Id
113
- * @param {Object} opts Optional parameters
114
- * @param {Object} opts.cancelSubscriptionRequest
115
113
  * @param {module:api/SubscriptionsApi~cancelSubscriptionCallback} callback The callback function, accepting three arguments: error, data, response
116
114
  * data is of type: {@link module:model/InlineResponse202}
117
115
  */
118
- this.cancelSubscription = function(id, opts, callback) {
119
- opts = opts || {};
120
- var postBody = opts['cancelSubscriptionRequest'];
116
+ this.cancelSubscription = function(id, callback) {
117
+ var postBody = null;
118
+ if ('POST' == 'POST') {
119
+ postBody = '{}';
120
+ }
121
121
 
122
122
  // verify the required parameter 'id' is set
123
123
  if (id === undefined || id === null) {
@@ -137,7 +137,7 @@
137
137
 
138
138
  var authNames = [];
139
139
  var contentTypes = ['application/json;charset=utf-8'];
140
- var accepts = ['application/hal+json;charset=utf-8'];
140
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
141
141
  var returnType = InlineResponse202;
142
142
 
143
143
  return this.apiClient.callApi(
@@ -182,7 +182,7 @@
182
182
 
183
183
  var authNames = [];
184
184
  var contentTypes = ['application/json;charset=utf-8'];
185
- var accepts = ['application/hal+json;charset=utf-8'];
185
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
186
186
  var returnType = InlineResponse2011;
187
187
 
188
188
  return this.apiClient.callApi(
@@ -234,7 +234,7 @@
234
234
 
235
235
  var authNames = [];
236
236
  var contentTypes = ['application/json;charset=utf-8'];
237
- var accepts = ['application/hal+json;charset=utf-8'];
237
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
238
238
  var returnType = InlineResponse2006;
239
239
 
240
240
  return this.apiClient.callApi(
@@ -283,7 +283,7 @@
283
283
 
284
284
  var authNames = [];
285
285
  var contentTypes = ['application/json;charset=utf-8'];
286
- var accepts = ['application/hal+json;charset=utf-8'];
286
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
287
287
  var returnType = InlineResponse2007;
288
288
 
289
289
  return this.apiClient.callApi(
@@ -325,7 +325,7 @@
325
325
 
326
326
  var authNames = [];
327
327
  var contentTypes = ['application/json;charset=utf-8'];
328
- var accepts = ['application/hal+json;charset=utf-8'];
328
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
329
329
  var returnType = InlineResponse20010;
330
330
 
331
331
  return this.apiClient.callApi(
@@ -347,14 +347,14 @@
347
347
  * Suspend a Subscription
348
348
  * Suspend a Subscription
349
349
  * @param {String} id Subscription Id
350
- * @param {Object} opts Optional parameters
351
- * @param {Object} opts.suspendSubscriptionRequest
352
350
  * @param {module:api/SubscriptionsApi~suspendSubscriptionCallback} callback The callback function, accepting three arguments: error, data, response
353
351
  * data is of type: {@link module:model/InlineResponse2021}
354
352
  */
355
- this.suspendSubscription = function(id, opts, callback) {
356
- opts = opts || {};
357
- var postBody = opts['suspendSubscriptionRequest'];
353
+ this.suspendSubscription = function(id, callback) {
354
+ var postBody = null;
355
+ if ('POST' == 'POST') {
356
+ postBody = '{}';
357
+ }
358
358
 
359
359
  // verify the required parameter 'id' is set
360
360
  if (id === undefined || id === null) {
@@ -374,7 +374,7 @@
374
374
 
375
375
  var authNames = [];
376
376
  var contentTypes = ['application/json;charset=utf-8'];
377
- var accepts = ['application/hal+json;charset=utf-8'];
377
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
378
378
  var returnType = InlineResponse2021;
379
379
 
380
380
  return this.apiClient.callApi(
@@ -426,7 +426,7 @@
426
426
 
427
427
  var authNames = [];
428
428
  var contentTypes = ['application/json;charset=utf-8'];
429
- var accepts = ['application/hal+json;charset=utf-8'];
429
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
430
430
  var returnType = InlineResponse2008;
431
431
 
432
432
  return this.apiClient.callApi(