Skip to content

Commit

Permalink
Merge pull request #44 from mxenabled/openapi-generator-0.13.0
Browse files Browse the repository at this point in the history
Generated version 0.13.0
  • Loading branch information
mcoats13 authored Apr 19, 2023
2 parents 44996ab + 8119aca commit b509352
Show file tree
Hide file tree
Showing 3 changed files with 270 additions and 2 deletions.
268 changes: 268 additions & 0 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,58 @@ export interface AccountsResponseBody {
*/
'pagination'?: PaginationResponse;
}
/**
*
* @export
* @interface AuthorizationCodeRequest
*/
export interface AuthorizationCodeRequest {
/**
*
* @type {string}
* @memberof AuthorizationCodeRequest
*/
'scope'?: string | null;
}
/**
*
* @export
* @interface AuthorizationCodeRequestBody
*/
export interface AuthorizationCodeRequestBody {
/**
*
* @type {AuthorizationCodeRequest}
* @memberof AuthorizationCodeRequestBody
*/
'authorization_code'?: AuthorizationCodeRequest;
}
/**
*
* @export
* @interface AuthorizationCodeResponse
*/
export interface AuthorizationCodeResponse {
/**
*
* @type {string}
* @memberof AuthorizationCodeResponse
*/
'code'?: string | null;
}
/**
*
* @export
* @interface AuthorizationCodeResponseBody
*/
export interface AuthorizationCodeResponseBody {
/**
*
* @type {Array<AuthorizationCodeResponse>}
* @memberof AuthorizationCodeResponseBody
*/
'authorization_code'?: Array<AuthorizationCodeResponse>;
}
/**
*
* @export
Expand Down Expand Up @@ -2885,6 +2937,70 @@ export interface PaginationResponse {
*/
'total_pages'?: number;
}
/**
*
* @export
* @interface PaymentProcessorAuthorizationCodeRequest
*/
export interface PaymentProcessorAuthorizationCodeRequest {
/**
*
* @type {string}
* @memberof PaymentProcessorAuthorizationCodeRequest
*/
'account_guid'?: string | null;
/**
*
* @type {string}
* @memberof PaymentProcessorAuthorizationCodeRequest
*/
'member_guid'?: string | null;
/**
*
* @type {string}
* @memberof PaymentProcessorAuthorizationCodeRequest
*/
'user_guid'?: string | null;
}
/**
*
* @export
* @interface PaymentProcessorAuthorizationCodeRequestBody
*/
export interface PaymentProcessorAuthorizationCodeRequestBody {
/**
*
* @type {PaymentProcessorAuthorizationCodeRequest}
* @memberof PaymentProcessorAuthorizationCodeRequestBody
*/
'payment_processor_authorization_code'?: PaymentProcessorAuthorizationCodeRequest;
}
/**
*
* @export
* @interface PaymentProcessorAuthorizationCodeResponse
*/
export interface PaymentProcessorAuthorizationCodeResponse {
/**
*
* @type {string}
* @memberof PaymentProcessorAuthorizationCodeResponse
*/
'authorization_code'?: string | null;
}
/**
*
* @export
* @interface PaymentProcessorAuthorizationCodeResponseBody
*/
export interface PaymentProcessorAuthorizationCodeResponseBody {
/**
*
* @type {PaymentProcessorAuthorizationCodeResponse}
* @memberof PaymentProcessorAuthorizationCodeResponseBody
*/
'payment_processor_authorization_code'?: PaymentProcessorAuthorizationCodeResponse;
}
/**
*
* @export
Expand Down Expand Up @@ -3881,6 +3997,12 @@ export interface WidgetRequest {
* @memberof WidgetRequest
*/
'current_member_guid'?: string;
/**
*
* @type {boolean}
* @memberof WidgetRequest
*/
'disable_background_agg'?: boolean;
/**
*
* @type {boolean}
Expand Down Expand Up @@ -4874,6 +4996,46 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
options: localVarRequestOptions,
};
},
/**
* (This endpoint is deprecated. Clients should use `/authorization_code`.) Clients use this endpoint to request an authorization_code according to a user, member, and account specified in the request body. Clients then pass this code to processors. Processor access is scoped only to the user/member/account specified in this request. Before requesting an authorization_code, clients must have verified the specified member.
* @summary (Deprecated) Request an authorization code.
* @param {PaymentProcessorAuthorizationCodeRequestBody} paymentProcessorAuthorizationCodeRequestBody The scope for the authorization code.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deprecatedRequestPaymentProcessorAuthorizationCode: async (paymentProcessorAuthorizationCodeRequestBody: PaymentProcessorAuthorizationCodeRequestBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'paymentProcessorAuthorizationCodeRequestBody' is not null or undefined
assertParamExists('deprecatedRequestPaymentProcessorAuthorizationCode', 'paymentProcessorAuthorizationCodeRequestBody', paymentProcessorAuthorizationCodeRequestBody)
const localVarPath = `/payment_processor_authorization_code`;
// 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: 'POST', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication basicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration)



localVarHeaderParameter['Content-Type'] = 'application/json';

setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.data = serializeDataIfNeeded(paymentProcessorAuthorizationCodeRequestBody, localVarRequestOptions, configuration)

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Use this endpoint to download a specified statement PDF.
* @summary Download statement pdf
Expand Down Expand Up @@ -7528,6 +7690,46 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
options: localVarRequestOptions,
};
},
/**
* Clients use this endpoint to request an authorization code according to the parameters specified in the scope. Clients then pass this code to processors. Processor access is scoped only to the GUIDs and features specified in this request. Before requesting an authorization code which includes a member in the scope, clients must have verified that member.
* @summary Request an authorization code.
* @param {AuthorizationCodeRequestBody} authorizationCodeRequestBody The scope for the authorization code.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
requestAuthorizationCode: async (authorizationCodeRequestBody: AuthorizationCodeRequestBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'authorizationCodeRequestBody' is not null or undefined
assertParamExists('requestAuthorizationCode', 'authorizationCodeRequestBody', authorizationCodeRequestBody)
const localVarPath = `/authorization_code`;
// 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: 'POST', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication basicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration)



localVarHeaderParameter['Content-Type'] = 'application/json';

setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.data = serializeDataIfNeeded(authorizationCodeRequestBody, localVarRequestOptions, configuration)

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* This endpoint will return a URL for an embeddable version of MX Connect.
* @summary Request connect widget url
Expand Down Expand Up @@ -8567,6 +8769,17 @@ export const MxPlatformApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(userGuid, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
* (This endpoint is deprecated. Clients should use `/authorization_code`.) Clients use this endpoint to request an authorization_code according to a user, member, and account specified in the request body. Clients then pass this code to processors. Processor access is scoped only to the user/member/account specified in this request. Before requesting an authorization_code, clients must have verified the specified member.
* @summary (Deprecated) Request an authorization code.
* @param {PaymentProcessorAuthorizationCodeRequestBody} paymentProcessorAuthorizationCodeRequestBody The scope for the authorization code.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody: PaymentProcessorAuthorizationCodeRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentProcessorAuthorizationCodeResponseBody>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
* Use this endpoint to download a specified statement PDF.
* @summary Download statement pdf
Expand Down Expand Up @@ -9291,6 +9504,17 @@ export const MxPlatformApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.readUser(userGuid, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
* Clients use this endpoint to request an authorization code according to the parameters specified in the scope. Clients then pass this code to processors. Processor access is scoped only to the GUIDs and features specified in this request. Before requesting an authorization code which includes a member in the scope, clients must have verified that member.
* @summary Request an authorization code.
* @param {AuthorizationCodeRequestBody} authorizationCodeRequestBody The scope for the authorization code.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async requestAuthorizationCode(authorizationCodeRequestBody: AuthorizationCodeRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizationCodeResponseBody>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.requestAuthorizationCode(authorizationCodeRequestBody, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
* This endpoint will return a URL for an embeddable version of MX Connect.
* @summary Request connect widget url
Expand Down Expand Up @@ -9737,6 +9961,16 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas
deleteUser(userGuid: string, options?: any): AxiosPromise<void> {
return localVarFp.deleteUser(userGuid, options).then((request) => request(axios, basePath));
},
/**
* (This endpoint is deprecated. Clients should use `/authorization_code`.) Clients use this endpoint to request an authorization_code according to a user, member, and account specified in the request body. Clients then pass this code to processors. Processor access is scoped only to the user/member/account specified in this request. Before requesting an authorization_code, clients must have verified the specified member.
* @summary (Deprecated) Request an authorization code.
* @param {PaymentProcessorAuthorizationCodeRequestBody} paymentProcessorAuthorizationCodeRequestBody The scope for the authorization code.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody: PaymentProcessorAuthorizationCodeRequestBody, options?: any): AxiosPromise<PaymentProcessorAuthorizationCodeResponseBody> {
return localVarFp.deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody, options).then((request) => request(axios, basePath));
},
/**
* Use this endpoint to download a specified statement PDF.
* @summary Download statement pdf
Expand Down Expand Up @@ -10406,6 +10640,16 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas
readUser(userGuid: string, options?: any): AxiosPromise<UserResponseBody> {
return localVarFp.readUser(userGuid, options).then((request) => request(axios, basePath));
},
/**
* Clients use this endpoint to request an authorization code according to the parameters specified in the scope. Clients then pass this code to processors. Processor access is scoped only to the GUIDs and features specified in this request. Before requesting an authorization code which includes a member in the scope, clients must have verified that member.
* @summary Request an authorization code.
* @param {AuthorizationCodeRequestBody} authorizationCodeRequestBody The scope for the authorization code.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
requestAuthorizationCode(authorizationCodeRequestBody: AuthorizationCodeRequestBody, options?: any): AxiosPromise<AuthorizationCodeResponseBody> {
return localVarFp.requestAuthorizationCode(authorizationCodeRequestBody, options).then((request) => request(axios, basePath));
},
/**
* This endpoint will return a URL for an embeddable version of MX Connect.
* @summary Request connect widget url
Expand Down Expand Up @@ -10876,6 +11120,18 @@ export class MxPlatformApi extends BaseAPI {
return MxPlatformApiFp(this.configuration).deleteUser(userGuid, options).then((request) => request(this.axios, this.basePath));
}

/**
* (This endpoint is deprecated. Clients should use `/authorization_code`.) Clients use this endpoint to request an authorization_code according to a user, member, and account specified in the request body. Clients then pass this code to processors. Processor access is scoped only to the user/member/account specified in this request. Before requesting an authorization_code, clients must have verified the specified member.
* @summary (Deprecated) Request an authorization code.
* @param {PaymentProcessorAuthorizationCodeRequestBody} paymentProcessorAuthorizationCodeRequestBody The scope for the authorization code.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MxPlatformApi
*/
public deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody: PaymentProcessorAuthorizationCodeRequestBody, options?: AxiosRequestConfig) {
return MxPlatformApiFp(this.configuration).deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody, options).then((request) => request(this.axios, this.basePath));
}

