ch-admin-api-client-typescript 5.2.9 → 5.3.0

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 (202) hide show
  1. package/lib/api/vonage-accounts-api.d.ts +610 -0
  2. package/lib/api/vonage-accounts-api.d.ts.map +1 -0
  3. package/lib/api/vonage-accounts-api.js +1206 -0
  4. package/lib/api/vonage-applications-api.d.ts +283 -0
  5. package/lib/api/vonage-applications-api.d.ts.map +1 -0
  6. package/lib/api/vonage-applications-api.js +553 -0
  7. package/lib/api/vonage-numbers-api.d.ts +383 -0
  8. package/lib/api/vonage-numbers-api.d.ts.map +1 -0
  9. package/lib/api/vonage-numbers-api.js +622 -0
  10. package/lib/api.d.ts +3 -0
  11. package/lib/api.d.ts.map +1 -1
  12. package/lib/api.js +3 -0
  13. package/lib/models/account-settings-result.d.ts +49 -0
  14. package/lib/models/account-settings-result.d.ts.map +1 -0
  15. package/lib/models/account-settings-result.js +15 -0
  16. package/lib/models/application-capabilities.d.ts +61 -0
  17. package/lib/models/application-capabilities.d.ts.map +1 -0
  18. package/lib/models/application-capabilities.js +15 -0
  19. package/lib/models/application-list.d.ts +26 -0
  20. package/lib/models/application-list.d.ts.map +1 -0
  21. package/lib/models/application-list.js +15 -0
  22. package/lib/models/application-page.d.ts +50 -0
  23. package/lib/models/application-page.d.ts.map +1 -0
  24. package/lib/models/application-page.js +15 -0
  25. package/lib/models/application.d.ts +45 -0
  26. package/lib/models/application.d.ts.map +1 -0
  27. package/lib/models/application.js +15 -0
  28. package/lib/models/balance-transfers.d.ts +55 -0
  29. package/lib/models/balance-transfers.d.ts.map +1 -0
  30. package/lib/models/balance-transfers.js +15 -0
  31. package/lib/models/balance.d.ts +31 -0
  32. package/lib/models/balance.d.ts.map +1 -0
  33. package/lib/models/balance.js +15 -0
  34. package/lib/models/buy-number-command.d.ts +37 -0
  35. package/lib/models/buy-number-command.d.ts.map +1 -0
  36. package/lib/models/buy-number-command.js +15 -0
  37. package/lib/models/cancel-number-command.d.ts +37 -0
  38. package/lib/models/cancel-number-command.d.ts.map +1 -0
  39. package/lib/models/cancel-number-command.js +15 -0
  40. package/lib/models/create-application-command.d.ts +39 -0
  41. package/lib/models/create-application-command.d.ts.map +1 -0
  42. package/lib/models/create-application-command.js +15 -0
  43. package/lib/models/create-secret-command.d.ts +31 -0
  44. package/lib/models/create-secret-command.d.ts.map +1 -0
  45. package/lib/models/create-secret-command.js +15 -0
  46. package/lib/models/create-sub-account-command.d.ts +37 -0
  47. package/lib/models/create-sub-account-command.d.ts.map +1 -0
  48. package/lib/models/create-sub-account-command.js +15 -0
  49. package/lib/models/delete-application-command.d.ts +25 -0
  50. package/lib/models/delete-application-command.d.ts.map +1 -0
  51. package/lib/models/delete-application-command.js +15 -0
  52. package/lib/models/first.d.ts +25 -0
  53. package/lib/models/first.d.ts.map +1 -0
  54. package/lib/models/first.js +15 -0
  55. package/lib/models/get-transfer-balance-embeded.d.ts +26 -0
  56. package/lib/models/get-transfer-balance-embeded.d.ts.map +1 -0
  57. package/lib/models/get-transfer-balance-embeded.js +15 -0
  58. package/lib/models/get-transfer-balance-result.d.ts +33 -0
  59. package/lib/models/get-transfer-balance-result.d.ts.map +1 -0
  60. package/lib/models/get-transfer-balance-result.js +15 -0
  61. package/lib/models/hallinks.d.ts +50 -0
  62. package/lib/models/hallinks.d.ts.map +1 -0
  63. package/lib/models/hallinks.js +15 -0
  64. package/lib/models/index.d.ts +45 -0
  65. package/lib/models/index.d.ts.map +1 -1
  66. package/lib/models/index.js +45 -0
  67. package/lib/models/keys.d.ts +31 -0
  68. package/lib/models/keys.d.ts.map +1 -0
  69. package/lib/models/keys.js +15 -0
  70. package/lib/models/last.d.ts +25 -0
  71. package/lib/models/last.d.ts.map +1 -0
  72. package/lib/models/last.js +15 -0
  73. package/lib/models/link.d.ts +25 -0
  74. package/lib/models/link.d.ts.map +1 -0
  75. package/lib/models/link.js +15 -0
  76. package/lib/models/links.d.ts +40 -0
  77. package/lib/models/links.d.ts.map +1 -0
  78. package/lib/models/links.js +15 -0
  79. package/lib/models/meetings.d.ts +28 -0
  80. package/lib/models/meetings.d.ts.map +1 -0
  81. package/lib/models/meetings.js +15 -0
  82. package/lib/models/messages.d.ts +28 -0
  83. package/lib/models/messages.d.ts.map +1 -0
  84. package/lib/models/messages.js +15 -0
  85. package/lib/models/number-transaction-response.d.ts +31 -0
  86. package/lib/models/number-transaction-response.d.ts.map +1 -0
  87. package/lib/models/number-transaction-response.js +15 -0
  88. package/lib/models/number.d.ts +49 -0
  89. package/lib/models/number.d.ts.map +1 -0
  90. package/lib/models/number.js +15 -0
  91. package/lib/models/numbers-search-response.d.ts +32 -0
  92. package/lib/models/numbers-search-response.d.ts.map +1 -0
  93. package/lib/models/numbers-search-response.js +15 -0
  94. package/lib/models/primary-account.d.ts +55 -0
  95. package/lib/models/primary-account.d.ts.map +1 -0
  96. package/lib/models/primary-account.js +15 -0
  97. package/lib/models/retrieve-sub-accounts-embedded.d.ts +33 -0
  98. package/lib/models/retrieve-sub-accounts-embedded.d.ts.map +1 -0
  99. package/lib/models/retrieve-sub-accounts-embedded.js +15 -0
  100. package/lib/models/retrieve-sub-accounts-result.d.ts +45 -0
  101. package/lib/models/retrieve-sub-accounts-result.d.ts.map +1 -0
  102. package/lib/models/retrieve-sub-accounts-result.js +15 -0
  103. package/lib/models/rtc.d.ts +28 -0
  104. package/lib/models/rtc.d.ts.map +1 -0
  105. package/lib/models/rtc.js +15 -0
  106. package/lib/models/search-pattern.d.ts +23 -0
  107. package/lib/models/search-pattern.d.ts.map +1 -0
  108. package/lib/models/search-pattern.js +26 -0
  109. package/lib/models/secret-list.d.ts +26 -0
  110. package/lib/models/secret-list.d.ts.map +1 -0
  111. package/lib/models/secret-list.js +15 -0
  112. package/lib/models/secret.d.ts +38 -0
  113. package/lib/models/secret.d.ts.map +1 -0
  114. package/lib/models/secret.js +15 -0
  115. package/lib/models/secrets-request-result.d.ts +33 -0
  116. package/lib/models/secrets-request-result.d.ts.map +1 -0
  117. package/lib/models/secrets-request-result.js +15 -0
  118. package/lib/models/self.d.ts +25 -0
  119. package/lib/models/self.d.ts.map +1 -0
  120. package/lib/models/self.js +15 -0
  121. package/lib/models/sub-account.d.ts +73 -0
  122. package/lib/models/sub-account.d.ts.map +1 -0
  123. package/lib/models/sub-account.js +15 -0
  124. package/lib/models/transfer-balance-command.d.ts +37 -0
  125. package/lib/models/transfer-balance-command.d.ts.map +1 -0
  126. package/lib/models/transfer-balance-command.js +15 -0
  127. package/lib/models/transfer-balance-result.d.ts +68 -0
  128. package/lib/models/transfer-balance-result.d.ts.map +1 -0
  129. package/lib/models/transfer-balance-result.js +15 -0
  130. package/lib/models/update-account-command.d.ts +31 -0
  131. package/lib/models/update-account-command.d.ts.map +1 -0
  132. package/lib/models/update-account-command.js +15 -0
  133. package/lib/models/update-application-command.d.ts +45 -0
  134. package/lib/models/update-application-command.d.ts.map +1 -0
  135. package/lib/models/update-application-command.js +15 -0
  136. package/lib/models/update-number-command.d.ts +67 -0
  137. package/lib/models/update-number-command.d.ts.map +1 -0
  138. package/lib/models/update-number-command.js +15 -0
  139. package/lib/models/vbc.d.ts +28 -0
  140. package/lib/models/vbc.d.ts.map +1 -0
  141. package/lib/models/vbc.js +15 -0
  142. package/lib/models/video.d.ts +28 -0
  143. package/lib/models/video.d.ts.map +1 -0
  144. package/lib/models/video.js +15 -0
  145. package/lib/models/voice.d.ts +28 -0
  146. package/lib/models/voice.d.ts.map +1 -0
  147. package/lib/models/voice.js +15 -0
  148. package/lib/models/webhook.d.ts +31 -0
  149. package/lib/models/webhook.d.ts.map +1 -0
  150. package/lib/models/webhook.js +15 -0
  151. package/package.json +1 -1
  152. package/src/.openapi-generator/FILES +48 -0
  153. package/src/api/vonage-accounts-api.ts +1171 -0
  154. package/src/api/vonage-applications-api.ts +516 -0
  155. package/src/api/vonage-numbers-api.ts +675 -0
  156. package/src/api.ts +3 -0
  157. package/src/models/account-settings-result.ts +54 -0
  158. package/src/models/application-capabilities.ts +78 -0
  159. package/src/models/application-list.ts +33 -0
  160. package/src/models/application-page.ts +57 -0
  161. package/src/models/application.ts +54 -0
  162. package/src/models/balance-transfers.ts +60 -0
  163. package/src/models/balance.ts +36 -0
  164. package/src/models/buy-number-command.ts +42 -0
  165. package/src/models/cancel-number-command.ts +42 -0
  166. package/src/models/create-application-command.ts +48 -0
  167. package/src/models/create-secret-command.ts +36 -0
  168. package/src/models/create-sub-account-command.ts +42 -0
  169. package/src/models/delete-application-command.ts +30 -0
  170. package/src/models/first.ts +30 -0
  171. package/src/models/get-transfer-balance-embeded.ts +33 -0
  172. package/src/models/get-transfer-balance-result.ts +42 -0
  173. package/src/models/hallinks.ts +57 -0
  174. package/src/models/index.ts +45 -0
  175. package/src/models/keys.ts +36 -0
  176. package/src/models/last.ts +30 -0
  177. package/src/models/link.ts +30 -0
  178. package/src/models/links.ts +51 -0
  179. package/src/models/meetings.ts +33 -0
  180. package/src/models/messages.ts +33 -0
  181. package/src/models/number-transaction-response.ts +36 -0
  182. package/src/models/number.ts +54 -0
  183. package/src/models/numbers-search-response.ts +39 -0
  184. package/src/models/primary-account.ts +60 -0
  185. package/src/models/retrieve-sub-accounts-embedded.ts +42 -0
  186. package/src/models/retrieve-sub-accounts-result.ts +54 -0
  187. package/src/models/rtc.ts +33 -0
  188. package/src/models/search-pattern.ts +32 -0
  189. package/src/models/secret-list.ts +33 -0
  190. package/src/models/secret.ts +45 -0
  191. package/src/models/secrets-request-result.ts +42 -0
  192. package/src/models/self.ts +30 -0
  193. package/src/models/sub-account.ts +78 -0
  194. package/src/models/transfer-balance-command.ts +42 -0
  195. package/src/models/transfer-balance-result.ts +75 -0
  196. package/src/models/update-account-command.ts +36 -0
  197. package/src/models/update-application-command.ts +54 -0
  198. package/src/models/update-number-command.ts +72 -0
  199. package/src/models/vbc.ts +33 -0
  200. package/src/models/video.ts +33 -0
  201. package/src/models/voice.ts +33 -0
  202. package/src/models/webhook.ts +36 -0
