@flexprice/sdk 1.0.13 → 1.0.15

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 (170) hide show
  1. package/LICENSE +663 -0
  2. package/dist/ApiClient.js +455 -505
  3. package/dist/api/AuthApi.js +56 -72
  4. package/dist/api/CustomersApi.js +273 -301
  5. package/dist/api/EntitlementsApi.js +200 -224
  6. package/dist/api/EnvironmentsApi.js +129 -149
  7. package/dist/api/EventsApi.js +151 -173
  8. package/dist/api/FeaturesApi.js +167 -189
  9. package/dist/api/IntegrationsApi.js +121 -141
  10. package/dist/api/InvoicesApi.js +352 -377
  11. package/dist/api/PaymentsApi.js +202 -226
  12. package/dist/api/PlansApi.js +165 -187
  13. package/dist/api/PricesApi.js +166 -188
  14. package/dist/api/SecretsApi.js +88 -106
  15. package/dist/api/SubscriptionsApi.js +277 -307
  16. package/dist/api/TasksApi.js +168 -190
  17. package/dist/api/TenantsApi.js +114 -134
  18. package/dist/api/UsersApi.js +22 -36
  19. package/dist/api/WalletsApi.js +330 -322
  20. package/dist/index.js +1029 -1167
  21. package/dist/model/DtoAddress.js +67 -84
  22. package/dist/model/DtoAggregatedEntitlement.js +48 -65
  23. package/dist/model/DtoAggregatedFeature.js +60 -89
  24. package/dist/model/DtoAuthResponse.js +49 -66
  25. package/dist/model/DtoBillingPeriodInfo.js +49 -66
  26. package/dist/model/DtoBulkIngestEventRequest.js +49 -88
  27. package/dist/model/DtoCreateAPIKeyRequest.js +59 -89
  28. package/dist/model/DtoCreateAPIKeyResponse.js +44 -61
  29. package/dist/model/DtoCreateCustomerRequest.js +95 -125
  30. package/dist/model/DtoCreateEntitlementRequest.js +72 -102
  31. package/dist/model/DtoCreateEnvironmentRequest.js +49 -79
  32. package/dist/model/DtoCreateFeatureRequest.js +96 -112
  33. package/dist/model/DtoCreateIntegrationRequest.js +52 -82
  34. package/dist/model/DtoCreateInvoiceLineItemRequest.js +102 -132
  35. package/dist/model/DtoCreateInvoiceRequest.js +152 -179
  36. package/dist/model/DtoCreateMeterRequest.js +78 -117
  37. package/dist/model/DtoCreatePaymentRequest.js +84 -114
  38. package/dist/model/DtoCreatePlanEntitlementRequest.js +72 -102
  39. package/dist/model/DtoCreatePlanPriceRequest.js +141 -180
  40. package/dist/model/DtoCreatePlanRequest.js +83 -131
  41. package/dist/model/DtoCreatePriceRequest.js +141 -180
  42. package/dist/model/DtoCreatePriceTier.js +51 -81
  43. package/dist/model/DtoCreateSubscriptionRequest.js +115 -136
  44. package/dist/model/DtoCreateTaskRequest.js +68 -98
  45. package/dist/model/DtoCreateTenantRequest.js +50 -80
  46. package/dist/model/DtoCreateWalletRequest.js +110 -121
  47. package/dist/model/DtoCustomerEntitlementsResponse.js +49 -78
  48. package/dist/model/DtoCustomerInvoiceSummary.js +66 -83
  49. package/dist/model/DtoCustomerMultiCurrencyInvoiceSummary.js +56 -85
  50. package/dist/model/DtoCustomerResponse.js +135 -152
  51. package/dist/model/DtoCustomerUsageSummaryResponse.js +67 -96
  52. package/dist/model/DtoEntitlementResponse.js +127 -144
  53. package/dist/model/DtoEntitlementSource.js +69 -86
  54. package/dist/model/DtoEnvironmentResponse.js +61 -78
  55. package/dist/model/DtoEvent.js +83 -88
  56. package/dist/model/DtoFeatureResponse.js +129 -146
  57. package/dist/model/DtoFeatureUsageSummary.js +66 -95
  58. package/dist/model/DtoGetEventsRequest.js +106 -108
  59. package/dist/model/DtoGetEventsResponse.js +65 -94
  60. package/dist/model/DtoGetPreviewInvoiceRequest.js +55 -85
  61. package/dist/model/DtoGetUsageByMeterRequest.js +75 -105
  62. package/dist/model/DtoGetUsageBySubscriptionRequest.js +57 -87
  63. package/dist/model/DtoGetUsageBySubscriptionResponse.js +72 -101
  64. package/dist/model/DtoGetUsageRequest.js +86 -116
  65. package/dist/model/DtoGetUsageResponse.js +56 -85
  66. package/dist/model/DtoIngestEventRequest.js +78 -108
  67. package/dist/model/DtoInvoiceLineItemResponse.js +161 -178
  68. package/dist/model/DtoInvoiceResponse.js +250 -279
  69. package/dist/model/DtoLinkedIntegrationsResponse.js +35 -52
  70. package/dist/model/DtoListCustomersResponse.js +51 -80
  71. package/dist/model/DtoListEntitlementsResponse.js +51 -80
  72. package/dist/model/DtoListEnvironmentsResponse.js +52 -81
  73. package/dist/model/DtoListFeaturesResponse.js +51 -80
  74. package/dist/model/DtoListInvoicesResponse.js +51 -80
  75. package/dist/model/DtoListPaymentsResponse.js +51 -80
  76. package/dist/model/DtoListPlansResponse.js +51 -80
  77. package/dist/model/DtoListPricesResponse.js +51 -80
  78. package/dist/model/DtoListSecretsResponse.js +51 -80
  79. package/dist/model/DtoListSubscriptionPausesResponse.js +46 -75
  80. package/dist/model/DtoListSubscriptionsResponse.js +51 -80
  81. package/dist/model/DtoListTasksResponse.js +51 -80
  82. package/dist/model/DtoListWalletTransactionsResponse.js +51 -80
  83. package/dist/model/DtoLoginRequest.js +56 -86
  84. package/dist/model/DtoMeterResponse.js +99 -128
  85. package/dist/model/DtoPauseSubscriptionRequest.js +69 -99
  86. package/dist/model/DtoPaymentAttemptResponse.js +86 -103
  87. package/dist/model/DtoPaymentResponse.js +164 -181
  88. package/dist/model/DtoPlanResponse.js +124 -162
  89. package/dist/model/DtoPriceResponse.js +182 -221
  90. package/dist/model/DtoResumeSubscriptionRequest.js +46 -76
  91. package/dist/model/DtoSecretResponse.js +91 -108
  92. package/dist/model/DtoSignUpRequest.js +61 -91
  93. package/dist/model/DtoSubscriptionPauseResponse.js +135 -152
  94. package/dist/model/DtoSubscriptionResponse.js +270 -299
  95. package/dist/model/DtoSubscriptionUsageByMetersResponse.js +73 -90
  96. package/dist/model/DtoTaskResponse.js +141 -158
  97. package/dist/model/DtoTenantBillingDetails.js +57 -74
  98. package/dist/model/DtoTenantBillingUsage.js +51 -80
  99. package/dist/model/DtoTenantResponse.js +69 -86
  100. package/dist/model/DtoTopUpWalletRequest.js +89 -126
  101. package/dist/model/DtoUpdateCustomerRequest.js +89 -106
  102. package/dist/model/DtoUpdateEntitlementRequest.js +48 -65
  103. package/dist/model/DtoUpdateEnvironmentRequest.js +42 -59
  104. package/dist/model/DtoUpdateFeatureRequest.js +80 -76
  105. package/dist/model/DtoUpdatePaymentRequest.js +40 -57
  106. package/dist/model/DtoUpdatePaymentStatusRequest.js +41 -71
  107. package/dist/model/DtoUpdatePlanEntitlementRequest.js +78 -108
  108. package/dist/model/DtoUpdatePlanPriceRequest.js +147 -186
  109. package/dist/model/DtoUpdatePlanRequest.js +77 -115
  110. package/dist/model/DtoUpdatePriceRequest.js +47 -64
  111. package/dist/model/DtoUpdateTaskStatusRequest.js +38 -68
  112. package/dist/model/DtoUpdateTenantRequest.js +49 -54
  113. package/dist/model/DtoUpdateWalletRequest.js +65 -82
  114. package/dist/model/DtoUsageResult.js +38 -55
  115. package/dist/model/DtoUserResponse.js +51 -68
  116. package/dist/model/DtoWalletBalanceResponse.js +159 -176
  117. package/dist/model/DtoWalletResponse.js +120 -137
  118. package/dist/model/DtoWalletTransactionResponse.js +111 -128
  119. package/dist/model/ErrorsErrorDetail.js +47 -64
  120. package/dist/model/ErrorsErrorResponse.js +40 -57
  121. package/dist/model/MeterAggregation.js +39 -56
  122. package/dist/model/MeterFilter.js +42 -59
  123. package/dist/model/PriceJSONBTransformQuantity.js +38 -55
  124. package/dist/model/PricePrice.js +173 -212
  125. package/dist/model/PricePriceTier.js +38 -55
  126. package/dist/model/PriceTransformQuantity.js +38 -55
  127. package/dist/model/SubscriptionSubscriptionLineItem.js +165 -182
  128. package/dist/model/SubscriptionSubscriptionPause.js +135 -152
  129. package/dist/model/TypesAggregationType.js +36 -51
  130. package/dist/model/TypesAutoTopupTrigger.js +24 -41
  131. package/dist/model/TypesBillingCadence.js +24 -41
  132. package/dist/model/TypesBillingCycle.js +41 -0
  133. package/dist/model/TypesBillingModel.js +30 -46
  134. package/dist/model/TypesBillingPeriod.js +48 -61
  135. package/dist/model/TypesBillingTier.js +24 -41
  136. package/dist/model/TypesEntityType.js +30 -46
  137. package/dist/model/TypesFeatureType.js +30 -46
  138. package/dist/model/TypesFileType.js +24 -41
  139. package/dist/model/TypesInvoiceBillingReason.js +36 -51
  140. package/dist/model/TypesInvoiceCadence.js +24 -41
  141. package/dist/model/TypesInvoiceStatus.js +30 -46
  142. package/dist/model/TypesInvoiceType.js +30 -46
  143. package/dist/model/TypesPaginationResponse.js +38 -55
  144. package/dist/model/TypesPauseMode.js +30 -46
  145. package/dist/model/TypesPauseStatus.js +42 -56
  146. package/dist/model/TypesPaymentDestinationType.js +18 -36
  147. package/dist/model/TypesPaymentMethodType.js +36 -51
  148. package/dist/model/TypesPaymentStatus.js +48 -61
  149. package/dist/model/TypesPriceType.js +24 -41
  150. package/dist/model/TypesResetUsage.js +24 -41
  151. package/dist/model/TypesResumeMode.js +30 -46
  152. package/dist/model/TypesSecretProvider.js +30 -46
  153. package/dist/model/TypesSecretType.js +30 -46
  154. package/dist/model/TypesStatus.js +30 -46
  155. package/dist/model/TypesSubscriptionStatus.js +60 -71
  156. package/dist/model/TypesTaskStatus.js +36 -51
  157. package/dist/model/TypesTaskType.js +24 -41
  158. package/dist/model/TypesTransactionReason.js +60 -71
  159. package/dist/model/TypesTransactionStatus.js +30 -46
  160. package/dist/model/TypesTransactionType.js +24 -41
  161. package/dist/model/TypesWalletConfig.js +36 -53
  162. package/dist/model/TypesWalletConfigPriceType.js +30 -46
  163. package/dist/model/TypesWalletStatus.js +30 -46
  164. package/dist/model/TypesWalletTxReferenceType.js +30 -51
  165. package/dist/model/TypesWalletType.js +24 -41
  166. package/dist/model/TypesWindowSize.js +30 -46
  167. package/package.json +1 -1
  168. package/dist/api/MetersApi.js +0 -288
  169. package/dist/model/DtoListMetersResponse.js +0 -124
  170. package/dist/model/DtoUpdateMeterRequest.js +0 -110
