From 8119aca40d3afad5c53bfb53a8f6a5ab37943405 Mon Sep 17 00:00:00 2001 From: devexperience Date: Wed, 19 Apr 2023 17:02:11 +0000 Subject: [PATCH] Generated version 0.13.0 This pull request was automatically generated by a GitHub Action to generate version 0.13.0 of this library. --- api.ts | 268 +++++++++++++++++++++++++++++++++++++++++++++ openapi/config.yml | 2 +- package.json | 2 +- 3 files changed, 270 insertions(+), 2 deletions(-) diff --git a/api.ts b/api.ts index 4be9d5c..598ca59 100644 --- a/api.ts +++ b/api.ts @@ -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} + * @memberof AuthorizationCodeResponseBody + */ + 'authorization_code'?: Array; +} /** * * @export @@ -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 @@ -3881,6 +3997,12 @@ export interface WidgetRequest { * @memberof WidgetRequest */ 'current_member_guid'?: string; + /** + * + * @type {boolean} + * @memberof WidgetRequest + */ + 'disable_background_agg'?: boolean; /** * * @type {boolean} @@ -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 => { + // 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 @@ -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 => { + // 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 @@ -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> { + 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 @@ -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> { + 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 @@ -9737,6 +9961,16 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas deleteUser(userGuid: string, options?: any): AxiosPromise { 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 { + return localVarFp.deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody, options).then((request) => request(axios, basePath)); + }, /** * Use this endpoint to download a specified statement PDF. * @summary Download statement pdf @@ -10406,6 +10640,16 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas readUser(userGuid: string, options?: any): AxiosPromise { 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 { + 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 @@ -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 @@ -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 diff --git a/openapi/config.yml b/openapi/config.yml index 7aa8df9..8006685 100644 --- a/openapi/config.yml +++ b/openapi/config.yml @@ -1,4 +1,4 @@ --- npmName: mx-platform-node -npmVersion: 0.12.0 +npmVersion: 0.13.0 supportsES6: true diff --git a/package.json b/package.json index 2b9986a..0f171e5 100644 --- a/package.json +++ b/package.json @@ -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": [