@@ -47,6 +47,8 @@ import { GetBusinessDepositAddressResponse } from "../models";
47
47
import { ListBusinessRecipientAddressesResponse } from "../models" ;
48
48
// @ts -ignore
49
49
import { NotAuthorized } from "../models" ;
50
+ // @ts -ignore
51
+ import { NotFound } from "../models" ;
50
52
/**
51
53
* AddressesApi - axios parameter creator
52
54
* @export
@@ -159,6 +161,57 @@ export const AddressesApiAxiosParamCreator = function (
159
161
options : localVarRequestOptions
160
162
} ;
161
163
} ,
164
+ /**
165
+ *
166
+ * @summary Delete a recipient address
167
+ * @param {string } id Universally unique identifier (UUID v4) of a resource.
168
+ * @param {* } [options] Override http request option.
169
+ * @throws {RequiredError }
170
+ */
171
+ deleteBusinessRecipientAddress : async (
172
+ id : string ,
173
+ options : AxiosRequestConfig = { }
174
+ ) : Promise < RequestArgs > => {
175
+ // verify required parameter 'id' is not null or undefined
176
+ assertParamExists ( "deleteBusinessRecipientAddress" , "id" , id ) ;
177
+ const localVarPath =
178
+ `/v1/businessAccount/wallets/addresses/recipient/{id}` . replace (
179
+ `{${ "id" } }` ,
180
+ encodeURIComponent ( String ( id ) )
181
+ ) ;
182
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
183
+ const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ;
184
+ let baseOptions ;
185
+ if ( configuration ) {
186
+ baseOptions = configuration . baseOptions ;
187
+ }
188
+
189
+ const localVarRequestOptions = {
190
+ method : "DELETE" ,
191
+ ...baseOptions ,
192
+ ...options
193
+ } ;
194
+ const localVarHeaderParameter = { } as any ;
195
+ const localVarQueryParameter = { } as any ;
196
+
197
+ // authentication bearerAuth required
198
+ // http bearer authentication required
199
+ await setBearerAuthToObject ( localVarHeaderParameter , configuration ) ;
200
+
201
+ setSearchParams ( localVarUrlObj , localVarQueryParameter ) ;
202
+ let headersFromBaseOptions =
203
+ baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
204
+ localVarRequestOptions . headers = {
205
+ ...localVarHeaderParameter ,
206
+ ...headersFromBaseOptions ,
207
+ ...options . headers
208
+ } ;
209
+
210
+ return {
211
+ url : toPathString ( localVarUrlObj ) ,
212
+ options : localVarRequestOptions
213
+ } ;
214
+ } ,
162
215
/**
163
216
*
164
217
* @summary List all deposit addresses
@@ -344,6 +397,31 @@ export const AddressesApiFp = function (configuration?: Configuration) {
344
397
configuration
345
398
) ;
346
399
} ,
400
+ /**
401
+ *
402
+ * @summary Delete a recipient address
403
+ * @param {string } id Universally unique identifier (UUID v4) of a resource.
404
+ * @param {* } [options] Override http request option.
405
+ * @throws {RequiredError }
406
+ */
407
+ async deleteBusinessRecipientAddress (
408
+ id : string ,
409
+ options ?: AxiosRequestConfig
410
+ ) : Promise <
411
+ ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < void >
412
+ > {
413
+ const localVarAxiosArgs =
414
+ await localVarAxiosParamCreator . deleteBusinessRecipientAddress (
415
+ id ,
416
+ options
417
+ ) ;
418
+ return createRequestFunction (
419
+ localVarAxiosArgs ,
420
+ globalAxios ,
421
+ BASE_PATH ,
422
+ configuration
423
+ ) ;
424
+ } ,
347
425
/**
348
426
*
349
427
* @summary List all deposit addresses
@@ -454,6 +532,21 @@ export const AddressesApiFactory = function (
454
532
)
455
533
. then ( ( request ) => request ( axios , basePath ) ) ;
456
534
} ,
535
+ /**
536
+ *
537
+ * @summary Delete a recipient address
538
+ * @param {string } id Universally unique identifier (UUID v4) of a resource.
539
+ * @param {* } [options] Override http request option.
540
+ * @throws {RequiredError }
541
+ */
542
+ deleteBusinessRecipientAddress (
543
+ id : string ,
544
+ options ?: any
545
+ ) : AxiosPromise < void > {
546
+ return localVarFp
547
+ . deleteBusinessRecipientAddress ( id , options )
548
+ . then ( ( request ) => request ( axios , basePath ) ) ;
549
+ } ,
457
550
/**
458
551
*
459
552
* @summary List all deposit addresses
@@ -544,6 +637,23 @@ export class AddressesApi extends BaseAPI {
544
637
. then ( ( request ) => request ( this . axios , this . basePath ) ) ;
545
638
}
546
639
640
+ /**
641
+ *
642
+ * @summary Delete a recipient address
643
+ * @param {string } id Universally unique identifier (UUID v4) of a resource.
644
+ * @param {* } [options] Override http request option.
645
+ * @throws {RequiredError }
646
+ * @memberof AddressesApi
647
+ */
648
+ public deleteBusinessRecipientAddress (
649
+ id : string ,
650
+ options ?: AxiosRequestConfig
651
+ ) {
652
+ return AddressesApiFp ( this . configuration )
653
+ . deleteBusinessRecipientAddress ( id , options )
654
+ . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
655
+ }
656
+
547
657
/**
548
658
*
549
659
* @summary List all deposit addresses
0 commit comments