Skip to content

Commit

Permalink
feat: sync SDK to OpenAPI doc v2.8.0 (#107)
Browse files Browse the repository at this point in the history
Automated pull request triggered by OpenAPI document update. SDK Code
generated using [OpenAPI generator](https://openapi-generator.tech/)
  • Loading branch information
circle-github-action-bot authored Mar 11, 2024
1 parent 0241ad2 commit e0d7a38
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.1
2.8.0
38 changes: 37 additions & 1 deletion sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
},
Expand Down Expand Up @@ -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": [
Expand Down
110 changes: 110 additions & 0 deletions src/generated/apis/addresses-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<RequestArgs> => {
// 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
Expand Down Expand Up @@ -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<void>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.deleteBusinessRecipientAddress(
id,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
*
* @summary List all deposit addresses
Expand Down Expand Up @@ -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<void> {
return localVarFp
.deleteBusinessRecipientAddress(id, options)
.then((request) => request(axios, basePath));
},
/**
*
* @summary List all deposit addresses
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e0d7a38

Please sign in to comment.