Skip to content

Commit e0d7a38

Browse files
feat: sync SDK to OpenAPI doc v2.8.0 (#107)
Automated pull request triggered by OpenAPI document update. SDK Code generated using [OpenAPI generator](https://openapi-generator.tech/)
1 parent 0241ad2 commit e0d7a38

File tree

3 files changed

+148
-2
lines changed

3 files changed

+148
-2
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.1
1+
2.8.0

sdk.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}
77
],
88
"info": {
9-
"version": "2.7.1",
9+
"version": "2.8.0",
1010
"title": "All Circle APIs",
1111
"description": "Circle's General, Core Functionality, Payments, Payouts, Accounts, and Crypto Payments APIs bundled into one OpenAPI Specification."
1212
},
@@ -1820,6 +1820,42 @@
18201820
}
18211821
}
18221822
},
1823+
"/v1/businessAccount/wallets/addresses/recipient/{id}": {
1824+
"delete": {
1825+
"security": [
1826+
{
1827+
"bearerAuth": []
1828+
}
1829+
],
1830+
"parameters": [
1831+
{
1832+
"$ref": "#/components/parameters/IdPath"
1833+
}
1834+
],
1835+
"summary": "Delete a recipient address",
1836+
"operationId": "deleteBusinessRecipientAddress",
1837+
"tags": ["Addresses"],
1838+
"responses": {
1839+
"200": {
1840+
"headers": {
1841+
"X-Request-Id": {
1842+
"$ref": "#/components/headers/XRequestId"
1843+
}
1844+
},
1845+
"description": "Successfully removed the recipient address."
1846+
},
1847+
"400": {
1848+
"$ref": "#/components/responses/BadRequest"
1849+
},
1850+
"401": {
1851+
"$ref": "#/components/responses/NotAuthorized"
1852+
},
1853+
"404": {
1854+
"$ref": "#/components/responses/NotFound"
1855+
}
1856+
}
1857+
}
1858+
},
18231859
"/v1/businessAccount/deposits": {
18241860
"get": {
18251861
"security": [

src/generated/apis/addresses-api.ts

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ import { GetBusinessDepositAddressResponse } from "../models";
4747
import { ListBusinessRecipientAddressesResponse } from "../models";
4848
// @ts-ignore
4949
import { NotAuthorized } from "../models";
50+
// @ts-ignore
51+
import { NotFound } from "../models";
5052
/**
5153
* AddressesApi - axios parameter creator
5254
* @export
@@ -159,6 +161,57 @@ export const AddressesApiAxiosParamCreator = function (
159161
options: localVarRequestOptions
160162
};
161163
},
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+
},
162215
/**
163216
*
164217
* @summary List all deposit addresses
@@ -344,6 +397,31 @@ export const AddressesApiFp = function (configuration?: Configuration) {
344397
configuration
345398
);
346399
},
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+
},
347425
/**
348426
*
349427
* @summary List all deposit addresses
@@ -454,6 +532,21 @@ export const AddressesApiFactory = function (
454532
)
455533
.then((request) => request(axios, basePath));
456534
},
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+
},
457550
/**
458551
*
459552
* @summary List all deposit addresses
@@ -544,6 +637,23 @@ export class AddressesApi extends BaseAPI {
544637
.then((request) => request(this.axios, this.basePath));
545638
}
546639

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+
547657
/**
548658
*
549659
* @summary List all deposit addresses

0 commit comments

Comments
 (0)