diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 860487c..834f262 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -2.7.1 +2.8.0 diff --git a/sdk.json b/sdk.json index de5fbdb..3612576 100644 --- a/sdk.json +++ b/sdk.json @@ -6,7 +6,7 @@ } ], "info": { - "version": "2.7.1", + "version": "2.8.0", "title": "All Circle APIs", "description": "Circle's General, Core Functionality, Payments, Payouts, Accounts, and Crypto Payments APIs bundled into one OpenAPI Specification." }, @@ -1820,6 +1820,42 @@ } } }, + "/v1/businessAccount/wallets/addresses/recipient/{id}": { + "delete": { + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "$ref": "#/components/parameters/IdPath" + } + ], + "summary": "Delete a recipient address", + "operationId": "deleteBusinessRecipientAddress", + "tags": ["Addresses"], + "responses": { + "200": { + "headers": { + "X-Request-Id": { + "$ref": "#/components/headers/XRequestId" + } + }, + "description": "Successfully removed the recipient address." + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/NotAuthorized" + }, + "404": { + "$ref": "#/components/responses/NotFound" + } + } + } + }, "/v1/businessAccount/deposits": { "get": { "security": [ diff --git a/src/generated/apis/addresses-api.ts b/src/generated/apis/addresses-api.ts index b24f42a..26b8a9b 100644 --- a/src/generated/apis/addresses-api.ts +++ b/src/generated/apis/addresses-api.ts @@ -47,6 +47,8 @@ import { GetBusinessDepositAddressResponse } from "../models"; import { ListBusinessRecipientAddressesResponse } from "../models"; // @ts-ignore import { NotAuthorized } from "../models"; +// @ts-ignore +import { NotFound } from "../models"; /** * AddressesApi - axios parameter creator * @export @@ -159,6 +161,57 @@ export const AddressesApiAxiosParamCreator = function ( options: localVarRequestOptions }; }, + /** + * + * @summary Delete a recipient address + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteBusinessRecipientAddress: async ( + id: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists("deleteBusinessRecipientAddress", "id", id); + const localVarPath = + `/v1/businessAccount/wallets/addresses/recipient/{id}`.replace( + `{${"id"}}`, + encodeURIComponent(String(id)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }, /** * * @summary List all deposit addresses @@ -344,6 +397,31 @@ export const AddressesApiFp = function (configuration?: Configuration) { configuration ); }, + /** + * + * @summary Delete a recipient address + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteBusinessRecipientAddress( + id: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteBusinessRecipientAddress( + id, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, /** * * @summary List all deposit addresses @@ -454,6 +532,21 @@ export const AddressesApiFactory = function ( ) .then((request) => request(axios, basePath)); }, + /** + * + * @summary Delete a recipient address + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteBusinessRecipientAddress( + id: string, + options?: any + ): AxiosPromise { + return localVarFp + .deleteBusinessRecipientAddress(id, options) + .then((request) => request(axios, basePath)); + }, /** * * @summary List all deposit addresses @@ -544,6 +637,23 @@ export class AddressesApi extends BaseAPI { .then((request) => request(this.axios, this.basePath)); } + /** + * + * @summary Delete a recipient address + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AddressesApi + */ + public deleteBusinessRecipientAddress( + id: string, + options?: AxiosRequestConfig + ) { + return AddressesApiFp(this.configuration) + .deleteBusinessRecipientAddress(id, options) + .then((request) => request(this.axios, this.basePath)); + } + /** * * @summary List all deposit addresses