/**
* Use this endpoint to download a specified statement PDF.
* @summary Download statement pdf
Expand Down Expand Up @@ -11655,6 +11911,18 @@ export class MxPlatformApi extends BaseAPI {
return MxPlatformApiFp(this.configuration).readUser(userGuid, options).then((request) => request(this.axios, this.basePath));
}

/**
* Clients use this endpoint to request an authorization code according to the parameters specified in the scope. Clients then pass this code to processors. Processor access is scoped only to the GUIDs and features specified in this request. Before requesting an authorization code which includes a member in the scope, clients must have verified that member.
* @summary Request an authorization code.
* @param {AuthorizationCodeRequestBody} authorizationCodeRequestBody The scope for the authorization code.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MxPlatformApi
*/
public requestAuthorizationCode(authorizationCodeRequestBody: AuthorizationCodeRequestBody, options?: AxiosRequestConfig) {
return MxPlatformApiFp(this.configuration).requestAuthorizationCode(authorizationCodeRequestBody, options).then((request) => request(this.axios, this.basePath));
}

/**
* This endpoint will return a URL for an embeddable version of MX Connect.
* @summary Request connect widget url
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.12.0
npmVersion: 0.13.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.12.0",
"version": "0.13.0",
"description": "A Node library for the MX Platform API.",
"author": "MX",
"keywords": [
Expand Down

0 comments on commit b509352

Please sign in to comment.