Skip to content

Commit

Permalink
Generated version 0.18.0
Browse files Browse the repository at this point in the history
This commit was automatically created by a GitHub Action to generate version 0.18.0 of this library.
  • Loading branch information
devexperience committed Aug 15, 2023
1 parent 58d1253 commit eabe812
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 26 deletions.
164 changes: 140 additions & 24 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ export interface AccountCreateRequest {
* @type {string}
* @memberof AccountCreateRequest
*/
'account_subtype_name'?: string;
'account_subtype'?: string;
/**
*
* @type {number}
* @type {string}
* @memberof AccountCreateRequest
*/
'account_type': number;
'account_type': string;
/**
*
* @type {number}
Expand Down Expand Up @@ -141,18 +141,12 @@ export interface AccountCreateRequest {
* @memberof AccountCreateRequest
*/
'original_balance'?: number;
/**
*
* @type {number}
* @memberof AccountCreateRequest
*/
'property_type'?: number;
/**
*
* @type {string}
* @memberof AccountCreateRequest
*/
'property_type_name'?: string;
'property_type'?: string;
/**
*
* @type {boolean}
Expand Down Expand Up @@ -639,18 +633,12 @@ export interface AccountResponse {
* @memberof AccountResponse
*/
'premium_amount'?: number | null;
/**
*
* @type {number}
* @memberof AccountResponse
*/
'property_type'?: number | null;
/**
*
* @type {string}
* @memberof AccountResponse
*/
'property_type_name'?: string | null;
'property_type'?: string | null;
/**
*
* @type {string}
Expand Down Expand Up @@ -731,12 +719,132 @@ export interface AccountResponseBody {
* @interface AccountUpdateRequest
*/
export interface AccountUpdateRequest {
/**
*
* @type {string}
* @memberof AccountUpdateRequest
*/
'account_subtype'?: string;
/**
*
* @type {string}
* @memberof AccountUpdateRequest
*/
'account_type'?: string;
/**
*
* @type {number}
* @memberof AccountUpdateRequest
*/
'apr'?: number;
/**
*
* @type {number}
* @memberof AccountUpdateRequest
*/
'apy'?: number;
/**
*
* @type {number}
* @memberof AccountUpdateRequest
*/
'available_balance'?: number;
/**
*
* @type {number}
* @memberof AccountUpdateRequest
*/
'balance'?: number;
/**
*
* @type {number}
* @memberof AccountUpdateRequest
*/
'cash_surrender_value'?: number;
/**
*
* @type {number}
* @memberof AccountUpdateRequest
*/
'credit_limit'?: number;
/**
*
* @type {string}
* @memberof AccountUpdateRequest
*/
'currency_code'?: string;
/**
*
* @type {number}
* @memberof AccountUpdateRequest
*/
'death_benefit'?: number;
/**
*
* @type {number}
* @memberof AccountUpdateRequest
*/
'interest_rate'?: number;
/**
*
* @type {boolean}
* @memberof AccountUpdateRequest
*/
'is_business'?: boolean;
/**
*
* @type {boolean}
* @memberof AccountUpdateRequest
*/
'is_closed'?: boolean;
/**
*
* @type {boolean}
* @memberof AccountUpdateRequest
*/
'is_hidden'?: boolean;
/**
*
* @type {number}
* @memberof AccountUpdateRequest
*/
'loan_amount'?: number;
/**
*
* @type {string}
* @memberof AccountUpdateRequest
*/
'metadata'?: string;
/**
*
* @type {string}
* @memberof AccountUpdateRequest
*/
'name'?: string;
/**
*
* @type {string}
* @memberof AccountUpdateRequest
*/
'nickname'?: string;
/**
*
* @type {number}
* @memberof AccountUpdateRequest
*/
'original_balance'?: number;
/**
*
* @type {string}
* @memberof AccountUpdateRequest
*/
'property_type'?: string;
/**
*
* @type {boolean}
* @memberof AccountUpdateRequest
*/
'skip_webhook'?: boolean;
}
/**
*
Expand Down Expand Up @@ -7341,11 +7449,12 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
* @param {string} userGuid The unique id for a `user`.
* @param {boolean} [memberIsManagedByUser] List only accounts whose member is managed by the user.
* @param {number} [page] Specify current page.
* @param {boolean} [isManual] List only accounts that were manually created.
* @param {number} [recordsPerPage] Specify records per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listUserAccounts: async (userGuid: string, memberIsManagedByUser?: boolean, page?: number, recordsPerPage?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
listUserAccounts: async (userGuid: string, memberIsManagedByUser?: boolean, page?: number, isManual?: boolean, recordsPerPage?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'userGuid' is not null or undefined
assertParamExists('listUserAccounts', 'userGuid', userGuid)
const localVarPath = `/users/{user_guid}/accounts`
Expand Down Expand Up @@ -7373,6 +7482,10 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
localVarQueryParameter['page'] = page;
}

if (isManual !== undefined) {
localVarQueryParameter['is_manual'] = isManual;
}

if (recordsPerPage !== undefined) {
localVarQueryParameter['records_per_page'] = recordsPerPage;
}
Expand Down Expand Up @@ -9917,12 +10030,13 @@ export const MxPlatformApiFp = function(configuration?: Configuration) {
* @param {string} userGuid The unique id for a &#x60;user&#x60;.
* @param {boolean} [memberIsManagedByUser] List only accounts whose member is managed by the user.
* @param {number} [page] Specify current page.
* @param {boolean} [isManual] List only accounts that were manually created.
* @param {number} [recordsPerPage] Specify records per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listUserAccounts(userGuid: string, memberIsManagedByUser?: boolean, page?: number, recordsPerPage?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountsResponseBody>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserAccounts(userGuid, memberIsManagedByUser, page, recordsPerPage, options);
async listUserAccounts(userGuid: string, memberIsManagedByUser?: boolean, page?: number, isManual?: boolean, recordsPerPage?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountsResponseBody>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserAccounts(userGuid, memberIsManagedByUser, page, isManual, recordsPerPage, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
Expand Down Expand Up @@ -11145,12 +11259,13 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas
* @param {string} userGuid The unique id for a &#x60;user&#x60;.
* @param {boolean} [memberIsManagedByUser] List only accounts whose member is managed by the user.
* @param {number} [page] Specify current page.
* @param {boolean} [isManual] List only accounts that were manually created.
* @param {number} [recordsPerPage] Specify records per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listUserAccounts(userGuid: string, memberIsManagedByUser?: boolean, page?: number, recordsPerPage?: number, options?: any): AxiosPromise<AccountsResponseBody> {
return localVarFp.listUserAccounts(userGuid, memberIsManagedByUser, page, recordsPerPage, options).then((request) => request(axios, basePath));
listUserAccounts(userGuid: string, memberIsManagedByUser?: boolean, page?: number, isManual?: boolean, recordsPerPage?: number, options?: any): AxiosPromise<AccountsResponseBody> {
return localVarFp.listUserAccounts(userGuid, memberIsManagedByUser, page, isManual, recordsPerPage, options).then((request) => request(axios, basePath));
},
/**
* Use this endpoint to list every user you\'ve created in the MX Platform API.
Expand Down Expand Up @@ -12454,13 +12569,14 @@ export class MxPlatformApi extends BaseAPI {
* @param {string} userGuid The unique id for a &#x60;user&#x60;.
* @param {boolean} [memberIsManagedByUser] List only accounts whose member is managed by the user.
* @param {number} [page] Specify current page.
* @param {boolean} [isManual] List only accounts that were manually created.
* @param {number} [recordsPerPage] Specify records per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MxPlatformApi
*/
public listUserAccounts(userGuid: string, memberIsManagedByUser?: boolean, page?: number, recordsPerPage?: number, options?: AxiosRequestConfig) {
return MxPlatformApiFp(this.configuration).listUserAccounts(userGuid, memberIsManagedByUser, page, recordsPerPage, options).then((request) => request(this.axios, this.basePath));
public listUserAccounts(userGuid: string, memberIsManagedByUser?: boolean, page?: number, isManual?: boolean, recordsPerPage?: number, options?: AxiosRequestConfig) {
return MxPlatformApiFp(this.configuration).listUserAccounts(userGuid, memberIsManagedByUser, page, isManual, recordsPerPage, options).then((request) => request(this.axios, this.basePath));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion openapi/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
npmName: mx-platform-node
npmVersion: 0.17.1
npmVersion: 0.18.0
supportsES6: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mx-platform-node",
"version": "0.17.1",
"version": "0.18.0",
"description": "A Node library for the MX Platform API.",
"author": "MX",
"keywords": [
Expand Down

0 comments on commit eabe812

Please sign in to comment.