ch-admin-api-client-typescript 5.4.5 → 5.4.7

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 (145) hide show
  1. package/lib/api/deals-api.d.ts +0 -303
  2. package/lib/api/deals-api.d.ts.map +1 -1
  3. package/lib/api/deals-api.js +0 -424
  4. package/lib/api/survey-forms-api.d.ts +12 -3
  5. package/lib/api/survey-forms-api.d.ts.map +1 -1
  6. package/lib/api/survey-forms-api.js +12 -6
  7. package/lib/api/vonage-accounts-api.d.ts +220 -129
  8. package/lib/api/vonage-accounts-api.d.ts.map +1 -1
  9. package/lib/api/vonage-accounts-api.js +309 -178
  10. package/lib/api/vonage-applications-api.d.ts +12 -4
  11. package/lib/api/vonage-applications-api.d.ts.map +1 -1
  12. package/lib/api/vonage-applications-api.js +12 -4
  13. package/lib/api/vonage-numbers-api.d.ts +8 -4
  14. package/lib/api/vonage-numbers-api.d.ts.map +1 -1
  15. package/lib/api/vonage-numbers-api.js +8 -4
  16. package/lib/api/vonage-users-api.d.ts +95 -5
  17. package/lib/api/vonage-users-api.d.ts.map +1 -1
  18. package/lib/api/vonage-users-api.js +120 -7
  19. package/lib/models/appointment-type.d.ts +0 -1
  20. package/lib/models/appointment-type.d.ts.map +1 -1
  21. package/lib/models/appointment-type.js +0 -1
  22. package/lib/models/create-deal-command.d.ts +0 -20
  23. package/lib/models/create-deal-command.d.ts.map +1 -1
  24. package/lib/models/create-doctor-affiliation-command.d.ts +0 -13
  25. package/lib/models/create-doctor-affiliation-command.d.ts.map +1 -1
  26. package/lib/models/create-hospital-command.d.ts +3 -9
  27. package/lib/models/create-hospital-command.d.ts.map +1 -1
  28. package/lib/models/deal-item-model.d.ts +0 -13
  29. package/lib/models/deal-item-model.d.ts.map +1 -1
  30. package/lib/models/deal-model.d.ts +0 -13
  31. package/lib/models/deal-model.d.ts.map +1 -1
  32. package/lib/models/doctor-affiliation-item-model.d.ts +6 -19
  33. package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
  34. package/lib/models/doctor-affiliation-model.d.ts +6 -19
  35. package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
  36. package/lib/models/hospital-domain-input-model.d.ts +50 -0
  37. package/lib/models/hospital-domain-input-model.d.ts.map +1 -0
  38. package/lib/models/hospital-domain-model.d.ts +50 -0
  39. package/lib/models/hospital-domain-model.d.ts.map +1 -0
  40. package/lib/models/hospital-feature-detail-input-model.d.ts +49 -0
  41. package/lib/models/hospital-feature-detail-input-model.d.ts.map +1 -0
  42. package/lib/models/hospital-feature-detail-model.d.ts +56 -0
  43. package/lib/models/hospital-feature-detail-model.d.ts.map +1 -0
  44. package/lib/models/hospital-feature-input-model.d.ts +32 -0
  45. package/lib/models/hospital-feature-input-model.d.ts.map +1 -0
  46. package/lib/models/{feature-model.d.ts → hospital-feature-model.d.ts} +10 -15
  47. package/lib/models/hospital-feature-model.d.ts.map +1 -0
  48. package/lib/models/hospital-item-model.d.ts +28 -4
  49. package/lib/models/hospital-item-model.d.ts.map +1 -1
  50. package/lib/models/hospital-model.d.ts +28 -4
  51. package/lib/models/hospital-model.d.ts.map +1 -1
  52. package/lib/models/index.d.ts +12 -8
  53. package/lib/models/index.d.ts.map +1 -1
  54. package/lib/models/index.js +12 -8
  55. package/lib/models/links.d.ts +19 -9
  56. package/lib/models/links.d.ts.map +1 -1
  57. package/lib/models/{get-users-result-embedded.d.ts → list-users-result-embedded.d.ts} +4 -4
  58. package/lib/models/list-users-result-embedded.d.ts.map +1 -0
  59. package/lib/models/{get-users-result.d.ts → list-users-result.d.ts} +10 -10
  60. package/lib/models/list-users-result.d.ts.map +1 -0
  61. package/lib/models/notification-code.d.ts +2 -0
  62. package/lib/models/notification-code.d.ts.map +1 -1
  63. package/lib/models/notification-code.js +2 -0
  64. package/lib/models/survey-form-model.d.ts +6 -0
  65. package/lib/models/survey-form-model.d.ts.map +1 -1
  66. package/lib/models/survey-form-simple-mapping-model.d.ts +39 -0
  67. package/lib/models/survey-form-simple-mapping-model.d.ts.map +1 -0
  68. package/lib/models/survey-form-simple-mapping-model.js +15 -0
  69. package/lib/models/transfer-number-command.d.ts +43 -0
  70. package/lib/models/transfer-number-command.d.ts.map +1 -0
  71. package/lib/models/transfer-number-command.js +15 -0
  72. package/lib/models/transfer-number-result.d.ts +49 -0
  73. package/lib/models/transfer-number-result.d.ts.map +1 -0
  74. package/lib/models/transfer-number-result.js +15 -0
  75. package/lib/models/translation-simple-model.d.ts +55 -0
  76. package/lib/models/translation-simple-model.d.ts.map +1 -0
  77. package/lib/models/translation-simple-model.js +15 -0
  78. package/lib/models/update-deal-command.d.ts +0 -20
  79. package/lib/models/update-deal-command.d.ts.map +1 -1
  80. package/lib/models/update-doctor-affiliation-command.d.ts +0 -13
  81. package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
  82. package/lib/models/update-hospital-command.d.ts +3 -9
  83. package/lib/models/update-hospital-command.d.ts.map +1 -1
  84. package/package.json +1 -1
  85. package/src/.openapi-generator/FILES +12 -8
  86. package/src/api/deals-api.ts +0 -532
  87. package/src/api/survey-forms-api.ts +20 -6
  88. package/src/api/vonage-accounts-api.ts +354 -227
  89. package/src/api/vonage-applications-api.ts +12 -4
  90. package/src/api/vonage-numbers-api.ts +8 -4
  91. package/src/api/vonage-users-api.ts +153 -8
  92. package/src/models/appointment-type.ts +0 -1
  93. package/src/models/create-deal-command.ts +0 -24
  94. package/src/models/create-doctor-affiliation-command.ts +0 -15
  95. package/src/models/create-hospital-command.ts +4 -10
  96. package/src/models/deal-item-model.ts +0 -15
  97. package/src/models/deal-model.ts +0 -15
  98. package/src/models/doctor-affiliation-item-model.ts +6 -21
  99. package/src/models/doctor-affiliation-model.ts +6 -21
  100. package/src/models/hospital-domain-input-model.ts +57 -0
  101. package/src/models/hospital-domain-model.ts +57 -0
  102. package/src/models/hospital-feature-detail-input-model.ts +54 -0
  103. package/src/models/hospital-feature-detail-model.ts +63 -0
  104. package/src/models/hospital-feature-input-model.ts +39 -0
  105. package/src/models/{save-deal-appointment-timetable-overrides-command.ts → hospital-feature-model.ts} +12 -6
  106. package/src/models/hospital-item-model.ts +30 -6
  107. package/src/models/hospital-model.ts +30 -6
  108. package/src/models/index.ts +12 -8
  109. package/src/models/links.ts +19 -13
  110. package/src/models/{get-users-result-embedded.ts → list-users-result-embedded.ts} +3 -3
  111. package/src/models/{get-users-result.ts → list-users-result.ts} +10 -10
  112. package/src/models/notification-code.ts +2 -0
  113. package/src/models/survey-form-model.ts +6 -0
  114. package/src/models/survey-form-simple-mapping-model.ts +48 -0
  115. package/src/models/{feature-model.ts → transfer-number-command.ts} +17 -11
  116. package/src/models/transfer-number-result.ts +54 -0
  117. package/src/models/translation-simple-model.ts +60 -0
  118. package/src/models/update-deal-command.ts +0 -24
  119. package/src/models/update-doctor-affiliation-command.ts +0 -15
  120. package/src/models/update-hospital-command.ts +4 -10
  121. package/lib/models/batch-deal-appointment-timetables-command.d.ts +0 -39
  122. package/lib/models/batch-deal-appointment-timetables-command.d.ts.map +0 -1
  123. package/lib/models/feature-model.d.ts.map +0 -1
  124. package/lib/models/first.d.ts +0 -25
  125. package/lib/models/first.d.ts.map +0 -1
  126. package/lib/models/get-users-result-embedded.d.ts.map +0 -1
  127. package/lib/models/get-users-result.d.ts.map +0 -1
  128. package/lib/models/last.d.ts +0 -25
  129. package/lib/models/last.d.ts.map +0 -1
  130. package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts +0 -26
  131. package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts.map +0 -1
  132. package/lib/models/self.d.ts +0 -25
  133. package/lib/models/self.d.ts.map +0 -1
  134. package/src/models/batch-deal-appointment-timetables-command.ts +0 -48
  135. package/src/models/first.ts +0 -30
  136. package/src/models/last.ts +0 -30
  137. package/src/models/self.ts +0 -30
  138. /package/lib/models/{batch-deal-appointment-timetables-command.js → hospital-domain-input-model.js} +0 -0
  139. /package/lib/models/{feature-model.js → hospital-domain-model.js} +0 -0
  140. /package/lib/models/{first.js → hospital-feature-detail-input-model.js} +0 -0
  141. /package/lib/models/{get-users-result-embedded.js → hospital-feature-detail-model.js} +0 -0
  142. /package/lib/models/{get-users-result.js → hospital-feature-input-model.js} +0 -0
  143. /package/lib/models/{last.js → hospital-feature-model.js} +0 -0
  144. /package/lib/models/{save-deal-appointment-timetable-overrides-command.js → list-users-result-embedded.js} +0 -0
  145. /package/lib/models/{self.js → list-users-result.js} +0 -0