@@ -0,0 +1,1206 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Swagger UI - Cloud Hospital Admin Api-INT
6
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 1
9
+ * Contact: hyounoosung@icloudhospital.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.VonageAccountsApi = exports.VonageAccountsApiFactory = exports.VonageAccountsApiFp = exports.VonageAccountsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * VonageAccountsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var VonageAccountsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ apiV1VonageaccountsBalanceGet: function (options) {
101
+ if (options === void 0) { options = {}; }
102
+ return __awaiter(_this, void 0, void 0, function () {
103
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
104
+ return __generator(this, function (_a) {
105
+ switch (_a.label) {
106
+ case 0:
107
+ localVarPath = "/api/v1/vonageaccounts/balance";
108
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ }
112
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
113
+ localVarHeaderParameter = {};
114
+ localVarQueryParameter = {};
115
+ // authentication oauth2 required
116
+ // oauth required
117
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
118
+ case 1:
119
+ // authentication oauth2 required
120
+ // oauth required
121
+ _a.sent();
122
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
123
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
125
+ return [2 /*return*/, {
126
+ url: (0, common_1.toPathString)(localVarUrlObj),
127
+ options: localVarRequestOptions,
128
+ }];
129
+ }
130
+ });
131
+ });
132
+ },
133
+ /**
134
+ *
135
+ * @param {TransferBalanceCommand} [transferBalanceCommand]
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ apiV1VonageaccountsBalanceTransferPost: function (transferBalanceCommand, options) {
140
+ if (options === void 0) { options = {}; }
141
+ return __awaiter(_this, void 0, void 0, function () {
142
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
143
+ return __generator(this, function (_a) {
144
+ switch (_a.label) {
145
+ case 0:
146
+ localVarPath = "/api/v1/vonageaccounts/balance/transfer";
147
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
148
+ if (configuration) {
149
+ baseOptions = configuration.baseOptions;
150
+ }
151
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
152
+ localVarHeaderParameter = {};
153
+ localVarQueryParameter = {};
154
+ // authentication oauth2 required
155
+ // oauth required
156
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
157
+ case 1:
158
+ // authentication oauth2 required
159
+ // oauth required
160
+ _a.sent();
161
+ localVarHeaderParameter['Content-Type'] = 'application/json';
162
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
163
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
164
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
165
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(transferBalanceCommand, localVarRequestOptions, configuration);
166
+ return [2 /*return*/, {
167
+ url: (0, common_1.toPathString)(localVarUrlObj),
168
+ options: localVarRequestOptions,
169
+ }];
170
+ }
171
+ });
172
+ });
173
+ },
174
+ /**
175
+ *
176
+ * @param {string} [apiKey]
177
+ * @param {Date} [startDate]
178
+ * @param {Date} [endDate]
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ apiV1VonageaccountsBalancetransfersGet: function (apiKey, startDate, endDate, options) {
183
+ if (options === void 0) { options = {}; }
184
+ return __awaiter(_this, void 0, void 0, function () {
185
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
186
+ return __generator(this, function (_a) {
187
+ switch (_a.label) {
188
+ case 0:
189
+ localVarPath = "/api/v1/vonageaccounts/balancetransfers";
190
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
191
+ if (configuration) {
192
+ baseOptions = configuration.baseOptions;
193
+ }
194
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
195
+ localVarHeaderParameter = {};
196
+ localVarQueryParameter = {};
197
+ // authentication oauth2 required
198
+ // oauth required
199
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
200
+ case 1:
201
+ // authentication oauth2 required
202
+ // oauth required
203
+ _a.sent();
204
+ if (apiKey !== undefined) {
205
+ localVarQueryParameter['ApiKey'] = apiKey;
206
+ }
207
+ if (startDate !== undefined) {
208
+ localVarQueryParameter['StartDate'] = (startDate instanceof Date) ?
209
+ startDate.toISOString() :
210
+ startDate;
211
+ }
212
+ if (endDate !== undefined) {
213
+ localVarQueryParameter['EndDate'] = (endDate instanceof Date) ?
214
+ endDate.toISOString() :
215
+ endDate;
216
+ }
217
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
218
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
219
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
220
+ return [2 /*return*/, {
221
+ url: (0, common_1.toPathString)(localVarUrlObj),
222
+ options: localVarRequestOptions,
223
+ }];
224
+ }
225
+ });
226
+ });
227
+ },
228
+ /**
229
+ *
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ */
233
+ apiV1VonageaccountsGet: function (options) {
234
+ if (options === void 0) { options = {}; }
235
+ return __awaiter(_this, void 0, void 0, function () {
236
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
237
+ return __generator(this, function (_a) {
238
+ switch (_a.label) {
239
+ case 0:
240
+ localVarPath = "/api/v1/vonageaccounts";
241
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
242
+ if (configuration) {
243
+ baseOptions = configuration.baseOptions;
244
+ }
245
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
246
+ localVarHeaderParameter = {};
247
+ localVarQueryParameter = {};
248
+ // authentication oauth2 required
249
+ // oauth required
250
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
251
+ case 1:
252
+ // authentication oauth2 required
253
+ // oauth required
254
+ _a.sent();
255
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
256
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
257
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
258
+ return [2 /*return*/, {
259
+ url: (0, common_1.toPathString)(localVarUrlObj),
260
+ options: localVarRequestOptions,
261
+ }];
262
+ }
263
+ });
264
+ });
265
+ },
266
+ /**
267
+ *
268
+ * @param {CreateSubAccountCommand} [createSubAccountCommand]
269
+ * @param {*} [options] Override http request option.
270
+ * @throws {RequiredError}
271
+ */
272
+ apiV1VonageaccountsPost: function (createSubAccountCommand, options) {
273
+ if (options === void 0) { options = {}; }
274
+ return __awaiter(_this, void 0, void 0, function () {
275
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
276
+ return __generator(this, function (_a) {
277
+ switch (_a.label) {
278
+ case 0:
279
+ localVarPath = "/api/v1/vonageaccounts";
280
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
281
+ if (configuration) {
282
+ baseOptions = configuration.baseOptions;
283
+ }
284
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
285
+ localVarHeaderParameter = {};
286
+ localVarQueryParameter = {};
287
+ // authentication oauth2 required
288
+ // oauth required
289
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
290
+ case 1:
291
+ // authentication oauth2 required
292
+ // oauth required
293
+ _a.sent();
294
+ localVarHeaderParameter['Content-Type'] = 'application/json';
295
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
296
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
298
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubAccountCommand, localVarRequestOptions, configuration);
299
+ return [2 /*return*/, {
300
+ url: (0, common_1.toPathString)(localVarUrlObj),
301
+ options: localVarRequestOptions,
302
+ }];
303
+ }
304
+ });
305
+ });
306
+ },
307
+ /**
308
+ *
309
+ * @param {string} [apiKey]
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ apiV1VonageaccountsSecretsGet: function (apiKey, options) {
314
+ if (options === void 0) { options = {}; }
315
+ return __awaiter(_this, void 0, void 0, function () {
316
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
317
+ return __generator(this, function (_a) {
318
+ switch (_a.label) {
319
+ case 0:
320
+ localVarPath = "/api/v1/vonageaccounts/secrets";
321
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
322
+ if (configuration) {
323
+ baseOptions = configuration.baseOptions;
324
+ }
325
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
326
+ localVarHeaderParameter = {};
327
+ localVarQueryParameter = {};
328
+ // authentication oauth2 required
329
+ // oauth required
330
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
331
+ case 1:
332
+ // authentication oauth2 required
333
+ // oauth required
334
+ _a.sent();
335
+ if (apiKey !== undefined) {
336
+ localVarQueryParameter['ApiKey'] = apiKey;
337
+ }
338
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
339
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
340
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
341
+ return [2 /*return*/, {
342
+ url: (0, common_1.toPathString)(localVarUrlObj),
343
+ options: localVarRequestOptions,
344
+ }];
345
+ }
346
+ });
347
+ });
348
+ },
349
+ /**
350
+ *
351
+ * @param {CreateSecretCommand} [createSecretCommand]
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ apiV1VonageaccountsSecretsPost: function (createSecretCommand, options) {
356
+ if (options === void 0) { options = {}; }
357
+ return __awaiter(_this, void 0, void 0, function () {
358
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
359
+ return __generator(this, function (_a) {
360
+ switch (_a.label) {
361
+ case 0:
362
+ localVarPath = "/api/v1/vonageaccounts/secrets";
363
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
364
+ if (configuration) {
365
+ baseOptions = configuration.baseOptions;
366
+ }
367
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
368
+ localVarHeaderParameter = {};
369
+ localVarQueryParameter = {};
370
+ // authentication oauth2 required
371
+ // oauth required
372
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
373
+ case 1:
374
+ // authentication oauth2 required
375
+ // oauth required
376
+ _a.sent();
377
+ localVarHeaderParameter['Content-Type'] = 'application/json';
378
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
379
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
380
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
381
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSecretCommand, localVarRequestOptions, configuration);
382
+ return [2 /*return*/, {
383
+ url: (0, common_1.toPathString)(localVarUrlObj),
384
+ options: localVarRequestOptions,
385
+ }];
386
+ }
387
+ });
388
+ });
389
+ },
390
+ /**
391
+ *
392
+ * @param {string} secretId
393
+ * @param {string} [apiKey]
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ apiV1VonageaccountsSecretsSecretIdDelete: function (secretId, apiKey, options) {
398
+ if (options === void 0) { options = {}; }
399
+ return __awaiter(_this, void 0, void 0, function () {
400
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
401
+ return __generator(this, function (_a) {
402
+ switch (_a.label) {
403
+ case 0:
404
+ // verify required parameter 'secretId' is not null or undefined
405
+ (0, common_1.assertParamExists)('apiV1VonageaccountsSecretsSecretIdDelete', 'secretId', secretId);
406
+ localVarPath = "/api/v1/vonageaccounts/secrets/{secretId}"
407
+ .replace("{".concat("secretId", "}"), encodeURIComponent(String(secretId)));
408
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
409
+ if (configuration) {
410
+ baseOptions = configuration.baseOptions;
411
+ }
412
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
413
+ localVarHeaderParameter = {};
414
+ localVarQueryParameter = {};
415
+ // authentication oauth2 required
416
+ // oauth required
417
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
418
+ case 1:
419
+ // authentication oauth2 required
420
+ // oauth required
421
+ _a.sent();
422
+ if (apiKey !== undefined) {
423
+ localVarQueryParameter['apiKey'] = apiKey;
424
+ }
425
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
426
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
427
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
428
+ return [2 /*return*/, {
429
+ url: (0, common_1.toPathString)(localVarUrlObj),
430
+ options: localVarRequestOptions,
431
+ }];
432
+ }
433
+ });
434
+ });
435
+ },
436
+ /**
437
+ *
438
+ * @param {string} secretId
439
+ * @param {string} [secretId2]
440
+ * @param {string} [apiKey]
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ */
444
+ apiV1VonageaccountsSecretsSecretIdGet: function (secretId, secretId2, apiKey, options) {
445
+ if (options === void 0) { options = {}; }
446
+ return __awaiter(_this, void 0, void 0, function () {
447
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
448
+ return __generator(this, function (_a) {
449
+ switch (_a.label) {
450
+ case 0:
451
+ // verify required parameter 'secretId' is not null or undefined
452
+ (0, common_1.assertParamExists)('apiV1VonageaccountsSecretsSecretIdGet', 'secretId', secretId);
453
+ localVarPath = "/api/v1/vonageaccounts/secrets/{secretId}"
454
+ .replace("{".concat("secretId", "}"), encodeURIComponent(String(secretId)));
455
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
456
+ if (configuration) {
457
+ baseOptions = configuration.baseOptions;
458
+ }
459
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
460
+ localVarHeaderParameter = {};
461
+ localVarQueryParameter = {};
462
+ // authentication oauth2 required
463
+ // oauth required
464
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
465
+ case 1:
466
+ // authentication oauth2 required
467
+ // oauth required
468
+ _a.sent();
469
+ if (secretId2 !== undefined) {
470
+ localVarQueryParameter['SecretId'] = secretId2;
471
+ }
472
+ if (apiKey !== undefined) {
473
+ localVarQueryParameter['ApiKey'] = apiKey;
474
+ }
475
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
476
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
477
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
478
+ return [2 /*return*/, {
479
+ url: (0, common_1.toPathString)(localVarUrlObj),
480
+ options: localVarRequestOptions,
481
+ }];
482
+ }
483
+ });
484
+ });
485
+ },
486
+ /**
487
+ *
488
+ * @param {string} subAccountKey
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ apiV1VonageaccountsSubAccountKeyDelete: function (subAccountKey, options) {
493
+ if (options === void 0) { options = {}; }
494
+ return __awaiter(_this, void 0, void 0, function () {
495
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
496
+ return __generator(this, function (_a) {
497
+ switch (_a.label) {
498
+ case 0:
499
+ // verify required parameter 'subAccountKey' is not null or undefined
500
+ (0, common_1.assertParamExists)('apiV1VonageaccountsSubAccountKeyDelete', 'subAccountKey', subAccountKey);
501
+ localVarPath = "/api/v1/vonageaccounts/{subAccountKey}"
502
+ .replace("{".concat("subAccountKey", "}"), encodeURIComponent(String(subAccountKey)));
503
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
504
+ if (configuration) {
505
+ baseOptions = configuration.baseOptions;
506
+ }
507
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
508
+ localVarHeaderParameter = {};
509
+ localVarQueryParameter = {};
510
+ // authentication oauth2 required
511
+ // oauth required
512
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
513
+ case 1:
514
+ // authentication oauth2 required
515
+ // oauth required
516
+ _a.sent();
517
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
518
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
519
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
520
+ return [2 /*return*/, {
521
+ url: (0, common_1.toPathString)(localVarUrlObj),
522
+ options: localVarRequestOptions,
523
+ }];
524
+ }
525
+ });
526
+ });
527
+ },
528
+ /**
529
+ *
530
+ * @param {string} subAccountKey
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ apiV1VonageaccountsSubAccountKeyGet: function (subAccountKey, options) {
535
+ if (options === void 0) { options = {}; }
536
+ return __awaiter(_this, void 0, void 0, function () {
537
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
538
+ return __generator(this, function (_a) {
539
+ switch (_a.label) {
540
+ case 0:
541
+ // verify required parameter 'subAccountKey' is not null or undefined
542
+ (0, common_1.assertParamExists)('apiV1VonageaccountsSubAccountKeyGet', 'subAccountKey', subAccountKey);
543
+ localVarPath = "/api/v1/vonageaccounts/{subAccountKey}"
544
+ .replace("{".concat("subAccountKey", "}"), encodeURIComponent(String(subAccountKey)));
545
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
546
+ if (configuration) {
547
+ baseOptions = configuration.baseOptions;
548
+ }
549
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
550
+ localVarHeaderParameter = {};
551
+ localVarQueryParameter = {};
552
+ // authentication oauth2 required
553
+ // oauth required
554
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
555
+ case 1:
556
+ // authentication oauth2 required
557
+ // oauth required
558
+ _a.sent();
559
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
560
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
561
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
562
+ return [2 /*return*/, {
563
+ url: (0, common_1.toPathString)(localVarUrlObj),
564
+ options: localVarRequestOptions,
565
+ }];
566
+ }
567
+ });
568
+ });
569
+ },
570
+ /**
571
+ *
572
+ * @param {string} subAccountKey
573
+ * @param {*} [options] Override http request option.
574
+ * @throws {RequiredError}
575
+ */
576
+ apiV1VonageaccountsSubAccountKeyPut: function (subAccountKey, options) {
577
+ if (options === void 0) { options = {}; }
578
+ return __awaiter(_this, void 0, void 0, function () {
579
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
580
+ return __generator(this, function (_a) {
581
+ switch (_a.label) {
582
+ case 0:
583
+ // verify required parameter 'subAccountKey' is not null or undefined
584
+ (0, common_1.assertParamExists)('apiV1VonageaccountsSubAccountKeyPut', 'subAccountKey', subAccountKey);
585
+ localVarPath = "/api/v1/vonageaccounts/{subAccountKey}"
586
+ .replace("{".concat("subAccountKey", "}"), encodeURIComponent(String(subAccountKey)));
587
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
588
+ if (configuration) {
589
+ baseOptions = configuration.baseOptions;
590
+ }
591
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
592
+ localVarHeaderParameter = {};
593
+ localVarQueryParameter = {};
594
+ // authentication oauth2 required
595
+ // oauth required
596
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
597
+ case 1:
598
+ // authentication oauth2 required
599
+ // oauth required
600
+ _a.sent();
601
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
602
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
603
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
604
+ return [2 /*return*/, {
605
+ url: (0, common_1.toPathString)(localVarUrlObj),
606
+ options: localVarRequestOptions,
607
+ }];
608
+ }
609
+ });
610
+ });
611
+ },
612
+ /**
613
+ *
614
+ * @param {UpdateAccountCommand} [updateAccountCommand]
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ */
618
+ apiV1VonageaccountsUpdatePut: function (updateAccountCommand, options) {
619
+ if (options === void 0) { options = {}; }
620
+ return __awaiter(_this, void 0, void 0, function () {
621
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
622
+ return __generator(this, function (_a) {
623
+ switch (_a.label) {
624
+ case 0:
625
+ localVarPath = "/api/v1/vonageaccounts/update";
626
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
627
+ if (configuration) {
628
+ baseOptions = configuration.baseOptions;
629
+ }
630
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
631
+ localVarHeaderParameter = {};
632
+ localVarQueryParameter = {};
633
+ // authentication oauth2 required
634
+ // oauth required
635
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
636
+ case 1:
637
+ // authentication oauth2 required
638
+ // oauth required
639
+ _a.sent();
640
+ localVarHeaderParameter['Content-Type'] = 'application/json';
641
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
642
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
643
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
644
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAccountCommand, localVarRequestOptions, configuration);
645
+ return [2 /*return*/, {
646
+ url: (0, common_1.toPathString)(localVarUrlObj),
647
+ options: localVarRequestOptions,
648
+ }];
649
+ }
650
+ });
651
+ });
652
+ },
653
+ };
654
+ };
655
+ exports.VonageAccountsApiAxiosParamCreator = VonageAccountsApiAxiosParamCreator;
656
+ /**
657
+ * VonageAccountsApi - functional programming interface
658
+ * @export
659
+ */
660
+ var VonageAccountsApiFp = function (configuration) {
661
+ var localVarAxiosParamCreator = (0, exports.VonageAccountsApiAxiosParamCreator)(configuration);
662
+ return {
663
+ /**
664
+ *
665
+ * @param {*} [options] Override http request option.
666
+ * @throws {RequiredError}
667
+ */
668
+ apiV1VonageaccountsBalanceGet: function (options) {
669
+ return __awaiter(this, void 0, void 0, function () {
670
+ var localVarAxiosArgs;
671
+ return __generator(this, function (_a) {
672
+ switch (_a.label) {
673
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsBalanceGet(options)];
674
+ case 1:
675
+ localVarAxiosArgs = _a.sent();
676
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
677
+ }
678
+ });
679
+ });
680
+ },
681
+ /**
682
+ *
683
+ * @param {TransferBalanceCommand} [transferBalanceCommand]
684
+ * @param {*} [options] Override http request option.
685
+ * @throws {RequiredError}
686
+ */
687
+ apiV1VonageaccountsBalanceTransferPost: function (transferBalanceCommand, options) {
688
+ return __awaiter(this, void 0, void 0, function () {
689
+ var localVarAxiosArgs;
690
+ return __generator(this, function (_a) {
691
+ switch (_a.label) {
692
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsBalanceTransferPost(transferBalanceCommand, options)];
693
+ case 1:
694
+ localVarAxiosArgs = _a.sent();
695
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
696
+ }
697
+ });
698
+ });
699
+ },
700
+ /**
701
+ *
702
+ * @param {string} [apiKey]
703
+ * @param {Date} [startDate]
704
+ * @param {Date} [endDate]
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ */
708
+ apiV1VonageaccountsBalancetransfersGet: function (apiKey, startDate, endDate, options) {
709
+ return __awaiter(this, void 0, void 0, function () {
710
+ var localVarAxiosArgs;
711
+ return __generator(this, function (_a) {
712
+ switch (_a.label) {
713
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsBalancetransfersGet(apiKey, startDate, endDate, options)];
714
+ case 1:
715
+ localVarAxiosArgs = _a.sent();
716
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
717
+ }
718
+ });
719
+ });
720
+ },
721
+ /**
722
+ *
723
+ * @param {*} [options] Override http request option.
724
+ * @throws {RequiredError}
725
+ */
726
+ apiV1VonageaccountsGet: function (options) {
727
+ return __awaiter(this, void 0, void 0, function () {
728
+ var localVarAxiosArgs;
729
+ return __generator(this, function (_a) {
730
+ switch (_a.label) {
731
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsGet(options)];
732
+ case 1:
733
+ localVarAxiosArgs = _a.sent();
734
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
735
+ }
736
+ });
737
+ });
738
+ },
739
+ /**
740
+ *
741
+ * @param {CreateSubAccountCommand} [createSubAccountCommand]
742
+ * @param {*} [options] Override http request option.
743
+ * @throws {RequiredError}
744
+ */
745
+ apiV1VonageaccountsPost: function (createSubAccountCommand, options) {
746
+ return __awaiter(this, void 0, void 0, function () {
747
+ var localVarAxiosArgs;
748
+ return __generator(this, function (_a) {
749
+ switch (_a.label) {
750
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsPost(createSubAccountCommand, options)];
751
+ case 1:
752
+ localVarAxiosArgs = _a.sent();
753
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
754
+ }
755
+ });
756
+ });
757
+ },
758
+ /**
759
+ *
760
+ * @param {string} [apiKey]
761
+ * @param {*} [options] Override http request option.
762
+ * @throws {RequiredError}
763
+ */
764
+ apiV1VonageaccountsSecretsGet: function (apiKey, options) {
765
+ return __awaiter(this, void 0, void 0, function () {
766
+ var localVarAxiosArgs;
767
+ return __generator(this, function (_a) {
768
+ switch (_a.label) {
769
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSecretsGet(apiKey, options)];
770
+ case 1:
771
+ localVarAxiosArgs = _a.sent();
772
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
773
+ }
774
+ });
775
+ });
776
+ },
777
+ /**
778
+ *
779
+ * @param {CreateSecretCommand} [createSecretCommand]
780
+ * @param {*} [options] Override http request option.
781
+ * @throws {RequiredError}
782
+ */
783
+ apiV1VonageaccountsSecretsPost: function (createSecretCommand, options) {
784
+ return __awaiter(this, void 0, void 0, function () {
785
+ var localVarAxiosArgs;
786
+ return __generator(this, function (_a) {
787
+ switch (_a.label) {
788
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSecretsPost(createSecretCommand, options)];
789
+ case 1:
790
+ localVarAxiosArgs = _a.sent();
791
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
792
+ }
793
+ });
794
+ });
795
+ },
796
+ /**
797
+ *
798
+ * @param {string} secretId
799
+ * @param {string} [apiKey]
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ */
803
+ apiV1VonageaccountsSecretsSecretIdDelete: function (secretId, apiKey, options) {
804
+ return __awaiter(this, void 0, void 0, function () {
805
+ var localVarAxiosArgs;
806
+ return __generator(this, function (_a) {
807
+ switch (_a.label) {
808
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSecretsSecretIdDelete(secretId, apiKey, options)];
809
+ case 1:
810
+ localVarAxiosArgs = _a.sent();
811
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
812
+ }
813
+ });
814
+ });
815
+ },
816
+ /**
817
+ *
818
+ * @param {string} secretId
819
+ * @param {string} [secretId2]
820
+ * @param {string} [apiKey]
821
+ * @param {*} [options] Override http request option.
822
+ * @throws {RequiredError}
823
+ */
824
+ apiV1VonageaccountsSecretsSecretIdGet: function (secretId, secretId2, apiKey, options) {
825
+ return __awaiter(this, void 0, void 0, function () {
826
+ var localVarAxiosArgs;
827
+ return __generator(this, function (_a) {
828
+ switch (_a.label) {
829
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSecretsSecretIdGet(secretId, secretId2, apiKey, options)];
830
+ case 1:
831
+ localVarAxiosArgs = _a.sent();
832
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
833
+ }
834
+ });
835
+ });
836
+ },
837
+ /**
838
+ *
839
+ * @param {string} subAccountKey
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ */
843
+ apiV1VonageaccountsSubAccountKeyDelete: function (subAccountKey, options) {
844
+ return __awaiter(this, void 0, void 0, function () {
845
+ var localVarAxiosArgs;
846
+ return __generator(this, function (_a) {
847
+ switch (_a.label) {
848
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSubAccountKeyDelete(subAccountKey, options)];
849
+ case 1:
850
+ localVarAxiosArgs = _a.sent();
851
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
852
+ }
853
+ });
854
+ });
855
+ },
856
+ /**
857
+ *
858
+ * @param {string} subAccountKey
859
+ * @param {*} [options] Override http request option.
860
+ * @throws {RequiredError}
861
+ */
862
+ apiV1VonageaccountsSubAccountKeyGet: function (subAccountKey, options) {
863
+ return __awaiter(this, void 0, void 0, function () {
864
+ var localVarAxiosArgs;
865
+ return __generator(this, function (_a) {
866
+ switch (_a.label) {
867
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSubAccountKeyGet(subAccountKey, options)];
868
+ case 1:
869
+ localVarAxiosArgs = _a.sent();
870
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
871
+ }
872
+ });
873
+ });
874
+ },
875
+ /**
876
+ *
877
+ * @param {string} subAccountKey
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ */
881
+ apiV1VonageaccountsSubAccountKeyPut: function (subAccountKey, options) {
882
+ return __awaiter(this, void 0, void 0, function () {
883
+ var localVarAxiosArgs;
884
+ return __generator(this, function (_a) {
885
+ switch (_a.label) {
886
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSubAccountKeyPut(subAccountKey, options)];
887
+ case 1:
888
+ localVarAxiosArgs = _a.sent();
889
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
890
+ }
891
+ });
892
+ });
893
+ },
894
+ /**
895
+ *
896
+ * @param {UpdateAccountCommand} [updateAccountCommand]
897
+ * @param {*} [options] Override http request option.
898
+ * @throws {RequiredError}
899
+ */
900
+ apiV1VonageaccountsUpdatePut: function (updateAccountCommand, options) {
901
+ return __awaiter(this, void 0, void 0, function () {
902
+ var localVarAxiosArgs;
903
+ return __generator(this, function (_a) {
904
+ switch (_a.label) {
905
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsUpdatePut(updateAccountCommand, options)];
906
+ case 1:
907
+ localVarAxiosArgs = _a.sent();
908
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
909
+ }
910
+ });
911
+ });
912
+ },
913
+ };
914
+ };
915
+ exports.VonageAccountsApiFp = VonageAccountsApiFp;
916
+ /**
917
+ * VonageAccountsApi - factory interface
918
+ * @export
919
+ */
920
+ var VonageAccountsApiFactory = function (configuration, basePath, axios) {
921
+ var localVarFp = (0, exports.VonageAccountsApiFp)(configuration);
922
+ return {
923
+ /**
924
+ *
925
+ * @param {*} [options] Override http request option.
926
+ * @throws {RequiredError}
927
+ */
928
+ apiV1VonageaccountsBalanceGet: function (options) {
929
+ return localVarFp.apiV1VonageaccountsBalanceGet(options).then(function (request) { return request(axios, basePath); });
930
+ },
931
+ /**
932
+ *
933
+ * @param {TransferBalanceCommand} [transferBalanceCommand]
934
+ * @param {*} [options] Override http request option.
935
+ * @throws {RequiredError}
936
+ */
937
+ apiV1VonageaccountsBalanceTransferPost: function (transferBalanceCommand, options) {
938
+ return localVarFp.apiV1VonageaccountsBalanceTransferPost(transferBalanceCommand, options).then(function (request) { return request(axios, basePath); });
939
+ },
940
+ /**
941
+ *
942
+ * @param {string} [apiKey]
943
+ * @param {Date} [startDate]
944
+ * @param {Date} [endDate]
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ */
948
+ apiV1VonageaccountsBalancetransfersGet: function (apiKey, startDate, endDate, options) {
949
+ return localVarFp.apiV1VonageaccountsBalancetransfersGet(apiKey, startDate, endDate, options).then(function (request) { return request(axios, basePath); });
950
+ },
951
+ /**
952
+ *
953
+ * @param {*} [options] Override http request option.
954
+ * @throws {RequiredError}
955
+ */
956
+ apiV1VonageaccountsGet: function (options) {
957
+ return localVarFp.apiV1VonageaccountsGet(options).then(function (request) { return request(axios, basePath); });
958
+ },
959
+ /**
960
+ *
961
+ * @param {CreateSubAccountCommand} [createSubAccountCommand]
962
+ * @param {*} [options] Override http request option.
963
+ * @throws {RequiredError}
964
+ */
965
+ apiV1VonageaccountsPost: function (createSubAccountCommand, options) {
966
+ return localVarFp.apiV1VonageaccountsPost(createSubAccountCommand, options).then(function (request) { return request(axios, basePath); });
967
+ },
968
+ /**
969
+ *
970
+ * @param {string} [apiKey]
971
+ * @param {*} [options] Override http request option.
972
+ * @throws {RequiredError}
973
+ */
974
+ apiV1VonageaccountsSecretsGet: function (apiKey, options) {
975
+ return localVarFp.apiV1VonageaccountsSecretsGet(apiKey, options).then(function (request) { return request(axios, basePath); });
976
+ },
977
+ /**
978
+ *
979
+ * @param {CreateSecretCommand} [createSecretCommand]
980
+ * @param {*} [options] Override http request option.
981
+ * @throws {RequiredError}
982
+ */
983
+ apiV1VonageaccountsSecretsPost: function (createSecretCommand, options) {
984
+ return localVarFp.apiV1VonageaccountsSecretsPost(createSecretCommand, options).then(function (request) { return request(axios, basePath); });
985
+ },
986
+ /**
987
+ *
988
+ * @param {string} secretId
989
+ * @param {string} [apiKey]
990
+ * @param {*} [options] Override http request option.
991
+ * @throws {RequiredError}
992
+ */
993
+ apiV1VonageaccountsSecretsSecretIdDelete: function (secretId, apiKey, options) {
994
+ return localVarFp.apiV1VonageaccountsSecretsSecretIdDelete(secretId, apiKey, options).then(function (request) { return request(axios, basePath); });
995
+ },
996
+ /**
997
+ *
998
+ * @param {string} secretId
999
+ * @param {string} [secretId2]
1000
+ * @param {string} [apiKey]
1001
+ * @param {*} [options] Override http request option.
1002
+ * @throws {RequiredError}
1003
+ */
1004
+ apiV1VonageaccountsSecretsSecretIdGet: function (secretId, secretId2, apiKey, options) {
1005
+ return localVarFp.apiV1VonageaccountsSecretsSecretIdGet(secretId, secretId2, apiKey, options).then(function (request) { return request(axios, basePath); });
1006
+ },
1007
+ /**
1008
+ *
1009
+ * @param {string} subAccountKey
1010
+ * @param {*} [options] Override http request option.
1011
+ * @throws {RequiredError}
1012
+ */
1013
+ apiV1VonageaccountsSubAccountKeyDelete: function (subAccountKey, options) {
1014
+ return localVarFp.apiV1VonageaccountsSubAccountKeyDelete(subAccountKey, options).then(function (request) { return request(axios, basePath); });
1015
+ },
1016
+ /**
1017
+ *
1018
+ * @param {string} subAccountKey
1019
+ * @param {*} [options] Override http request option.
1020
+ * @throws {RequiredError}
1021
+ */
1022
+ apiV1VonageaccountsSubAccountKeyGet: function (subAccountKey, options) {
1023
+ return localVarFp.apiV1VonageaccountsSubAccountKeyGet(subAccountKey, options).then(function (request) { return request(axios, basePath); });
1024
+ },
1025
+ /**
1026
+ *
1027
+ * @param {string} subAccountKey
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ apiV1VonageaccountsSubAccountKeyPut: function (subAccountKey, options) {
1032
+ return localVarFp.apiV1VonageaccountsSubAccountKeyPut(subAccountKey, options).then(function (request) { return request(axios, basePath); });
1033
+ },
1034
+ /**
1035
+ *
1036
+ * @param {UpdateAccountCommand} [updateAccountCommand]
1037
+ * @param {*} [options] Override http request option.
1038
+ * @throws {RequiredError}
1039
+ */
1040
+ apiV1VonageaccountsUpdatePut: function (updateAccountCommand, options) {
1041
+ return localVarFp.apiV1VonageaccountsUpdatePut(updateAccountCommand, options).then(function (request) { return request(axios, basePath); });
1042
+ },
1043
+ };
1044
+ };
1045
+ exports.VonageAccountsApiFactory = VonageAccountsApiFactory;
1046
+ /**
1047
+ * VonageAccountsApi - object-oriented interface
1048
+ * @export
1049
+ * @class VonageAccountsApi
1050
+ * @extends {BaseAPI}
1051
+ */
1052
+ var VonageAccountsApi = /** @class */ (function (_super) {
1053
+ __extends(VonageAccountsApi, _super);
1054
+ function VonageAccountsApi() {
1055
+ return _super !== null && _super.apply(this, arguments) || this;
1056
+ }
1057
+ /**
1058
+ *
1059
+ * @param {*} [options] Override http request option.
1060
+ * @throws {RequiredError}
1061
+ * @memberof VonageAccountsApi
1062
+ */
1063
+ VonageAccountsApi.prototype.apiV1VonageaccountsBalanceGet = function (options) {
1064
+ var _this = this;
1065
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsBalanceGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
1066
+ };
1067
+ /**
1068
+ *
1069
+ * @param {VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest} requestParameters Request parameters.
1070
+ * @param {*} [options] Override http request option.
1071
+ * @throws {RequiredError}
1072
+ * @memberof VonageAccountsApi
1073
+ */
1074
+ VonageAccountsApi.prototype.apiV1VonageaccountsBalanceTransferPost = function (requestParameters, options) {
1075
+ var _this = this;
1076
+ if (requestParameters === void 0) { requestParameters = {}; }
1077
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsBalanceTransferPost(requestParameters.transferBalanceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1078
+ };
1079
+ /**
1080
+ *
1081
+ * @param {VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest} requestParameters Request parameters.
1082
+ * @param {*} [options] Override http request option.
1083
+ * @throws {RequiredError}
1084
+ * @memberof VonageAccountsApi
1085
+ */
1086
+ VonageAccountsApi.prototype.apiV1VonageaccountsBalancetransfersGet = function (requestParameters, options) {
1087
+ var _this = this;
1088
+ if (requestParameters === void 0) { requestParameters = {}; }
1089
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsBalancetransfersGet(requestParameters.apiKey, requestParameters.startDate, requestParameters.endDate, options).then(function (request) { return request(_this.axios, _this.basePath); });
1090
+ };
1091
+ /**
1092
+ *
1093
+ * @param {*} [options] Override http request option.
1094
+ * @throws {RequiredError}
1095
+ * @memberof VonageAccountsApi
1096
+ */
1097
+ VonageAccountsApi.prototype.apiV1VonageaccountsGet = function (options) {
1098
+ var _this = this;
1099
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
1100
+ };
1101
+ /**
1102
+ *
1103
+ * @param {VonageAccountsApiApiV1VonageaccountsPostRequest} requestParameters Request parameters.
1104
+ * @param {*} [options] Override http request option.
1105
+ * @throws {RequiredError}
1106
+ * @memberof VonageAccountsApi
1107
+ */
1108
+ VonageAccountsApi.prototype.apiV1VonageaccountsPost = function (requestParameters, options) {
1109
+ var _this = this;
1110
+ if (requestParameters === void 0) { requestParameters = {}; }
1111
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsPost(requestParameters.createSubAccountCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1112
+ };
1113
+ /**
1114
+ *
1115
+ * @param {VonageAccountsApiApiV1VonageaccountsSecretsGetRequest} requestParameters Request parameters.
1116
+ * @param {*} [options] Override http request option.
1117
+ * @throws {RequiredError}
1118
+ * @memberof VonageAccountsApi
1119
+ */
1120
+ VonageAccountsApi.prototype.apiV1VonageaccountsSecretsGet = function (requestParameters, options) {
1121
+ var _this = this;
1122
+ if (requestParameters === void 0) { requestParameters = {}; }
1123
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSecretsGet(requestParameters.apiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
1124
+ };
1125
+ /**
1126
+ *
1127
+ * @param {VonageAccountsApiApiV1VonageaccountsSecretsPostRequest} requestParameters Request parameters.
1128
+ * @param {*} [options] Override http request option.
1129
+ * @throws {RequiredError}
1130
+ * @memberof VonageAccountsApi
1131
+ */
1132
+ VonageAccountsApi.prototype.apiV1VonageaccountsSecretsPost = function (requestParameters, options) {
1133
+ var _this = this;
1134
+ if (requestParameters === void 0) { requestParameters = {}; }
1135
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSecretsPost(requestParameters.createSecretCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1136
+ };
1137
+ /**
1138
+ *
1139
+ * @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest} requestParameters Request parameters.
1140
+ * @param {*} [options] Override http request option.
1141
+ * @throws {RequiredError}
1142
+ * @memberof VonageAccountsApi
1143
+ */
1144
+ VonageAccountsApi.prototype.apiV1VonageaccountsSecretsSecretIdDelete = function (requestParameters, options) {
1145
+ var _this = this;
1146
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSecretsSecretIdDelete(requestParameters.secretId, requestParameters.apiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
1147
+ };
1148
+ /**
1149
+ *
1150
+ * @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest} requestParameters Request parameters.
1151
+ * @param {*} [options] Override http request option.
1152
+ * @throws {RequiredError}
1153
+ * @memberof VonageAccountsApi
1154
+ */
1155
+ VonageAccountsApi.prototype.apiV1VonageaccountsSecretsSecretIdGet = function (requestParameters, options) {
1156
+ var _this = this;
1157
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSecretsSecretIdGet(requestParameters.secretId, requestParameters.secretId2, requestParameters.apiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
1158
+ };
1159
+ /**
1160
+ *
1161
+ * @param {VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest} requestParameters Request parameters.
1162
+ * @param {*} [options] Override http request option.
1163
+ * @throws {RequiredError}
1164
+ * @memberof VonageAccountsApi
1165
+ */
1166
+ VonageAccountsApi.prototype.apiV1VonageaccountsSubAccountKeyDelete = function (requestParameters, options) {
1167
+ var _this = this;
1168
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSubAccountKeyDelete(requestParameters.subAccountKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
1169
+ };
1170
+ /**
1171
+ *
1172
+ * @param {VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest} requestParameters Request parameters.
1173
+ * @param {*} [options] Override http request option.
1174
+ * @throws {RequiredError}
1175
+ * @memberof VonageAccountsApi
1176
+ */
1177
+ VonageAccountsApi.prototype.apiV1VonageaccountsSubAccountKeyGet = function (requestParameters, options) {
1178
+ var _this = this;
1179
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSubAccountKeyGet(requestParameters.subAccountKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
1180
+ };
1181
+ /**
1182
+ *
1183
+ * @param {VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest} requestParameters Request parameters.
1184
+ * @param {*} [options] Override http request option.
1185
+ * @throws {RequiredError}
1186
+ * @memberof VonageAccountsApi
1187
+ */
1188
+ VonageAccountsApi.prototype.apiV1VonageaccountsSubAccountKeyPut = function (requestParameters, options) {
1189
+ var _this = this;
1190
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSubAccountKeyPut(requestParameters.subAccountKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
1191
+ };
1192
+ /**
1193
+ *
1194
+ * @param {VonageAccountsApiApiV1VonageaccountsUpdatePutRequest} requestParameters Request parameters.
1195
+ * @param {*} [options] Override http request option.
1196
+ * @throws {RequiredError}
1197
+ * @memberof VonageAccountsApi
1198
+ */
1199
+ VonageAccountsApi.prototype.apiV1VonageaccountsUpdatePut = function (requestParameters, options) {
1200
+ var _this = this;
1201
+ if (requestParameters === void 0) { requestParameters = {}; }
1202
+ return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsUpdatePut(requestParameters.updateAccountCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1203
+ };
1204
+ return VonageAccountsApi;
1205
+ }(base_1.BaseAPI));
1206
+ exports.VonageAccountsApi = VonageAccountsApi;