@@ -1,24 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _DtoCreateInvoiceRequest = _interopRequireDefault(require("../model/DtoCreateInvoiceRequest"));
9
- var _DtoCustomerMultiCurrencyInvoiceSummary = _interopRequireDefault(require("../model/DtoCustomerMultiCurrencyInvoiceSummary"));
10
- var _DtoGetPreviewInvoiceRequest = _interopRequireDefault(require("../model/DtoGetPreviewInvoiceRequest"));
11
- var _DtoInvoiceResponse = _interopRequireDefault(require("../model/DtoInvoiceResponse"));
12
- var _DtoListInvoicesResponse = _interopRequireDefault(require("../model/DtoListInvoicesResponse"));
13
- var _DtoUpdatePaymentStatusRequest = _interopRequireDefault(require("../model/DtoUpdatePaymentStatusRequest"));
14
- var _ErrorsErrorResponse = _interopRequireDefault(require("../model/ErrorsErrorResponse"));
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
17
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
18
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
19
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
20
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
21
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
1
+ /**
22
2
  * FlexPrice API
23
3
  * FlexPrice API Service
24
4
  *
@@ -30,12 +10,22 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
10
  * Do not edit the class manually.
31
11
  *
32
12
  */
13
+
14
+ import ApiClient from "../ApiClient";
15
+ import DtoCreateInvoiceRequest from '../model/DtoCreateInvoiceRequest';
16
+ import DtoCustomerMultiCurrencyInvoiceSummary from '../model/DtoCustomerMultiCurrencyInvoiceSummary';
17
+ import DtoGetPreviewInvoiceRequest from '../model/DtoGetPreviewInvoiceRequest';
18
+ import DtoInvoiceResponse from '../model/DtoInvoiceResponse';
19
+ import DtoListInvoicesResponse from '../model/DtoListInvoicesResponse';
20
+ import DtoUpdatePaymentStatusRequest from '../model/DtoUpdatePaymentStatusRequest';
21
+ import ErrorsErrorResponse from '../model/ErrorsErrorResponse';
22
+
33
23
  /**
34
24
  * Invoices service.
35
25
  * @module api/InvoicesApi
36
26
  * @version 1.0
37
27
  */