@@ -45,6 +45,10 @@ import { TransferBalanceCommand } from '../models';
45
45
  // @ts-ignore
46
46
  import { TransferBalanceResult } from '../models';
47
47
  // @ts-ignore
48
+ import { TransferNumberCommand } from '../models';
49
+ // @ts-ignore
50
+ import { TransferNumberResult } from '../models';
51
+ // @ts-ignore
48
52
  import { UpdateAccountCommand } from '../models';
49
53
  /**
50
54
  * VonageAccountsApi - axios parameter creator
@@ -54,6 +58,7 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
54
58
  return {
55
59
  /**
56
60
  *
61
+ * @summary Retrieve the balance of the account.
57
62
  * @param {*} [options] Override http request option.
58
63
  * @throws {RequiredError}
59
64
  */
@@ -87,12 +92,15 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
87
92
  },
88
93
  /**
89
94
  *
90
- * @param {TransferBalanceCommand} [transferBalanceCommand]
95
+ * @summary Retrieve the balanceTransfer history of the account.
96
+ * @param {string} [apiKey]
97
+ * @param {Date} [startDate]
98
+ * @param {Date} [endDate]
91
99
  * @param {*} [options] Override http request option.
92
100
  * @throws {RequiredError}
93
101
  */
94
- apiV1VonageaccountsBalanceTransferPost: async (transferBalanceCommand?: TransferBalanceCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
95
- const localVarPath = `/api/v1/vonageaccounts/balance/transfer`;
102
+ apiV1VonageaccountsBalancetransfersGet: async (apiKey?: string, startDate?: Date, endDate?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
+ const localVarPath = `/api/v1/vonageaccounts/balancetransfers`;
96
104
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
97
105
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
98
106
  let baseOptions;
@@ -100,7 +108,7 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
100
108
  baseOptions = configuration.baseOptions;
101
109
  }
102
110
 
103
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
111
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
104
112
  const localVarHeaderParameter = {} as any;
105
113
  const localVarQueryParameter = {} as any;
106
114
 
@@ -108,14 +116,27 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
108
116
  // oauth required
109
117
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
110
118
 
119
+ if (apiKey !== undefined) {
120
+ localVarQueryParameter['ApiKey'] = apiKey;
121
+ }
122
+
123
+ if (startDate !== undefined) {
124
+ localVarQueryParameter['StartDate'] = (startDate as any instanceof Date) ?
125
+ (startDate as any).toISOString() :
126
+ startDate;
127
+ }
128
+
129
+ if (endDate !== undefined) {
130
+ localVarQueryParameter['EndDate'] = (endDate as any instanceof Date) ?
131
+ (endDate as any).toISOString() :
132
+ endDate;
133
+ }
111
134
 
112
-
113
- localVarHeaderParameter['Content-Type'] = 'application/json';
114
135
 
136
+
115
137
  setSearchParams(localVarUrlObj, localVarQueryParameter);
116
138
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
117
139
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
118
- localVarRequestOptions.data = serializeDataIfNeeded(transferBalanceCommand, localVarRequestOptions, configuration)
119
140
 
120
141
  return {
121
142
  url: toPathString(localVarUrlObj),
@@ -124,14 +145,13 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
124
145
  },
125
146
  /**
126
147
  *
148
+ * @summary Retrieve all secrets for account. ApiKey is optional, if not provided, the default ApiKey will be used.
127
149
  * @param {string} [apiKey]
128
- * @param {Date} [startDate]
129
- * @param {Date} [endDate]
130
150
  * @param {*} [options] Override http request option.
131
151
  * @throws {RequiredError}
132
152
  */
133
- apiV1VonageaccountsBalancetransfersGet: async (apiKey?: string, startDate?: Date, endDate?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
134
- const localVarPath = `/api/v1/vonageaccounts/balancetransfers`;
153
+ apiV1VonageaccountsSecretsGet: async (apiKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
154
+ const localVarPath = `/api/v1/vonageaccounts/secrets`;
135
155
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
136
156
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
137
157
  let baseOptions;
@@ -151,18 +171,6 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
151
171
  localVarQueryParameter['ApiKey'] = apiKey;
152
172
  }
153
173
 
154
- if (startDate !== undefined) {
155
- localVarQueryParameter['StartDate'] = (startDate as any instanceof Date) ?
156
- (startDate as any).toISOString() :
157
- startDate;
158
- }
159
-
160
- if (endDate !== undefined) {
161
- localVarQueryParameter['EndDate'] = (endDate as any instanceof Date) ?
162
- (endDate as any).toISOString() :
163
- endDate;
164
- }
165
-
166
174
 
167
175
 
168
176
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -176,11 +184,13 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
176
184
  },
177
185
  /**
178
186
  *
187
+ * @summary Create a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
188
+ * @param {CreateSecretCommand} [createSecretCommand]
179
189
  * @param {*} [options] Override http request option.
180
190
  * @throws {RequiredError}
181
191
  */
182
- apiV1VonageaccountsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
183
- const localVarPath = `/api/v1/vonageaccounts`;
192
+ apiV1VonageaccountsSecretsPost: async (createSecretCommand?: CreateSecretCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
193
+ const localVarPath = `/api/v1/vonageaccounts/secrets`;
184
194
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
185
195
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
186
196
  let baseOptions;
@@ -188,7 +198,7 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
188
198
  baseOptions = configuration.baseOptions;
189
199
  }
190
200
 
191
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
201
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
192
202
  const localVarHeaderParameter = {} as any;
193
203
  const localVarQueryParameter = {} as any;
194
204
 
@@ -198,9 +208,12 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
198
208
 
199
209
 
200
210
 
211
+ localVarHeaderParameter['Content-Type'] = 'application/json';
212
+
201
213
  setSearchParams(localVarUrlObj, localVarQueryParameter);
202
214
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
203
215
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
216
+ localVarRequestOptions.data = serializeDataIfNeeded(createSecretCommand, localVarRequestOptions, configuration)
204
217
 
205
218
  return {
206
219
  url: toPathString(localVarUrlObj),
@@ -209,12 +222,17 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
209
222
  },
210
223
  /**
211
224
  *
212
- * @param {CreateSubAccountCommand} [createSubAccountCommand]
225
+ * @summary Revoke a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
226
+ * @param {string} secretId
227
+ * @param {string} [apiKey]
213
228
  * @param {*} [options] Override http request option.
214
229
  * @throws {RequiredError}
215
230
  */
216
- apiV1VonageaccountsPost: async (createSubAccountCommand?: CreateSubAccountCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
217
- const localVarPath = `/api/v1/vonageaccounts`;
231
+ apiV1VonageaccountsSecretsSecretIdDelete: async (secretId: string, apiKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
232
+ // verify required parameter 'secretId' is not null or undefined
233
+ assertParamExists('apiV1VonageaccountsSecretsSecretIdDelete', 'secretId', secretId)
234
+ const localVarPath = `/api/v1/vonageaccounts/secrets/{secretId}`
235
+ .replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
218
236
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
219
237
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
220
238
  let baseOptions;
@@ -222,7 +240,7 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
222
240
  baseOptions = configuration.baseOptions;
223
241
  }
224
242
 
225
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
243
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
226
244
  const localVarHeaderParameter = {} as any;
227
245
  const localVarQueryParameter = {} as any;
228
246
 
@@ -230,14 +248,15 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
230
248
  // oauth required
231
249
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
232
250
 
251
+ if (apiKey !== undefined) {
252
+ localVarQueryParameter['apiKey'] = apiKey;
253
+ }
233
254
 
234
-
235
- localVarHeaderParameter['Content-Type'] = 'application/json';
236
255
 
256
+
237
257
  setSearchParams(localVarUrlObj, localVarQueryParameter);
238
258
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
239
259
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
240
- localVarRequestOptions.data = serializeDataIfNeeded(createSubAccountCommand, localVarRequestOptions, configuration)
241
260
 
242
261
  return {
243
262
  url: toPathString(localVarUrlObj),
@@ -246,12 +265,17 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
246
265
  },
247
266
  /**
248
267
  *
268
+ * @summary Retrieve a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
269
+ * @param {string} secretId
249
270
  * @param {string} [apiKey]
250
271
  * @param {*} [options] Override http request option.
251
272
  * @throws {RequiredError}
252
273
  */
253
- apiV1VonageaccountsSecretsGet: async (apiKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
254
- const localVarPath = `/api/v1/vonageaccounts/secrets`;
274
+ apiV1VonageaccountsSecretsSecretIdGet: async (secretId: string, apiKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
+ // verify required parameter 'secretId' is not null or undefined
276
+ assertParamExists('apiV1VonageaccountsSecretsSecretIdGet', 'secretId', secretId)
277
+ const localVarPath = `/api/v1/vonageaccounts/secrets/{secretId}`
278
+ .replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
255
279
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
256
280
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
257
281
  let baseOptions;
@@ -268,7 +292,7 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
268
292
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
269
293
 
270
294
  if (apiKey !== undefined) {
271
- localVarQueryParameter['ApiKey'] = apiKey;
295
+ localVarQueryParameter['apiKey'] = apiKey;
272
296
  }
273
297
 
274
298
 
@@ -284,12 +308,47 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
284
308
  },
285
309
  /**
286
310
  *
287
- * @param {CreateSecretCommand} [createSecretCommand]
311
+ * @summary Only main account can retrieve sub accounts.
288
312
  * @param {*} [options] Override http request option.
289
313
  * @throws {RequiredError}
290
314
  */
291
- apiV1VonageaccountsSecretsPost: async (createSecretCommand?: CreateSecretCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
292
- const localVarPath = `/api/v1/vonageaccounts/secrets`;
315
+ apiV1VonageaccountsSubaccountsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
316
+ const localVarPath = `/api/v1/vonageaccounts/subaccounts`;
317
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
318
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
319
+ let baseOptions;
320
+ if (configuration) {
321
+ baseOptions = configuration.baseOptions;
322
+ }
323
+
324
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
325
+ const localVarHeaderParameter = {} as any;
326
+ const localVarQueryParameter = {} as any;
327
+
328
+ // authentication oauth2 required
329
+ // oauth required
330
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
331
+
332
+
333
+
334
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
335
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
336
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
337
+
338
+ return {
339
+ url: toPathString(localVarUrlObj),
340
+ options: localVarRequestOptions,
341
+ };
342
+ },
343
+ /**
344
+ *
345
+ * @summary Create sub account. Only main account can create sub account.
346
+ * @param {CreateSubAccountCommand} [createSubAccountCommand]
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ */
350
+ apiV1VonageaccountsSubaccountsPost: async (createSubAccountCommand?: CreateSubAccountCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
351
+ const localVarPath = `/api/v1/vonageaccounts/subaccounts`;
293
352
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
294
353
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
295
354
  let baseOptions;
@@ -312,7 +371,7 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
312
371
  setSearchParams(localVarUrlObj, localVarQueryParameter);
313
372
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
314
373
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
315
- localVarRequestOptions.data = serializeDataIfNeeded(createSecretCommand, localVarRequestOptions, configuration)
374
+ localVarRequestOptions.data = serializeDataIfNeeded(createSubAccountCommand, localVarRequestOptions, configuration)
316
375
 
317
376
  return {
318
377
  url: toPathString(localVarUrlObj),
@@ -321,16 +380,16 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
321
380
  },
322
381
  /**
323
382
  *
324
- * @param {string} secretId
325
- * @param {string} [apiKey]
383
+ * @summary Only main account can suspend sub account.
384
+ * @param {string} subAccountKey
326
385
  * @param {*} [options] Override http request option.
327
386
  * @throws {RequiredError}
328
387
  */
329
- apiV1VonageaccountsSecretsSecretIdDelete: async (secretId: string, apiKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
330
- // verify required parameter 'secretId' is not null or undefined
331
- assertParamExists('apiV1VonageaccountsSecretsSecretIdDelete', 'secretId', secretId)
332
- const localVarPath = `/api/v1/vonageaccounts/secrets/{secretId}`
333
- .replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
388
+ apiV1VonageaccountsSubaccountsSubAccountKeyDelete: async (subAccountKey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
389
+ // verify required parameter 'subAccountKey' is not null or undefined
390
+ assertParamExists('apiV1VonageaccountsSubaccountsSubAccountKeyDelete', 'subAccountKey', subAccountKey)
391
+ const localVarPath = `/api/v1/vonageaccounts/subaccounts/{subAccountKey}`
392
+ .replace(`{${"subAccountKey"}}`, encodeURIComponent(String(subAccountKey)));
334
393
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
335
394
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
336
395
  let baseOptions;
@@ -346,10 +405,6 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
346
405
  // oauth required
347
406
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
348
407
 
349
- if (apiKey !== undefined) {
350
- localVarQueryParameter['apiKey'] = apiKey;
351
- }
352
-
353
408
 
354
409
 
355
410
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -363,17 +418,16 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
363
418
  },
364
419
  /**
365
420
  *
366
- * @param {string} secretId
367
- * @param {string} [secretId2]
368
- * @param {string} [apiKey]
421
+ * @summary Only main account can retrieve sub account.
422
+ * @param {string} subAccountKey
369
423
  * @param {*} [options] Override http request option.
370
424
  * @throws {RequiredError}
371
425
  */
372
- apiV1VonageaccountsSecretsSecretIdGet: async (secretId: string, secretId2?: string, apiKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
373
- // verify required parameter 'secretId' is not null or undefined
374
- assertParamExists('apiV1VonageaccountsSecretsSecretIdGet', 'secretId', secretId)
375
- const localVarPath = `/api/v1/vonageaccounts/secrets/{secretId}`
376
- .replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
426
+ apiV1VonageaccountsSubaccountsSubAccountKeyGet: async (subAccountKey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
427
+ // verify required parameter 'subAccountKey' is not null or undefined
428
+ assertParamExists('apiV1VonageaccountsSubaccountsSubAccountKeyGet', 'subAccountKey', subAccountKey)
429
+ const localVarPath = `/api/v1/vonageaccounts/subaccounts/{subAccountKey}`
430
+ .replace(`{${"subAccountKey"}}`, encodeURIComponent(String(subAccountKey)));
377
431
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
378
432
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
379
433
  let baseOptions;
@@ -389,14 +443,6 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
389
443
  // oauth required
390
444
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
391
445
 
392
- if (secretId2 !== undefined) {
393
- localVarQueryParameter['SecretId'] = secretId2;
394
- }
395
-
396
- if (apiKey !== undefined) {
397
- localVarQueryParameter['ApiKey'] = apiKey;
398
- }
399
-
400
446
 
401
447
 
402
448
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -410,14 +456,15 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
410
456
  },
411
457
  /**
412
458
  *
459
+ * @summary Only main account can reactivate sub account.
413
460
  * @param {string} subAccountKey
414
461
  * @param {*} [options] Override http request option.
415
462
  * @throws {RequiredError}
416
463
  */
417
- apiV1VonageaccountsSubAccountKeyDelete: async (subAccountKey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
464
+ apiV1VonageaccountsSubaccountsSubAccountKeyPut: async (subAccountKey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
418
465
  // verify required parameter 'subAccountKey' is not null or undefined
419
- assertParamExists('apiV1VonageaccountsSubAccountKeyDelete', 'subAccountKey', subAccountKey)
420
- const localVarPath = `/api/v1/vonageaccounts/{subAccountKey}`
466
+ assertParamExists('apiV1VonageaccountsSubaccountsSubAccountKeyPut', 'subAccountKey', subAccountKey)
467
+ const localVarPath = `/api/v1/vonageaccounts/subaccounts/{subAccountKey}`
421
468
  .replace(`{${"subAccountKey"}}`, encodeURIComponent(String(subAccountKey)));
422
469
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
423
470
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -426,7 +473,7 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
426
473
  baseOptions = configuration.baseOptions;
427
474
  }
428
475
 
429
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
476
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
430
477
  const localVarHeaderParameter = {} as any;
431
478
  const localVarQueryParameter = {} as any;
432
479
 
@@ -447,15 +494,13 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
447
494
  },
448
495
  /**
449
496
  *
450
- * @param {string} subAccountKey
497
+ * @summary Transfer balance between accounts.
498
+ * @param {TransferBalanceCommand} [transferBalanceCommand]
451
499
  * @param {*} [options] Override http request option.
452
500
  * @throws {RequiredError}
453
501
  */
454
- apiV1VonageaccountsSubAccountKeyGet: async (subAccountKey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
455
- // verify required parameter 'subAccountKey' is not null or undefined
456
- assertParamExists('apiV1VonageaccountsSubAccountKeyGet', 'subAccountKey', subAccountKey)
457
- const localVarPath = `/api/v1/vonageaccounts/{subAccountKey}`
458
- .replace(`{${"subAccountKey"}}`, encodeURIComponent(String(subAccountKey)));
502
+ apiV1VonageaccountsTransferbalancePost: async (transferBalanceCommand?: TransferBalanceCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
503
+ const localVarPath = `/api/v1/vonageaccounts/transferbalance`;
459
504
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
460
505
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
461
506
  let baseOptions;
@@ -463,7 +508,7 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
463
508
  baseOptions = configuration.baseOptions;
464
509
  }
465
510
 
466
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
511
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
467
512
  const localVarHeaderParameter = {} as any;
468
513
  const localVarQueryParameter = {} as any;
469
514
 
@@ -473,9 +518,12 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
473
518
 
474
519
 
475
520
 
521
+ localVarHeaderParameter['Content-Type'] = 'application/json';
522
+
476
523
  setSearchParams(localVarUrlObj, localVarQueryParameter);
477
524
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
478
525
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
526
+ localVarRequestOptions.data = serializeDataIfNeeded(transferBalanceCommand, localVarRequestOptions, configuration)
479
527
 
480
528
  return {
481
529
  url: toPathString(localVarUrlObj),
@@ -484,15 +532,13 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
484
532
  },
485
533
  /**
486
534
  *
487
- * @param {string} subAccountKey
535
+ * @summary Transfer number from main account to subAccount.
536
+ * @param {TransferNumberCommand} [transferNumberCommand]
488
537
  * @param {*} [options] Override http request option.
489
538
  * @throws {RequiredError}
490
539
  */
491
- apiV1VonageaccountsSubAccountKeyPut: async (subAccountKey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
492
- // verify required parameter 'subAccountKey' is not null or undefined
493
- assertParamExists('apiV1VonageaccountsSubAccountKeyPut', 'subAccountKey', subAccountKey)
494
- const localVarPath = `/api/v1/vonageaccounts/{subAccountKey}`
495
- .replace(`{${"subAccountKey"}}`, encodeURIComponent(String(subAccountKey)));
540
+ apiV1VonageaccountsTrnasfernumberPost: async (transferNumberCommand?: TransferNumberCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
541
+ const localVarPath = `/api/v1/vonageaccounts/trnasfernumber`;
496
542
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
497
543
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
498
544
  let baseOptions;
@@ -500,7 +546,7 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
500
546
  baseOptions = configuration.baseOptions;
501
547
  }
502
548
 
503
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
549
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
504
550
  const localVarHeaderParameter = {} as any;
505
551
  const localVarQueryParameter = {} as any;
506
552
 
@@ -510,9 +556,12 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
510
556
 
511
557
 
512
558
 
559
+ localVarHeaderParameter['Content-Type'] = 'application/json';
560
+
513
561
  setSearchParams(localVarUrlObj, localVarQueryParameter);
514
562
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
515
563
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
564
+ localVarRequestOptions.data = serializeDataIfNeeded(transferNumberCommand, localVarRequestOptions, configuration)
516
565
 
517
566
  return {
518
567
  url: toPathString(localVarUrlObj),
@@ -521,6 +570,7 @@ export const VonageAccountsApiAxiosParamCreator = function (configuration?: Conf
521
570
  },
522
571
  /**
523
572
  *
573
+ * @summary Update account settings
524
574
  * @param {UpdateAccountCommand} [updateAccountCommand]
525
575
  * @param {*} [options] Override http request option.
526
576
  * @throws {RequiredError}
@@ -568,6 +618,7 @@ export const VonageAccountsApiFp = function(configuration?: Configuration) {
568
618
  return {
569
619
  /**
570
620
  *
621
+ * @summary Retrieve the balance of the account.
571
622
  * @param {*} [options] Override http request option.
572
623
  * @throws {RequiredError}
573
624
  */
@@ -577,120 +628,142 @@ export const VonageAccountsApiFp = function(configuration?: Configuration) {
577
628
  },
578
629
  /**
579
630
  *
580
- * @param {TransferBalanceCommand} [transferBalanceCommand]
631
+ * @summary Retrieve the balanceTransfer history of the account.
632
+ * @param {string} [apiKey]
633
+ * @param {Date} [startDate]
634
+ * @param {Date} [endDate]
581
635
  * @param {*} [options] Override http request option.
582
636
  * @throws {RequiredError}
583
637
  */
584
- async apiV1VonageaccountsBalanceTransferPost(transferBalanceCommand?: TransferBalanceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransferBalanceResult>> {
585
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsBalanceTransferPost(transferBalanceCommand, options);
638
+ async apiV1VonageaccountsBalancetransfersGet(apiKey?: string, startDate?: Date, endDate?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTransferBalanceResult>> {
639
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsBalancetransfersGet(apiKey, startDate, endDate, options);
586
640
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
587
641
  },
588
642
  /**
589
643
  *
644
+ * @summary Retrieve all secrets for account. ApiKey is optional, if not provided, the default ApiKey will be used.
590
645
  * @param {string} [apiKey]
591
- * @param {Date} [startDate]
592
- * @param {Date} [endDate]
593
646
  * @param {*} [options] Override http request option.
594
647
  * @throws {RequiredError}
595
648
  */
596
- async apiV1VonageaccountsBalancetransfersGet(apiKey?: string, startDate?: Date, endDate?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTransferBalanceResult>> {
597
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsBalancetransfersGet(apiKey, startDate, endDate, options);
649
+ async apiV1VonageaccountsSecretsGet(apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecretsRequestResult>> {
650
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSecretsGet(apiKey, options);
598
651
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
599
652
  },
600
653
  /**
601
654
  *
655
+ * @summary Create a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
656
+ * @param {CreateSecretCommand} [createSecretCommand]
602
657
  * @param {*} [options] Override http request option.
603
658
  * @throws {RequiredError}
604
659
  */
605
- async apiV1VonageaccountsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetrieveSubAccountsResult>> {
606
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsGet(options);
660
+ async apiV1VonageaccountsSecretsPost(createSecretCommand?: CreateSecretCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>> {
661
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSecretsPost(createSecretCommand, options);
607
662
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
608
663
  },
609
664
  /**
610
665
  *
611
- * @param {CreateSubAccountCommand} [createSubAccountCommand]
666
+ * @summary Revoke a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
667
+ * @param {string} secretId
668
+ * @param {string} [apiKey]
612
669
  * @param {*} [options] Override http request option.
613
670
  * @throws {RequiredError}
614
671
  */
615
- async apiV1VonageaccountsPost(createSubAccountCommand?: CreateSubAccountCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>> {
616
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsPost(createSubAccountCommand, options);
672
+ async apiV1VonageaccountsSecretsSecretIdDelete(secretId: string, apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
673
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSecretsSecretIdDelete(secretId, apiKey, options);
617
674
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
618
675
  },
619
676
  /**
620
677
  *
678
+ * @summary Retrieve a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
679
+ * @param {string} secretId
621
680
  * @param {string} [apiKey]
622
681
  * @param {*} [options] Override http request option.
623
682
  * @throws {RequiredError}
624
683
  */
625
- async apiV1VonageaccountsSecretsGet(apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecretsRequestResult>> {
626
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSecretsGet(apiKey, options);
684
+ async apiV1VonageaccountsSecretsSecretIdGet(secretId: string, apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>> {
685
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSecretsSecretIdGet(secretId, apiKey, options);
627
686
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
628
687
  },
629
688
  /**
630
689
  *
631
- * @param {CreateSecretCommand} [createSecretCommand]
690
+ * @summary Only main account can retrieve sub accounts.
632
691
  * @param {*} [options] Override http request option.
633
692
  * @throws {RequiredError}
634
693
  */
635
- async apiV1VonageaccountsSecretsPost(createSecretCommand?: CreateSecretCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>> {
636
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSecretsPost(createSecretCommand, options);
694
+ async apiV1VonageaccountsSubaccountsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetrieveSubAccountsResult>> {
695
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSubaccountsGet(options);
637
696
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
638
697
  },
639
698
  /**
640
699
  *
641
- * @param {string} secretId
642
- * @param {string} [apiKey]
700
+ * @summary Create sub account. Only main account can create sub account.
701
+ * @param {CreateSubAccountCommand} [createSubAccountCommand]
643
702
  * @param {*} [options] Override http request option.
644
703
  * @throws {RequiredError}
645
704
  */
646
- async apiV1VonageaccountsSecretsSecretIdDelete(secretId: string, apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
647
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSecretsSecretIdDelete(secretId, apiKey, options);
705
+ async apiV1VonageaccountsSubaccountsPost(createSubAccountCommand?: CreateSubAccountCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>> {
706
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSubaccountsPost(createSubAccountCommand, options);
648
707
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
649
708
  },
650
709
  /**
651
710
  *
652
- * @param {string} secretId
653
- * @param {string} [secretId2]
654
- * @param {string} [apiKey]
711
+ * @summary Only main account can suspend sub account.
712
+ * @param {string} subAccountKey
655
713
  * @param {*} [options] Override http request option.
656
714
  * @throws {RequiredError}
657
715
  */
658
- async apiV1VonageaccountsSecretsSecretIdGet(secretId: string, secretId2?: string, apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>> {
659
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSecretsSecretIdGet(secretId, secretId2, apiKey, options);
716
+ async apiV1VonageaccountsSubaccountsSubAccountKeyDelete(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>> {
717
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSubaccountsSubAccountKeyDelete(subAccountKey, options);
660
718
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
661
719
  },
662
720
  /**
663
721
  *
722
+ * @summary Only main account can retrieve sub account.
664
723
  * @param {string} subAccountKey
665
724
  * @param {*} [options] Override http request option.
666
725
  * @throws {RequiredError}
667
726
  */
668
- async apiV1VonageaccountsSubAccountKeyDelete(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>> {
669
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSubAccountKeyDelete(subAccountKey, options);
727
+ async apiV1VonageaccountsSubaccountsSubAccountKeyGet(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>> {
728
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSubaccountsSubAccountKeyGet(subAccountKey, options);
670
729
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
671
730
  },
672
731
  /**
673
732
  *
733
+ * @summary Only main account can reactivate sub account.
674
734
  * @param {string} subAccountKey
675
735
  * @param {*} [options] Override http request option.
676
736
  * @throws {RequiredError}
677
737
  */
678
- async apiV1VonageaccountsSubAccountKeyGet(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>> {
679
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSubAccountKeyGet(subAccountKey, options);
738
+ async apiV1VonageaccountsSubaccountsSubAccountKeyPut(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>> {
739
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSubaccountsSubAccountKeyPut(subAccountKey, options);
680
740
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
681
741
  },
682
742
  /**
683
743
  *
684
- * @param {string} subAccountKey
744
+ * @summary Transfer balance between accounts.
745
+ * @param {TransferBalanceCommand} [transferBalanceCommand]
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ async apiV1VonageaccountsTransferbalancePost(transferBalanceCommand?: TransferBalanceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransferBalanceResult>> {
750
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsTransferbalancePost(transferBalanceCommand, options);
751
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
752
+ },
753
+ /**
754
+ *
755
+ * @summary Transfer number from main account to subAccount.
756
+ * @param {TransferNumberCommand} [transferNumberCommand]
685
757
  * @param {*} [options] Override http request option.
686
758
  * @throws {RequiredError}
687
759
  */
688
- async apiV1VonageaccountsSubAccountKeyPut(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>> {
689
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSubAccountKeyPut(subAccountKey, options);
760
+ async apiV1VonageaccountsTrnasfernumberPost(transferNumberCommand?: TransferNumberCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransferNumberResult>> {
761
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsTrnasfernumberPost(transferNumberCommand, options);
690
762
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
691
763
  },
692
764
  /**
693
765
  *
766
+ * @summary Update account settings
694
767
  * @param {UpdateAccountCommand} [updateAccountCommand]
695
768
  * @param {*} [options] Override http request option.
696
769
  * @throws {RequiredError}
@@ -711,6 +784,7 @@ export const VonageAccountsApiFactory = function (configuration?: Configuration,
711
784
  return {
712
785
  /**
713
786
  *
787
+ * @summary Retrieve the balance of the account.
714
788
  * @param {*} [options] Override http request option.
715
789
  * @throws {RequiredError}
716
790
  */
@@ -719,109 +793,130 @@ export const VonageAccountsApiFactory = function (configuration?: Configuration,
719
793
  },
720
794
  /**
721
795
  *
722
- * @param {TransferBalanceCommand} [transferBalanceCommand]
796
+ * @summary Retrieve the balanceTransfer history of the account.
797
+ * @param {string} [apiKey]
798
+ * @param {Date} [startDate]
799
+ * @param {Date} [endDate]
723
800
  * @param {*} [options] Override http request option.
724
801
  * @throws {RequiredError}
725
802
  */
726
- apiV1VonageaccountsBalanceTransferPost(transferBalanceCommand?: TransferBalanceCommand, options?: any): AxiosPromise<TransferBalanceResult> {
727
- return localVarFp.apiV1VonageaccountsBalanceTransferPost(transferBalanceCommand, options).then((request) => request(axios, basePath));
803
+ apiV1VonageaccountsBalancetransfersGet(apiKey?: string, startDate?: Date, endDate?: Date, options?: any): AxiosPromise<GetTransferBalanceResult> {
804
+ return localVarFp.apiV1VonageaccountsBalancetransfersGet(apiKey, startDate, endDate, options).then((request) => request(axios, basePath));
728
805
  },
729
806
  /**
730
807
  *
808
+ * @summary Retrieve all secrets for account. ApiKey is optional, if not provided, the default ApiKey will be used.
731
809
  * @param {string} [apiKey]
732
- * @param {Date} [startDate]
733
- * @param {Date} [endDate]
734
810
  * @param {*} [options] Override http request option.
735
811
  * @throws {RequiredError}
736
812
  */
737
- apiV1VonageaccountsBalancetransfersGet(apiKey?: string, startDate?: Date, endDate?: Date, options?: any): AxiosPromise<GetTransferBalanceResult> {
738
- return localVarFp.apiV1VonageaccountsBalancetransfersGet(apiKey, startDate, endDate, options).then((request) => request(axios, basePath));
813
+ apiV1VonageaccountsSecretsGet(apiKey?: string, options?: any): AxiosPromise<SecretsRequestResult> {
814
+ return localVarFp.apiV1VonageaccountsSecretsGet(apiKey, options).then((request) => request(axios, basePath));
739
815
  },
740
816
  /**
741
817
  *
818
+ * @summary Create a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
819
+ * @param {CreateSecretCommand} [createSecretCommand]
742
820
  * @param {*} [options] Override http request option.
743
821
  * @throws {RequiredError}
744
822
  */
745
- apiV1VonageaccountsGet(options?: any): AxiosPromise<RetrieveSubAccountsResult> {
746
- return localVarFp.apiV1VonageaccountsGet(options).then((request) => request(axios, basePath));
823
+ apiV1VonageaccountsSecretsPost(createSecretCommand?: CreateSecretCommand, options?: any): AxiosPromise<Secret> {
824
+ return localVarFp.apiV1VonageaccountsSecretsPost(createSecretCommand, options).then((request) => request(axios, basePath));
747
825
  },
748
826
  /**
749
827
  *
750
- * @param {CreateSubAccountCommand} [createSubAccountCommand]
828
+ * @summary Revoke a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
829
+ * @param {string} secretId
830
+ * @param {string} [apiKey]
751
831
  * @param {*} [options] Override http request option.
752
832
  * @throws {RequiredError}
753
833
  */
754
- apiV1VonageaccountsPost(createSubAccountCommand?: CreateSubAccountCommand, options?: any): AxiosPromise<SubAccount> {
755
- return localVarFp.apiV1VonageaccountsPost(createSubAccountCommand, options).then((request) => request(axios, basePath));
834
+ apiV1VonageaccountsSecretsSecretIdDelete(secretId: string, apiKey?: string, options?: any): AxiosPromise<boolean> {
835
+ return localVarFp.apiV1VonageaccountsSecretsSecretIdDelete(secretId, apiKey, options).then((request) => request(axios, basePath));
756
836
  },
757
837
  /**
758
838
  *
839
+ * @summary Retrieve a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
840
+ * @param {string} secretId
759
841
  * @param {string} [apiKey]
760
842
  * @param {*} [options] Override http request option.
761
843
  * @throws {RequiredError}
762
844
  */
763
- apiV1VonageaccountsSecretsGet(apiKey?: string, options?: any): AxiosPromise<SecretsRequestResult> {
764
- return localVarFp.apiV1VonageaccountsSecretsGet(apiKey, options).then((request) => request(axios, basePath));
845
+ apiV1VonageaccountsSecretsSecretIdGet(secretId: string, apiKey?: string, options?: any): AxiosPromise<Secret> {
846
+ return localVarFp.apiV1VonageaccountsSecretsSecretIdGet(secretId, apiKey, options).then((request) => request(axios, basePath));
765
847
  },
766
848
  /**
767
849
  *
768
- * @param {CreateSecretCommand} [createSecretCommand]
850
+ * @summary Only main account can retrieve sub accounts.
769
851
  * @param {*} [options] Override http request option.
770
852
  * @throws {RequiredError}
771
853
  */
772
- apiV1VonageaccountsSecretsPost(createSecretCommand?: CreateSecretCommand, options?: any): AxiosPromise<Secret> {
773
- return localVarFp.apiV1VonageaccountsSecretsPost(createSecretCommand, options).then((request) => request(axios, basePath));
854
+ apiV1VonageaccountsSubaccountsGet(options?: any): AxiosPromise<RetrieveSubAccountsResult> {
855
+ return localVarFp.apiV1VonageaccountsSubaccountsGet(options).then((request) => request(axios, basePath));
774
856
  },
775
857
  /**
776
858
  *
777
- * @param {string} secretId
778
- * @param {string} [apiKey]
859
+ * @summary Create sub account. Only main account can create sub account.
860
+ * @param {CreateSubAccountCommand} [createSubAccountCommand]
779
861
  * @param {*} [options] Override http request option.
780
862
  * @throws {RequiredError}
781
863
  */
782
- apiV1VonageaccountsSecretsSecretIdDelete(secretId: string, apiKey?: string, options?: any): AxiosPromise<boolean> {
783
- return localVarFp.apiV1VonageaccountsSecretsSecretIdDelete(secretId, apiKey, options).then((request) => request(axios, basePath));
864
+ apiV1VonageaccountsSubaccountsPost(createSubAccountCommand?: CreateSubAccountCommand, options?: any): AxiosPromise<SubAccount> {
865
+ return localVarFp.apiV1VonageaccountsSubaccountsPost(createSubAccountCommand, options).then((request) => request(axios, basePath));
784
866
  },
785
867
  /**
786
868
  *
787
- * @param {string} secretId
788
- * @param {string} [secretId2]
789
- * @param {string} [apiKey]
869
+ * @summary Only main account can suspend sub account.
870
+ * @param {string} subAccountKey
790
871
  * @param {*} [options] Override http request option.
791
872
  * @throws {RequiredError}
792
873
  */
793
- apiV1VonageaccountsSecretsSecretIdGet(secretId: string, secretId2?: string, apiKey?: string, options?: any): AxiosPromise<Secret> {
794
- return localVarFp.apiV1VonageaccountsSecretsSecretIdGet(secretId, secretId2, apiKey, options).then((request) => request(axios, basePath));
874
+ apiV1VonageaccountsSubaccountsSubAccountKeyDelete(subAccountKey: string, options?: any): AxiosPromise<SubAccount> {
875
+ return localVarFp.apiV1VonageaccountsSubaccountsSubAccountKeyDelete(subAccountKey, options).then((request) => request(axios, basePath));
795
876
  },
796
877
  /**
797
878
  *
879
+ * @summary Only main account can retrieve sub account.
798
880
  * @param {string} subAccountKey
799
881
  * @param {*} [options] Override http request option.
800
882
  * @throws {RequiredError}
801
883
  */
802
- apiV1VonageaccountsSubAccountKeyDelete(subAccountKey: string, options?: any): AxiosPromise<SubAccount> {
803
- return localVarFp.apiV1VonageaccountsSubAccountKeyDelete(subAccountKey, options).then((request) => request(axios, basePath));
884
+ apiV1VonageaccountsSubaccountsSubAccountKeyGet(subAccountKey: string, options?: any): AxiosPromise<SubAccount> {
885
+ return localVarFp.apiV1VonageaccountsSubaccountsSubAccountKeyGet(subAccountKey, options).then((request) => request(axios, basePath));
804
886
  },
805
887
  /**
806
888
  *
889
+ * @summary Only main account can reactivate sub account.
807
890
  * @param {string} subAccountKey
808
891
  * @param {*} [options] Override http request option.
809
892
  * @throws {RequiredError}
810
893
  */
811
- apiV1VonageaccountsSubAccountKeyGet(subAccountKey: string, options?: any): AxiosPromise<SubAccount> {
812
- return localVarFp.apiV1VonageaccountsSubAccountKeyGet(subAccountKey, options).then((request) => request(axios, basePath));
894
+ apiV1VonageaccountsSubaccountsSubAccountKeyPut(subAccountKey: string, options?: any): AxiosPromise<SubAccount> {
895
+ return localVarFp.apiV1VonageaccountsSubaccountsSubAccountKeyPut(subAccountKey, options).then((request) => request(axios, basePath));
813
896
  },
814
897
  /**
815
898
  *
816
- * @param {string} subAccountKey
899
+ * @summary Transfer balance between accounts.
900
+ * @param {TransferBalanceCommand} [transferBalanceCommand]
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ */
904
+ apiV1VonageaccountsTransferbalancePost(transferBalanceCommand?: TransferBalanceCommand, options?: any): AxiosPromise<TransferBalanceResult> {
905
+ return localVarFp.apiV1VonageaccountsTransferbalancePost(transferBalanceCommand, options).then((request) => request(axios, basePath));
906
+ },
907
+ /**
908
+ *
909
+ * @summary Transfer number from main account to subAccount.
910
+ * @param {TransferNumberCommand} [transferNumberCommand]
817
911
  * @param {*} [options] Override http request option.
818
912
  * @throws {RequiredError}
819
913
  */
820
- apiV1VonageaccountsSubAccountKeyPut(subAccountKey: string, options?: any): AxiosPromise<SubAccount> {
821
- return localVarFp.apiV1VonageaccountsSubAccountKeyPut(subAccountKey, options).then((request) => request(axios, basePath));
914
+ apiV1VonageaccountsTrnasfernumberPost(transferNumberCommand?: TransferNumberCommand, options?: any): AxiosPromise<TransferNumberResult> {
915
+ return localVarFp.apiV1VonageaccountsTrnasfernumberPost(transferNumberCommand, options).then((request) => request(axios, basePath));
822
916
  },
823
917
  /**
824
918
  *
919
+ * @summary Update account settings
825
920
  * @param {UpdateAccountCommand} [updateAccountCommand]
826
921
  * @param {*} [options] Override http request option.
827
922
  * @throws {RequiredError}
@@ -832,20 +927,6 @@ export const VonageAccountsApiFactory = function (configuration?: Configuration,
832
927
  };
833
928
  };
834
929
 
835
- /**
836
- * Request parameters for apiV1VonageaccountsBalanceTransferPost operation in VonageAccountsApi.
837
- * @export
838
- * @interface VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest
839
- */
840
- export interface VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest {
841
- /**
842
- *
843
- * @type {TransferBalanceCommand}
844
- * @memberof VonageAccountsApiApiV1VonageaccountsBalanceTransferPost
845
- */
846
- readonly transferBalanceCommand?: TransferBalanceCommand
847
- }
848
-
849
930
  /**
850
931
  * Request parameters for apiV1VonageaccountsBalancetransfersGet operation in VonageAccountsApi.
851
932
  * @export
@@ -874,20 +955,6 @@ export interface VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest
874
955
  readonly endDate?: Date
875
956
  }
876
957
 
877
- /**
878
- * Request parameters for apiV1VonageaccountsPost operation in VonageAccountsApi.
879
- * @export
880
- * @interface VonageAccountsApiApiV1VonageaccountsPostRequest
881
- */
882
- export interface VonageAccountsApiApiV1VonageaccountsPostRequest {
883
- /**
884
- *
885
- * @type {CreateSubAccountCommand}
886
- * @memberof VonageAccountsApiApiV1VonageaccountsPost
887
- */
888
- readonly createSubAccountCommand?: CreateSubAccountCommand
889
- }
890
-
891
958
  /**
892
959
  * Request parameters for apiV1VonageaccountsSecretsGet operation in VonageAccountsApi.
893
960
  * @export
@@ -955,58 +1022,93 @@ export interface VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest {
955
1022
  * @type {string}
956
1023
  * @memberof VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGet
957
1024
  */
958
- readonly secretId2?: string
1025
+ readonly apiKey?: string
1026
+ }
959
1027
 
1028
+ /**
1029
+ * Request parameters for apiV1VonageaccountsSubaccountsPost operation in VonageAccountsApi.
1030
+ * @export
1031
+ * @interface VonageAccountsApiApiV1VonageaccountsSubaccountsPostRequest
1032
+ */
1033
+ export interface VonageAccountsApiApiV1VonageaccountsSubaccountsPostRequest {
960
1034
  /**
961
1035
  *
962
- * @type {string}
963
- * @memberof VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGet
1036
+ * @type {CreateSubAccountCommand}
1037
+ * @memberof VonageAccountsApiApiV1VonageaccountsSubaccountsPost
964
1038
  */
965
- readonly apiKey?: string
1039
+ readonly createSubAccountCommand?: CreateSubAccountCommand
966
1040
  }
967
1041
 
968
1042
  /**
969
- * Request parameters for apiV1VonageaccountsSubAccountKeyDelete operation in VonageAccountsApi.
1043
+ * Request parameters for apiV1VonageaccountsSubaccountsSubAccountKeyDelete operation in VonageAccountsApi.
970
1044
  * @export
971
- * @interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest
1045
+ * @interface VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyDeleteRequest
972
1046
  */
973
- export interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest {
1047
+ export interface VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyDeleteRequest {
974
1048
  /**
975
1049
  *
976
1050
  * @type {string}
977
- * @memberof VonageAccountsApiApiV1VonageaccountsSubAccountKeyDelete
1051
+ * @memberof VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyDelete
978
1052
  */
979
1053
  readonly subAccountKey: string
980
1054
  }
981
1055
 
982
1056
  /**
983
- * Request parameters for apiV1VonageaccountsSubAccountKeyGet operation in VonageAccountsApi.
1057
+ * Request parameters for apiV1VonageaccountsSubaccountsSubAccountKeyGet operation in VonageAccountsApi.
984
1058
  * @export
985
- * @interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest
1059
+ * @interface VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyGetRequest
986
1060
  */
987
- export interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest {
1061
+ export interface VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyGetRequest {
988
1062
  /**
989
1063
  *
990
1064
  * @type {string}
991
- * @memberof VonageAccountsApiApiV1VonageaccountsSubAccountKeyGet
1065
+ * @memberof VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyGet
992
1066
  */
993
1067
  readonly subAccountKey: string
994
1068
  }
995
1069
 
996
1070
  /**
997
- * Request parameters for apiV1VonageaccountsSubAccountKeyPut operation in VonageAccountsApi.
1071
+ * Request parameters for apiV1VonageaccountsSubaccountsSubAccountKeyPut operation in VonageAccountsApi.
998
1072
  * @export
999
- * @interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest
1073
+ * @interface VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyPutRequest
1000
1074
  */
1001
- export interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest {
1075
+ export interface VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyPutRequest {
1002
1076
  /**
1003
1077
  *
1004
1078
  * @type {string}
1005
- * @memberof VonageAccountsApiApiV1VonageaccountsSubAccountKeyPut
1079
+ * @memberof VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyPut
1006
1080
  */
1007
1081
  readonly subAccountKey: string
1008
1082
  }
1009
1083
 
1084
+ /**
1085
+ * Request parameters for apiV1VonageaccountsTransferbalancePost operation in VonageAccountsApi.
1086
+ * @export
1087
+ * @interface VonageAccountsApiApiV1VonageaccountsTransferbalancePostRequest
1088
+ */
1089
+ export interface VonageAccountsApiApiV1VonageaccountsTransferbalancePostRequest {
1090
+ /**
1091
+ *
1092
+ * @type {TransferBalanceCommand}
1093
+ * @memberof VonageAccountsApiApiV1VonageaccountsTransferbalancePost
1094
+ */
1095
+ readonly transferBalanceCommand?: TransferBalanceCommand
1096
+ }
1097
+
1098
+ /**
1099
+ * Request parameters for apiV1VonageaccountsTrnasfernumberPost operation in VonageAccountsApi.
1100
+ * @export
1101
+ * @interface VonageAccountsApiApiV1VonageaccountsTrnasfernumberPostRequest
1102
+ */
1103
+ export interface VonageAccountsApiApiV1VonageaccountsTrnasfernumberPostRequest {
1104
+ /**
1105
+ *
1106
+ * @type {TransferNumberCommand}
1107
+ * @memberof VonageAccountsApiApiV1VonageaccountsTrnasfernumberPost
1108
+ */
1109
+ readonly transferNumberCommand?: TransferNumberCommand
1110
+ }
1111
+
1010
1112
  /**
1011
1113
  * Request parameters for apiV1VonageaccountsUpdatePut operation in VonageAccountsApi.
1012
1114
  * @export
@@ -1030,6 +1132,7 @@ export interface VonageAccountsApiApiV1VonageaccountsUpdatePutRequest {
1030
1132
  export class VonageAccountsApi extends BaseAPI {
1031
1133
  /**
1032
1134
  *
1135
+ * @summary Retrieve the balance of the account.
1033
1136
  * @param {*} [options] Override http request option.
1034
1137
  * @throws {RequiredError}
1035
1138
  * @memberof VonageAccountsApi
@@ -1040,126 +1143,150 @@ export class VonageAccountsApi extends BaseAPI {
1040
1143
 
1041
1144
  /**
1042
1145
  *
1043
- * @param {VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest} requestParameters Request parameters.
1146
+ * @summary Retrieve the balanceTransfer history of the account.
1147
+ * @param {VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest} requestParameters Request parameters.
1044
1148
  * @param {*} [options] Override http request option.
1045
1149
  * @throws {RequiredError}
1046
1150
  * @memberof VonageAccountsApi
1047
1151
  */
1048
- public apiV1VonageaccountsBalanceTransferPost(requestParameters: VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest = {}, options?: AxiosRequestConfig) {
1049
- return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsBalanceTransferPost(requestParameters.transferBalanceCommand, options).then((request) => request(this.axios, this.basePath));
1152
+ public apiV1VonageaccountsBalancetransfersGet(requestParameters: VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest = {}, options?: AxiosRequestConfig) {
1153
+ return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsBalancetransfersGet(requestParameters.apiKey, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
1050
1154
  }
1051
1155
 
1052
1156
  /**
1053
1157
  *
1054
- * @param {VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest} requestParameters Request parameters.
1158
+ * @summary Retrieve all secrets for account. ApiKey is optional, if not provided, the default ApiKey will be used.
1159
+ * @param {VonageAccountsApiApiV1VonageaccountsSecretsGetRequest} requestParameters Request parameters.
1055
1160
  * @param {*} [options] Override http request option.
1056
1161
  * @throws {RequiredError}
1057
1162
  * @memberof VonageAccountsApi
1058
1163
  */
1059
- public apiV1VonageaccountsBalancetransfersGet(requestParameters: VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest = {}, options?: AxiosRequestConfig) {
1060
- return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsBalancetransfersGet(requestParameters.apiKey, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
1164
+ public apiV1VonageaccountsSecretsGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsGetRequest = {}, options?: AxiosRequestConfig) {
1165
+ return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSecretsGet(requestParameters.apiKey, options).then((request) => request(this.axios, this.basePath));
1061
1166
  }
1062
1167
 
1063
1168
  /**
1064
1169
  *
1170
+ * @summary Create a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
1171
+ * @param {VonageAccountsApiApiV1VonageaccountsSecretsPostRequest} requestParameters Request parameters.
1065
1172
  * @param {*} [options] Override http request option.
1066
1173
  * @throws {RequiredError}
1067
1174
  * @memberof VonageAccountsApi
1068
1175
  */
1069
- public apiV1VonageaccountsGet(options?: AxiosRequestConfig) {
1070
- return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsGet(options).then((request) => request(this.axios, this.basePath));
1176
+ public apiV1VonageaccountsSecretsPost(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsPostRequest = {}, options?: AxiosRequestConfig) {
1177
+ return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSecretsPost(requestParameters.createSecretCommand, options).then((request) => request(this.axios, this.basePath));
1071
1178
  }
1072
1179
 
1073
1180
  /**
1074
1181
  *
1075
- * @param {VonageAccountsApiApiV1VonageaccountsPostRequest} requestParameters Request parameters.
1182
+ * @summary Revoke a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
1183
+ * @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest} requestParameters Request parameters.
1076
1184
  * @param {*} [options] Override http request option.
1077
1185
  * @throws {RequiredError}
1078
1186
  * @memberof VonageAccountsApi
1079
1187
  */
1080
- public apiV1VonageaccountsPost(requestParameters: VonageAccountsApiApiV1VonageaccountsPostRequest = {}, options?: AxiosRequestConfig) {
1081
- return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsPost(requestParameters.createSubAccountCommand, options).then((request) => request(this.axios, this.basePath));
1188
+ public apiV1VonageaccountsSecretsSecretIdDelete(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest, options?: AxiosRequestConfig) {
1189
+ return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSecretsSecretIdDelete(requestParameters.secretId, requestParameters.apiKey, options).then((request) => request(this.axios, this.basePath));
1082
1190
  }
1083
1191
 
1084
1192
  /**
1085
1193
  *
1086
- * @param {VonageAccountsApiApiV1VonageaccountsSecretsGetRequest} requestParameters Request parameters.
1194
+ * @summary Retrieve a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
1195
+ * @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest} requestParameters Request parameters.
1087
1196
  * @param {*} [options] Override http request option.
1088
1197
  * @throws {RequiredError}
1089
1198
  * @memberof VonageAccountsApi
1090
1199
  */
1091
- public apiV1VonageaccountsSecretsGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsGetRequest = {}, options?: AxiosRequestConfig) {
1092
- return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSecretsGet(requestParameters.apiKey, options).then((request) => request(this.axios, this.basePath));
1200
+ public apiV1VonageaccountsSecretsSecretIdGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest, options?: AxiosRequestConfig) {
1201
+ return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSecretsSecretIdGet(requestParameters.secretId, requestParameters.apiKey, options).then((request) => request(this.axios, this.basePath));
1093
1202
  }
1094
1203
 
1095
1204
  /**
1096
1205
  *
1097
- * @param {VonageAccountsApiApiV1VonageaccountsSecretsPostRequest} requestParameters Request parameters.
1206
+ * @summary Only main account can retrieve sub accounts.
1098
1207
  * @param {*} [options] Override http request option.
1099
1208
  * @throws {RequiredError}
1100
1209
  * @memberof VonageAccountsApi
1101
1210
  */
1102
- public apiV1VonageaccountsSecretsPost(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsPostRequest = {}, options?: AxiosRequestConfig) {
1103
- return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSecretsPost(requestParameters.createSecretCommand, options).then((request) => request(this.axios, this.basePath));
1211
+ public apiV1VonageaccountsSubaccountsGet(options?: AxiosRequestConfig) {
1212
+ return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSubaccountsGet(options).then((request) => request(this.axios, this.basePath));
1104
1213
  }
1105
1214
 
1106
1215
  /**
1107
1216
  *
1108
- * @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest} requestParameters Request parameters.
1217
+ * @summary Create sub account. Only main account can create sub account.
1218
+ * @param {VonageAccountsApiApiV1VonageaccountsSubaccountsPostRequest} requestParameters Request parameters.
1109
1219
  * @param {*} [options] Override http request option.
1110
1220
  * @throws {RequiredError}
1111
1221
  * @memberof VonageAccountsApi
1112
1222
  */
1113
- public apiV1VonageaccountsSecretsSecretIdDelete(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest, options?: AxiosRequestConfig) {
1114
- return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSecretsSecretIdDelete(requestParameters.secretId, requestParameters.apiKey, options).then((request) => request(this.axios, this.basePath));
1223
+ public apiV1VonageaccountsSubaccountsPost(requestParameters: VonageAccountsApiApiV1VonageaccountsSubaccountsPostRequest = {}, options?: AxiosRequestConfig) {
1224
+ return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSubaccountsPost(requestParameters.createSubAccountCommand, options).then((request) => request(this.axios, this.basePath));
1115
1225
  }
1116
1226
 
1117
1227
  /**
1118
1228
  *
1119
- * @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest} requestParameters Request parameters.
1229
+ * @summary Only main account can suspend sub account.
1230
+ * @param {VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyDeleteRequest} requestParameters Request parameters.
1120
1231
  * @param {*} [options] Override http request option.
1121
1232
  * @throws {RequiredError}
1122
1233
  * @memberof VonageAccountsApi
1123
1234
  */
1124
- public apiV1VonageaccountsSecretsSecretIdGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest, options?: AxiosRequestConfig) {
1125
- return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSecretsSecretIdGet(requestParameters.secretId, requestParameters.secretId2, requestParameters.apiKey, options).then((request) => request(this.axios, this.basePath));
1235
+ public apiV1VonageaccountsSubaccountsSubAccountKeyDelete(requestParameters: VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyDeleteRequest, options?: AxiosRequestConfig) {
1236
+ return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSubaccountsSubAccountKeyDelete(requestParameters.subAccountKey, options).then((request) => request(this.axios, this.basePath));
1237
+ }
1238
+
1239
+ /**
1240
+ *
1241
+ * @summary Only main account can retrieve sub account.
1242
+ * @param {VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyGetRequest} requestParameters Request parameters.
1243
+ * @param {*} [options] Override http request option.
1244
+ * @throws {RequiredError}
1245
+ * @memberof VonageAccountsApi
1246
+ */
1247
+ public apiV1VonageaccountsSubaccountsSubAccountKeyGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyGetRequest, options?: AxiosRequestConfig) {
1248
+ return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSubaccountsSubAccountKeyGet(requestParameters.subAccountKey, options).then((request) => request(this.axios, this.basePath));
1126
1249
  }
1127
1250
 
1128
1251
  /**
1129
1252
  *
1130
- * @param {VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest} requestParameters Request parameters.
1253
+ * @summary Only main account can reactivate sub account.
1254
+ * @param {VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyPutRequest} requestParameters Request parameters.
1131
1255
  * @param {*} [options] Override http request option.
1132
1256
  * @throws {RequiredError}
1133
1257
  * @memberof VonageAccountsApi
1134
1258
  */
1135
- public apiV1VonageaccountsSubAccountKeyDelete(requestParameters: VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest, options?: AxiosRequestConfig) {
1136
- return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSubAccountKeyDelete(requestParameters.subAccountKey, options).then((request) => request(this.axios, this.basePath));
1259
+ public apiV1VonageaccountsSubaccountsSubAccountKeyPut(requestParameters: VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyPutRequest, options?: AxiosRequestConfig) {
1260
+ return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSubaccountsSubAccountKeyPut(requestParameters.subAccountKey, options).then((request) => request(this.axios, this.basePath));
1137
1261
  }
1138
1262
 
1139
1263
  /**
1140
1264
  *
1141
- * @param {VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest} requestParameters Request parameters.
1265
+ * @summary Transfer balance between accounts.
1266
+ * @param {VonageAccountsApiApiV1VonageaccountsTransferbalancePostRequest} requestParameters Request parameters.
1142
1267
  * @param {*} [options] Override http request option.
1143
1268
  * @throws {RequiredError}
1144
1269
  * @memberof VonageAccountsApi
1145
1270
  */
1146
- public apiV1VonageaccountsSubAccountKeyGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest, options?: AxiosRequestConfig) {
1147
- return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSubAccountKeyGet(requestParameters.subAccountKey, options).then((request) => request(this.axios, this.basePath));
1271
+ public apiV1VonageaccountsTransferbalancePost(requestParameters: VonageAccountsApiApiV1VonageaccountsTransferbalancePostRequest = {}, options?: AxiosRequestConfig) {
1272
+ return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsTransferbalancePost(requestParameters.transferBalanceCommand, options).then((request) => request(this.axios, this.basePath));
1148
1273
  }
1149
1274
 
1150
1275
  /**
1151
1276
  *
1152
- * @param {VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest} requestParameters Request parameters.
1277
+ * @summary Transfer number from main account to subAccount.
1278
+ * @param {VonageAccountsApiApiV1VonageaccountsTrnasfernumberPostRequest} requestParameters Request parameters.
1153
1279
  * @param {*} [options] Override http request option.
1154
1280
  * @throws {RequiredError}
1155
1281
  * @memberof VonageAccountsApi
1156
1282
  */
1157
- public apiV1VonageaccountsSubAccountKeyPut(requestParameters: VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest, options?: AxiosRequestConfig) {
1158
- return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSubAccountKeyPut(requestParameters.subAccountKey, options).then((request) => request(this.axios, this.basePath));
1283
+ public apiV1VonageaccountsTrnasfernumberPost(requestParameters: VonageAccountsApiApiV1VonageaccountsTrnasfernumberPostRequest = {}, options?: AxiosRequestConfig) {
1284
+ return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsTrnasfernumberPost(requestParameters.transferNumberCommand, options).then((request) => request(this.axios, this.basePath));
1159
1285
  }
1160
1286
 
1161
1287
  /**
1162
1288
  *
1289
+ * @summary Update account settings
1163
1290
  * @param {VonageAccountsApiApiV1VonageaccountsUpdatePutRequest} requestParameters Request parameters.
1164
1291
  * @param {*} [options] Override http request option.
1165
1292
  * @throws {RequiredError}