38
- var InvoicesApi = exports["default"] = /*#__PURE__*/function () {
28
+ export default class InvoicesApi {
39
29
  /**
40
30
  * Constructs a new InvoicesApi.
41
31
  * @alias module:api/InvoicesApi
@@ -43,9 +33,8 @@ var InvoicesApi = exports["default"] = /*#__PURE__*/function () {
43
33
  * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
44
34
  * default to {@link module:ApiClient#instance} if unspecified.
45
35
  */
46
- function InvoicesApi(apiClient) {
47
- _classCallCheck(this, InvoicesApi);
48
- this.apiClient = apiClient || _ApiClient["default"].instance;
36
+ constructor(apiClient) {
37
+ this.apiClient = apiClient || ApiClient.instance;
49
38
  }
50
39
 
51
40
  /**
@@ -63,382 +52,368 @@ var InvoicesApi = exports["default"] = /*#__PURE__*/function () {
63
52
  * @param {module:api/InvoicesApi~customersIdInvoicesSummaryGetCallback} callback The callback function, accepting three arguments: error, data, response
64
53
  * data is of type: {@link module:model/DtoCustomerMultiCurrencyInvoiceSummary}
65
54
  */
66
- return _createClass(InvoicesApi, [{
67
- key: "customersIdInvoicesSummaryGet",
68
- value: function customersIdInvoicesSummaryGet(id, callback) {
69
- var postBody = null;
70
- // verify the required parameter 'id' is set
71
- if (id === undefined || id === null) {
72
- throw new Error("Missing the required parameter 'id' when calling customersIdInvoicesSummaryGet");
73
- }
74
- var pathParams = {
75
- 'id': id
76
- };
77
- var queryParams = {};
78
- var headerParams = {};
79
- var formParams = {};
80
- var authNames = ['ApiKeyAuth'];
81
- var contentTypes = [];
82
- var accepts = ['application/json'];
83
- var returnType = _DtoCustomerMultiCurrencyInvoiceSummary["default"];
84
- return this.apiClient.callApi('/customers/{id}/invoices/summary', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
55
+ customersIdInvoicesSummaryGet(id, callback) {
56
+ let postBody = null;
57
+ // verify the required parameter 'id' is set
58
+ if (id === undefined || id === null) {
59
+ throw new Error("Missing the required parameter 'id' when calling customersIdInvoicesSummaryGet");
85
60
  }
61
+ let pathParams = {
62
+ 'id': id
63
+ };
64
+ let queryParams = {};
65
+ let headerParams = {};
66
+ let formParams = {};
67
+ let authNames = ['ApiKeyAuth'];
68
+ let contentTypes = [];
69
+ let accepts = ['application/json'];
70
+ let returnType = DtoCustomerMultiCurrencyInvoiceSummary;
71
+ return this.apiClient.callApi('/customers/{id}/invoices/summary', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
72
+ }
86
73
 
87
- /**
88
- * Callback function to receive the result of the invoicesGet operation.
89
- * @callback module:api/InvoicesApi~invoicesGetCallback
90
- * @param {String} error Error message, if any.
91
- * @param {module:model/DtoListInvoicesResponse} data The data returned by the service call.
92
- * @param {String} response The complete HTTP response.
93
- */
74
+ /**
75
+ * Callback function to receive the result of the invoicesGet operation.
76
+ * @callback module:api/InvoicesApi~invoicesGetCallback
77
+ * @param {String} error Error message, if any.
78
+ * @param {module:model/DtoListInvoicesResponse} data The data returned by the service call.
79
+ * @param {String} response The complete HTTP response.
80
+ */
94
81
 
95
- /**
96
- * List invoices
97
- * List invoices with optional filtering
98
- * @param {Object} opts Optional parameters
99
- * @param {Number} [amountDueGt]
100
- * @param {Number} [amountRemainingGt]
101
- * @param {String} [customerId]
102
- * @param {String} [endTime]
103
- * @param {String} [expand]
104
- * @param {Array.<module:model/String>} [invoiceStatus]
105
- * @param {module:model/String} [invoiceType]
106
- * @param {Number} [limit]
107
- * @param {Number} [offset]
108
- * @param {module:model/String} [order]
109
- * @param {Array.<module:model/String>} [paymentStatus]
110
- * @param {String} [sort]
111
- * @param {String} [startTime]
112
- * @param {module:model/String} [status]
113
- * @param {String} [subscriptionId]
114
- * @param {module:api/InvoicesApi~invoicesGetCallback} callback The callback function, accepting three arguments: error, data, response
115
- * data is of type: {@link module:model/DtoListInvoicesResponse}
116
- */
117
- }, {
118
- key: "invoicesGet",
119
- value: function invoicesGet(opts, callback) {
120
- opts = opts || {};
121
- var postBody = null;
122
- var pathParams = {};
123
- var queryParams = {
124
- 'amount_due_gt': opts['amountDueGt'],
125
- 'amount_remaining_gt': opts['amountRemainingGt'],
126
- 'customer_id': opts['customerId'],
127
- 'end_time': opts['endTime'],
128
- 'expand': opts['expand'],
129
- 'invoice_status': this.apiClient.buildCollectionParam(opts['invoiceStatus'], 'csv'),
130
- 'invoice_type': opts['invoiceType'],
131
- 'limit': opts['limit'],
132
- 'offset': opts['offset'],
133
- 'order': opts['order'],
134
- 'payment_status': this.apiClient.buildCollectionParam(opts['paymentStatus'], 'csv'),
135
- 'sort': opts['sort'],
136
- 'start_time': opts['startTime'],
137
- 'status': opts['status'],
138
- 'subscription_id': opts['subscriptionId']
139
- };
140
- var headerParams = {};
141
- var formParams = {};
142
- var authNames = [];
143
- var contentTypes = [];
144
- var accepts = ['application/json'];
145
- var returnType = _DtoListInvoicesResponse["default"];
146
- return this.apiClient.callApi('/invoices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
147
- }
82
+ /**
83
+ * List invoices
84
+ * List invoices with optional filtering
85
+ * @param {Object} opts Optional parameters
86
+ * @param {Number} [amountDueGt]
87
+ * @param {Number} [amountRemainingGt]
88
+ * @param {String} [customerId]
89
+ * @param {String} [endTime]
90
+ * @param {String} [expand]
91
+ * @param {Array.<String>} [invoiceIds]
92
+ * @param {Array.<module:model/String>} [invoiceStatus]
93
+ * @param {module:model/String} [invoiceType]
94
+ * @param {Number} [limit]
95
+ * @param {Number} [offset]
96
+ * @param {module:model/String} [order]
97
+ * @param {Array.<module:model/String>} [paymentStatus]
98
+ * @param {String} [sort]
99
+ * @param {String} [startTime]
100
+ * @param {module:model/String} [status]
101
+ * @param {String} [subscriptionId]
102
+ * @param {module:api/InvoicesApi~invoicesGetCallback} callback The callback function, accepting three arguments: error, data, response
103
+ * data is of type: {@link module:model/DtoListInvoicesResponse}
104
+ */
105
+ invoicesGet(opts, callback) {
106
+ opts = opts || {};
107
+ let postBody = null;
108
+ let pathParams = {};
109
+ let queryParams = {
110
+ 'amount_due_gt': opts['amountDueGt'],
111
+ 'amount_remaining_gt': opts['amountRemainingGt'],
112
+ 'customer_id': opts['customerId'],
113
+ 'end_time': opts['endTime'],
114
+ 'expand': opts['expand'],
115
+ 'invoice_ids': this.apiClient.buildCollectionParam(opts['invoiceIds'], 'csv'),
116
+ 'invoice_status': this.apiClient.buildCollectionParam(opts['invoiceStatus'], 'csv'),
117
+ 'invoice_type': opts['invoiceType'],
118
+ 'limit': opts['limit'],
119
+ 'offset': opts['offset'],
120
+ 'order': opts['order'],
121
+ 'payment_status': this.apiClient.buildCollectionParam(opts['paymentStatus'], 'csv'),
122
+ 'sort': opts['sort'],
123
+ 'start_time': opts['startTime'],
124
+ 'status': opts['status'],
125
+ 'subscription_id': opts['subscriptionId']
126
+ };
127
+ let headerParams = {};
128
+ let formParams = {};
129
+ let authNames = [];
130
+ let contentTypes = [];
131
+ let accepts = ['application/json'];
132
+ let returnType = DtoListInvoicesResponse;
133
+ return this.apiClient.callApi('/invoices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
134
+ }
148
135
 
149
- /**
150
- * Callback function to receive the result of the invoicesIdFinalizePost operation.
151
- * @callback module:api/InvoicesApi~invoicesIdFinalizePostCallback
152
- * @param {String} error Error message, if any.
153
- * @param {Object.<String, {String: Object}>} data The data returned by the service call.
154
- * @param {String} response The complete HTTP response.
155
- */
136
+ /**
137
+ * Callback function to receive the result of the invoicesIdFinalizePost operation.
138
+ * @callback module:api/InvoicesApi~invoicesIdFinalizePostCallback
139
+ * @param {String} error Error message, if any.
140
+ * @param {Object.<String, {String: Object}>} data The data returned by the service call.
141
+ * @param {String} response The complete HTTP response.
142
+ */
156
143
 
157
- /**
158
- * Finalize an invoice
159
- * Finalize a draft invoice
160
- * @param {String} id Invoice ID
161
- * @param {module:api/InvoicesApi~invoicesIdFinalizePostCallback} callback The callback function, accepting three arguments: error, data, response
162
- * data is of type: {@link Object.<String, {String: Object}>}
163
- */
164
- }, {
165
- key: "invoicesIdFinalizePost",
166
- value: function invoicesIdFinalizePost(id, callback) {
167
- var postBody = null;
168
- // verify the required parameter 'id' is set
169
- if (id === undefined || id === null) {
170
- throw new Error("Missing the required parameter 'id' when calling invoicesIdFinalizePost");
171
- }
172
- var pathParams = {
173
- 'id': id
174
- };
175
- var queryParams = {};
176
- var headerParams = {};
177
- var formParams = {};
178
- var authNames = [];
179
- var contentTypes = [];
180
- var accepts = ['application/json'];
181
- var returnType = {
182
- 'String': Object
183
- };
184
- return this.apiClient.callApi('/invoices/{id}/finalize', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
144
+ /**
145
+ * Finalize an invoice
146
+ * Finalize a draft invoice
147
+ * @param {String} id Invoice ID
148
+ * @param {module:api/InvoicesApi~invoicesIdFinalizePostCallback} callback The callback function, accepting three arguments: error, data, response
149
+ * data is of type: {@link Object.<String, {String: Object}>}
150
+ */
151
+ invoicesIdFinalizePost(id, callback) {
152
+ let postBody = null;
153
+ // verify the required parameter 'id' is set
154
+ if (id === undefined || id === null) {
155
+ throw new Error("Missing the required parameter 'id' when calling invoicesIdFinalizePost");
185
156
  }
157
+ let pathParams = {
158
+ 'id': id
159
+ };
160
+ let queryParams = {};
161
+ let headerParams = {};
162
+ let formParams = {};
163
+ let authNames = [];
164
+ let contentTypes = [];
165
+ let accepts = ['application/json'];
166
+ let returnType = {
167
+ 'String': Object
168
+ };
169
+ return this.apiClient.callApi('/invoices/{id}/finalize', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
170
+ }
186
171
 
187
- /**
188
- * Callback function to receive the result of the invoicesIdGet operation.
189
- * @callback module:api/InvoicesApi~invoicesIdGetCallback
190
- * @param {String} error Error message, if any.
191
- * @param {module:model/DtoInvoiceResponse} data The data returned by the service call.
192
- * @param {String} response The complete HTTP response.
193
- */
172
+ /**
173
+ * Callback function to receive the result of the invoicesIdGet operation.
174
+ * @callback module:api/InvoicesApi~invoicesIdGetCallback
175
+ * @param {String} error Error message, if any.
176
+ * @param {module:model/DtoInvoiceResponse} data The data returned by the service call.
177
+ * @param {String} response The complete HTTP response.
178
+ */
194
179
 
195
- /**
196
- * Get an invoice by ID
197
- * Get detailed information about an invoice
198
- * @param {String} id Invoice ID
199
- * @param {module:api/InvoicesApi~invoicesIdGetCallback} callback The callback function, accepting three arguments: error, data, response
200
- * data is of type: {@link module:model/DtoInvoiceResponse}
201
- */
202
- }, {
203
- key: "invoicesIdGet",
204
- value: function invoicesIdGet(id, callback) {
205
- var postBody = null;
206
- // verify the required parameter 'id' is set
207
- if (id === undefined || id === null) {
208
- throw new Error("Missing the required parameter 'id' when calling invoicesIdGet");
209
- }
210
- var pathParams = {
211
- 'id': id
212
- };
213
- var queryParams = {};
214
- var headerParams = {};
215
- var formParams = {};
216
- var authNames = [];
217
- var contentTypes = [];
218
- var accepts = ['application/json'];
219
- var returnType = _DtoInvoiceResponse["default"];
220
- return this.apiClient.callApi('/invoices/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
180
+ /**
181
+ * Get an invoice by ID
182
+ * Get detailed information about an invoice
183
+ * @param {String} id Invoice ID
184
+ * @param {module:api/InvoicesApi~invoicesIdGetCallback} callback The callback function, accepting three arguments: error, data, response
185
+ * data is of type: {@link module:model/DtoInvoiceResponse}
186
+ */
187
+ invoicesIdGet(id, callback) {
188
+ let postBody = null;
189
+ // verify the required parameter 'id' is set
190
+ if (id === undefined || id === null) {
191
+ throw new Error("Missing the required parameter 'id' when calling invoicesIdGet");
221
192
  }
193
+ let pathParams = {
194
+ 'id': id
195
+ };
196
+ let queryParams = {};
197
+ let headerParams = {};
198
+ let formParams = {};
199
+ let authNames = [];
200
+ let contentTypes = [];
201
+ let accepts = ['application/json'];
202
+ let returnType = DtoInvoiceResponse;
203
+ return this.apiClient.callApi('/invoices/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
204
+ }
222
205
 
223
- /**
224
- * Callback function to receive the result of the invoicesIdPaymentAttemptPost operation.
225
- * @callback module:api/InvoicesApi~invoicesIdPaymentAttemptPostCallback
226
- * @param {String} error Error message, if any.
227
- * @param {Object.<String, {String: Object}>} data The data returned by the service call.
228
- * @param {String} response The complete HTTP response.
229
- */
206
+ /**
207
+ * Callback function to receive the result of the invoicesIdPaymentAttemptPost operation.
208
+ * @callback module:api/InvoicesApi~invoicesIdPaymentAttemptPostCallback
209
+ * @param {String} error Error message, if any.
210
+ * @param {Object.<String, {String: Object}>} data The data returned by the service call.
211
+ * @param {String} response The complete HTTP response.
212
+ */
230
213
 
231
- /**
232
- * Attempt payment for an invoice
233
- * Attempt to pay an invoice using customer's available wallets
234
- * @param {String} id Invoice ID
235
- * @param {module:api/InvoicesApi~invoicesIdPaymentAttemptPostCallback} callback The callback function, accepting three arguments: error, data, response
236
- * data is of type: {@link Object.<String, {String: Object}>}
237
- */
238
- }, {
239
- key: "invoicesIdPaymentAttemptPost",
240
- value: function invoicesIdPaymentAttemptPost(id, callback) {
241
- var postBody = null;
242
- // verify the required parameter 'id' is set
243
- if (id === undefined || id === null) {
244
- throw new Error("Missing the required parameter 'id' when calling invoicesIdPaymentAttemptPost");
245
- }
246
- var pathParams = {
247
- 'id': id
248
- };
249
- var queryParams = {};
250
- var headerParams = {};
251
- var formParams = {};
252
- var authNames = [];
253
- var contentTypes = [];
254
- var accepts = ['application/json'];
255
- var returnType = {
256
- 'String': Object
257
- };
258
- return this.apiClient.callApi('/invoices/{id}/payment/attempt', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
214
+ /**
215
+ * Attempt payment for an invoice
216
+ * Attempt to pay an invoice using customer's available wallets
217
+ * @param {String} id Invoice ID
218
+ * @param {module:api/InvoicesApi~invoicesIdPaymentAttemptPostCallback} callback The callback function, accepting three arguments: error, data, response
219
+ * data is of type: {@link Object.<String, {String: Object}>}
220
+ */
221
+ invoicesIdPaymentAttemptPost(id, callback) {
222
+ let postBody = null;
223
+ // verify the required parameter 'id' is set
224
+ if (id === undefined || id === null) {
225
+ throw new Error("Missing the required parameter 'id' when calling invoicesIdPaymentAttemptPost");
259
226
  }
227
+ let pathParams = {
228
+ 'id': id
229
+ };
230
+ let queryParams = {};
231
+ let headerParams = {};
232
+ let formParams = {};
233
+ let authNames = [];
234
+ let contentTypes = [];
235
+ let accepts = ['application/json'];
236
+ let returnType = {
237
+ 'String': Object
238
+ };
239
+ return this.apiClient.callApi('/invoices/{id}/payment/attempt', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
240
+ }
260
241
 
261
- /**
262
- * Callback function to receive the result of the invoicesIdPaymentPut operation.
263
- * @callback module:api/InvoicesApi~invoicesIdPaymentPutCallback
264
- * @param {String} error Error message, if any.
265
- * @param {module:model/DtoInvoiceResponse} data The data returned by the service call.
266
- * @param {String} response The complete HTTP response.
267
- */
242
+ /**
243
+ * Callback function to receive the result of the invoicesIdPaymentPut operation.
244
+ * @callback module:api/InvoicesApi~invoicesIdPaymentPutCallback
245
+ * @param {String} error Error message, if any.
246
+ * @param {module:model/DtoInvoiceResponse} data The data returned by the service call.
247
+ * @param {String} response The complete HTTP response.
248
+ */
268
249
 
269
- /**
270
- * Update invoice payment status
271
- * Update the payment status of an invoice
272
- * @param {String} id Invoice ID
273
- * @param {module:model/DtoUpdatePaymentStatusRequest} request Payment Status Update Request
274
- * @param {module:api/InvoicesApi~invoicesIdPaymentPutCallback} callback The callback function, accepting three arguments: error, data, response
275
- * data is of type: {@link module:model/DtoInvoiceResponse}
276
- */
277
- }, {
278
- key: "invoicesIdPaymentPut",
279
- value: function invoicesIdPaymentPut(id, request, callback) {
280
- var postBody = request;
281
- // verify the required parameter 'id' is set
282
- if (id === undefined || id === null) {
283
- throw new Error("Missing the required parameter 'id' when calling invoicesIdPaymentPut");
284
- }
285
- // verify the required parameter 'request' is set
286
- if (request === undefined || request === null) {
287
- throw new Error("Missing the required parameter 'request' when calling invoicesIdPaymentPut");
288
- }
289
- var pathParams = {
290
- 'id': id
291
- };
292
- var queryParams = {};
293
- var headerParams = {};
294
- var formParams = {};
295
- var authNames = ['ApiKeyAuth'];
296
- var contentTypes = ['application/json'];
297
- var accepts = ['application/json'];
298
- var returnType = _DtoInvoiceResponse["default"];
299
- return this.apiClient.callApi('/invoices/{id}/payment', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
250
+ /**
251
+ * Update invoice payment status
252
+ * Update the payment status of an invoice
253
+ * @param {String} id Invoice ID
254
+ * @param {module:model/DtoUpdatePaymentStatusRequest} request Payment Status Update Request
255
+ * @param {module:api/InvoicesApi~invoicesIdPaymentPutCallback} callback The callback function, accepting three arguments: error, data, response
256
+ * data is of type: {@link module:model/DtoInvoiceResponse}
257
+ */
258
+ invoicesIdPaymentPut(id, request, callback) {
259
+ let postBody = request;
260
+ // verify the required parameter 'id' is set
261
+ if (id === undefined || id === null) {
262
+ throw new Error("Missing the required parameter 'id' when calling invoicesIdPaymentPut");
300
263
  }
264
+ // verify the required parameter 'request' is set
265
+ if (request === undefined || request === null) {
266
+ throw new Error("Missing the required parameter 'request' when calling invoicesIdPaymentPut");
267
+ }
268
+ let pathParams = {
269
+ 'id': id
270
+ };
271
+ let queryParams = {};
272
+ let headerParams = {};
273
+ let formParams = {};
274
+ let authNames = ['ApiKeyAuth'];
275
+ let contentTypes = ['application/json'];
276
+ let accepts = ['application/json'];
277
+ let returnType = DtoInvoiceResponse;
278
+ return this.apiClient.callApi('/invoices/{id}/payment', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
279
+ }
301
280
 
302
- /**
303
- * Callback function to receive the result of the invoicesIdPdfGet operation.
304
- * @callback module:api/InvoicesApi~invoicesIdPdfGetCallback
305
- * @param {String} error Error message, if any.
306
- * @param {File} data The data returned by the service call.
307
- * @param {String} response The complete HTTP response.
308
- */
281
+ /**
282
+ * Callback function to receive the result of the invoicesIdPdfGet operation.
283
+ * @callback module:api/InvoicesApi~invoicesIdPdfGetCallback
284
+ * @param {String} error Error message, if any.
285
+ * @param {File} data The data returned by the service call.
286
+ * @param {String} response The complete HTTP response.
287
+ */
309
288
 
310
- /**
311
- * Get PDF for an invoice
312
- * Retrieve the PDF document for a specific invoice by its ID
313
- * @param {String} id Invoice ID
314
- * @param {module:api/InvoicesApi~invoicesIdPdfGetCallback} callback The callback function, accepting three arguments: error, data, response
315
- * data is of type: {@link File}
316
- */
317
- }, {
318
- key: "invoicesIdPdfGet",
319
- value: function invoicesIdPdfGet(id, callback) {
320
- var postBody = null;
321
- // verify the required parameter 'id' is set
322
- if (id === undefined || id === null) {
323
- throw new Error("Missing the required parameter 'id' when calling invoicesIdPdfGet");
324
- }
325
- var pathParams = {
326
- 'id': id
327
- };
328
- var queryParams = {};
329
- var headerParams = {};
330
- var formParams = {};
331
- var authNames = [];
332
- var contentTypes = [];
333
- var accepts = ['*/*'];
334
- var returnType = File;
335
- return this.apiClient.callApi('/invoices/{id}/pdf', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
289
+ /**
290
+ * Get PDF for an invoice
291
+ * Retrieve the PDF document for a specific invoice by its ID
292
+ * @param {String} id Invoice ID
293
+ * @param {Object} opts Optional parameters
294
+ * @param {Boolean} [url] Return presigned URL from s3 instead of PDF
295
+ * @param {module:api/InvoicesApi~invoicesIdPdfGetCallback} callback The callback function, accepting three arguments: error, data, response
296
+ * data is of type: {@link File}
297
+ */
298
+ invoicesIdPdfGet(id, opts, callback) {
299
+ opts = opts || {};
300
+ let postBody = null;
301
+ // verify the required parameter 'id' is set
302
+ if (id === undefined || id === null) {
303
+ throw new Error("Missing the required parameter 'id' when calling invoicesIdPdfGet");
336
304
  }
305
+ let pathParams = {
306
+ 'id': id
307
+ };
308
+ let queryParams = {
309
+ 'url': opts['url']
310
+ };
311
+ let headerParams = {};
312
+ let formParams = {};
313
+ let authNames = [];
314
+ let contentTypes = [];
315
+ let accepts = ['*/*'];
316
+ let returnType = File;
317
+ return this.apiClient.callApi('/invoices/{id}/pdf', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
318
+ }
337
319
 
338
- /**
339
- * Callback function to receive the result of the invoicesIdVoidPost operation.
340
- * @callback module:api/InvoicesApi~invoicesIdVoidPostCallback
341
- * @param {String} error Error message, if any.
342
- * @param {Object.<String, {String: Object}>} data The data returned by the service call.
343
- * @param {String} response The complete HTTP response.
344
- */
320
+ /**
321
+ * Callback function to receive the result of the invoicesIdVoidPost operation.
322
+ * @callback module:api/InvoicesApi~invoicesIdVoidPostCallback
323
+ * @param {String} error Error message, if any.
324
+ * @param {Object.<String, {String: Object}>} data The data returned by the service call.
325
+ * @param {String} response The complete HTTP response.
326
+ */
345
327
 
346
- /**
347
- * Void an invoice
348
- * Void an invoice that hasn't been paid
349
- * @param {String} id Invoice ID
350
- * @param {module:api/InvoicesApi~invoicesIdVoidPostCallback} callback The callback function, accepting three arguments: error, data, response
351
- * data is of type: {@link Object.<String, {String: Object}>}
352
- */
353
- }, {
354
- key: "invoicesIdVoidPost",
355
- value: function invoicesIdVoidPost(id, callback) {
356
- var postBody = null;
357
- // verify the required parameter 'id' is set
358
- if (id === undefined || id === null) {
359
- throw new Error("Missing the required parameter 'id' when calling invoicesIdVoidPost");
360
- }
361
- var pathParams = {
362
- 'id': id
363
- };
364
- var queryParams = {};
365
- var headerParams = {};
366
- var formParams = {};
367
- var authNames = [];
368
- var contentTypes = [];
369
- var accepts = ['application/json'];
370
- var returnType = {
371
- 'String': Object
372
- };
373
- return this.apiClient.callApi('/invoices/{id}/void', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
328
+ /**
329
+ * Void an invoice
330
+ * Void an invoice that hasn't been paid
331
+ * @param {String} id Invoice ID
332
+ * @param {module:api/InvoicesApi~invoicesIdVoidPostCallback} callback The callback function, accepting three arguments: error, data, response
333
+ * data is of type: {@link Object.<String, {String: Object}>}
334
+ */
335
+ invoicesIdVoidPost(id, callback) {
336
+ let postBody = null;
337
+ // verify the required parameter 'id' is set
338
+ if (id === undefined || id === null) {
339
+ throw new Error("Missing the required parameter 'id' when calling invoicesIdVoidPost");
374
340
  }
341
+ let pathParams = {
342
+ 'id': id
343
+ };
344
+ let queryParams = {};
345
+ let headerParams = {};
346
+ let formParams = {};
347
+ let authNames = [];
348
+ let contentTypes = [];
349
+ let accepts = ['application/json'];
350
+ let returnType = {
351
+ 'String': Object
352
+ };
353
+ return this.apiClient.callApi('/invoices/{id}/void', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
354
+ }
375
355
 
376
- /**
377
- * Callback function to receive the result of the invoicesPost operation.
378
- * @callback module:api/InvoicesApi~invoicesPostCallback
379
- * @param {String} error Error message, if any.
380
- * @param {module:model/DtoInvoiceResponse} data The data returned by the service call.
381
- * @param {String} response The complete HTTP response.
382
- */
356
+ /**
357
+ * Callback function to receive the result of the invoicesPost operation.
358
+ * @callback module:api/InvoicesApi~invoicesPostCallback
359
+ * @param {String} error Error message, if any.
360
+ * @param {module:model/DtoInvoiceResponse} data The data returned by the service call.
361
+ * @param {String} response The complete HTTP response.
362
+ */
383
363
 
384
- /**
385
- * Create a new invoice
386
- * Create a new invoice with the provided details
387
- * @param {module:model/DtoCreateInvoiceRequest} invoice Invoice details
388
- * @param {module:api/InvoicesApi~invoicesPostCallback} callback The callback function, accepting three arguments: error, data, response
389
- * data is of type: {@link module:model/DtoInvoiceResponse}
390
- */
391
- }, {
392
- key: "invoicesPost",
393
- value: function invoicesPost(invoice, callback) {
394
- var postBody = invoice;
395
- // verify the required parameter 'invoice' is set
396
- if (invoice === undefined || invoice === null) {
397
- throw new Error("Missing the required parameter 'invoice' when calling invoicesPost");
398
- }
399
- var pathParams = {};
400
- var queryParams = {};
401
- var headerParams = {};
402
- var formParams = {};
403
- var authNames = [];
404
- var contentTypes = ['application/json'];
405
- var accepts = ['application/json'];
406
- var returnType = _DtoInvoiceResponse["default"];
407
- return this.apiClient.callApi('/invoices', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
364
+ /**
365
+ * Create a new invoice
366
+ * Create a new invoice with the provided details
367
+ * @param {module:model/DtoCreateInvoiceRequest} invoice Invoice details
368
+ * @param {module:api/InvoicesApi~invoicesPostCallback} callback The callback function, accepting three arguments: error, data, response
369
+ * data is of type: {@link module:model/DtoInvoiceResponse}
370
+ */
371
+ invoicesPost(invoice, callback) {
372
+ let postBody = invoice;
373
+ // verify the required parameter 'invoice' is set
374
+ if (invoice === undefined || invoice === null) {
375
+ throw new Error("Missing the required parameter 'invoice' when calling invoicesPost");
408
376
  }
377
+ let pathParams = {};
378
+ let queryParams = {};
379
+ let headerParams = {};
380
+ let formParams = {};
381
+ let authNames = [];
382
+ let contentTypes = ['application/json'];
383
+ let accepts = ['application/json'];
384
+ let returnType = DtoInvoiceResponse;
385
+ return this.apiClient.callApi('/invoices', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
386
+ }
409
387
 
410
- /**
411
- * Callback function to receive the result of the invoicesPreviewPost operation.
412
- * @callback module:api/InvoicesApi~invoicesPreviewPostCallback
413
- * @param {String} error Error message, if any.
414
- * @param {module:model/DtoInvoiceResponse} data The data returned by the service call.
415
- * @param {String} response The complete HTTP response.
416
- */
388
+ /**
389
+ * Callback function to receive the result of the invoicesPreviewPost operation.
390
+ * @callback module:api/InvoicesApi~invoicesPreviewPostCallback
391
+ * @param {String} error Error message, if any.
392
+ * @param {module:model/DtoInvoiceResponse} data The data returned by the service call.
393
+ * @param {String} response The complete HTTP response.
394
+ */
417
395
 
418
- /**
419
- * Get a preview invoice
420
- * Get a preview invoice
421
- * @param {module:model/DtoGetPreviewInvoiceRequest} request Preview Invoice Request
422
- * @param {module:api/InvoicesApi~invoicesPreviewPostCallback} callback The callback function, accepting three arguments: error, data, response
423
- * data is of type: {@link module:model/DtoInvoiceResponse}
424
- */
425
- }, {
426
- key: "invoicesPreviewPost",
427
- value: function invoicesPreviewPost(request, callback) {
428
- var postBody = request;
429
- // verify the required parameter 'request' is set
430
- if (request === undefined || request === null) {
431
- throw new Error("Missing the required parameter 'request' when calling invoicesPreviewPost");
432
- }
433
- var pathParams = {};
434
- var queryParams = {};
435
- var headerParams = {};
436
- var formParams = {};
437
- var authNames = [];
438
- var contentTypes = ['application/json'];
439
- var accepts = ['application/json'];
440
- var returnType = _DtoInvoiceResponse["default"];
441
- return this.apiClient.callApi('/invoices/preview', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
396
+ /**
397
+ * Get a preview invoice
398
+ * Get a preview invoice
399
+ * @param {module:model/DtoGetPreviewInvoiceRequest} request Preview Invoice Request
400
+ * @param {module:api/InvoicesApi~invoicesPreviewPostCallback} callback The callback function, accepting three arguments: error, data, response
401
+ * data is of type: {@link module:model/DtoInvoiceResponse}
402
+ */
403
+ invoicesPreviewPost(request, callback) {
404
+ let postBody = request;
405
+ // verify the required parameter 'request' is set
406
+ if (request === undefined || request === null) {
407
+ throw new Error("Missing the required parameter 'request' when calling invoicesPreviewPost");
442
408
  }
443
- }]);
444
- }();
409
+ let pathParams = {};
410
+ let queryParams = {};
411
+ let headerParams = {};
412
+ let formParams = {};
413
+ let authNames = [];
414
+ let contentTypes = ['application/json'];
415
+ let accepts = ['application/json'];
416
+ let returnType = DtoInvoiceResponse;
417
+ return this.apiClient.callApi('/invoices/preview', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
418
+ }
419
+ }