Skip to content

Commit b509352

Browse files
authored
Merge pull request #44 from mxenabled/openapi-generator-0.13.0
Generated version 0.13.0
2 parents 44996ab + 8119aca commit b509352

3 files changed

Lines changed: 270 additions & 2 deletions

File tree

api.ts

Lines changed: 268 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,58 @@ export interface AccountsResponseBody {
558558
*/
559559
'pagination'?: PaginationResponse;
560560
}
561+
/**
562+
*
563+
* @export
564+
* @interface AuthorizationCodeRequest
565+
*/
566+
export interface AuthorizationCodeRequest {
567+
/**
568+
*
569+
* @type {string}
570+
* @memberof AuthorizationCodeRequest
571+
*/
572+
'scope'?: string | null;
573+
}
574+
/**
575+
*
576+
* @export
577+
* @interface AuthorizationCodeRequestBody
578+
*/
579+
export interface AuthorizationCodeRequestBody {
580+
/**
581+
*
582+
* @type {AuthorizationCodeRequest}
583+
* @memberof AuthorizationCodeRequestBody
584+
*/
585+
'authorization_code'?: AuthorizationCodeRequest;
586+
}
587+
/**
588+
*
589+
* @export
590+
* @interface AuthorizationCodeResponse
591+
*/
592+
export interface AuthorizationCodeResponse {
593+
/**
594+
*
595+
* @type {string}
596+
* @memberof AuthorizationCodeResponse
597+
*/
598+
'code'?: string | null;
599+
}
600+
/**
601+
*
602+
* @export
603+
* @interface AuthorizationCodeResponseBody
604+
*/
605+
export interface AuthorizationCodeResponseBody {
606+
/**
607+
*
608+
* @type {Array<AuthorizationCodeResponse>}
609+
* @memberof AuthorizationCodeResponseBody
610+
*/
611+
'authorization_code'?: Array<AuthorizationCodeResponse>;
612+
}
561613
/**
562614
*
563615
* @export
@@ -2885,6 +2937,70 @@ export interface PaginationResponse {
28852937
*/
28862938
'total_pages'?: number;
28872939
}
2940+
/**
2941+
*
2942+
* @export
2943+
* @interface PaymentProcessorAuthorizationCodeRequest
2944+
*/
2945+
export interface PaymentProcessorAuthorizationCodeRequest {
2946+
/**
2947+
*
2948+
* @type {string}
2949+
* @memberof PaymentProcessorAuthorizationCodeRequest
2950+
*/
2951+
'account_guid'?: string | null;
2952+
/**
2953+
*
2954+
* @type {string}
2955+
* @memberof PaymentProcessorAuthorizationCodeRequest
2956+
*/
2957+
'member_guid'?: string | null;
2958+
/**
2959+
*
2960+
* @type {string}
2961+
* @memberof PaymentProcessorAuthorizationCodeRequest
2962+
*/
2963+
'user_guid'?: string | null;
2964+
}
2965+
/**
2966+
*
2967+
* @export
2968+
* @interface PaymentProcessorAuthorizationCodeRequestBody
2969+
*/
2970+
export interface PaymentProcessorAuthorizationCodeRequestBody {
2971+
/**
2972+
*
2973+
* @type {PaymentProcessorAuthorizationCodeRequest}
2974+
* @memberof PaymentProcessorAuthorizationCodeRequestBody
2975+
*/
2976+
'payment_processor_authorization_code'?: PaymentProcessorAuthorizationCodeRequest;
2977+
}
2978+
/**
2979+
*
2980+
* @export
2981+
* @interface PaymentProcessorAuthorizationCodeResponse
2982+
*/
2983+
export interface PaymentProcessorAuthorizationCodeResponse {
2984+
/**
2985+
*
2986+
* @type {string}
2987+
* @memberof PaymentProcessorAuthorizationCodeResponse
2988+
*/
2989+
'authorization_code'?: string | null;
2990+
}
2991+
/**
2992+
*
2993+
* @export
2994+
* @interface PaymentProcessorAuthorizationCodeResponseBody
2995+
*/
2996+
export interface PaymentProcessorAuthorizationCodeResponseBody {
2997+
/**
2998+
*
2999+
* @type {PaymentProcessorAuthorizationCodeResponse}
3000+
* @memberof PaymentProcessorAuthorizationCodeResponseBody
3001+
*/
3002+
'payment_processor_authorization_code'?: PaymentProcessorAuthorizationCodeResponse;
3003+
}
28883004
/**
28893005
*
28903006
* @export
@@ -3881,6 +3997,12 @@ export interface WidgetRequest {
38813997
* @memberof WidgetRequest
38823998
*/
38833999
'current_member_guid'?: string;
4000+
/**
4001+
*
4002+
* @type {boolean}
4003+
* @memberof WidgetRequest
4004+
*/
4005+
'disable_background_agg'?: boolean;
38844006
/**
38854007
*
38864008
* @type {boolean}
@@ -4874,6 +4996,46 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
48744996
options: localVarRequestOptions,
48754997
};
48764998
},
4999+
/**
5000+
* (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.
5001+
* @summary (Deprecated) Request an authorization code.
5002+
* @param {PaymentProcessorAuthorizationCodeRequestBody} paymentProcessorAuthorizationCodeRequestBody The scope for the authorization code.
5003+
* @param {*} [options] Override http request option.
5004+
* @throws {RequiredError}
5005+
*/
5006+
deprecatedRequestPaymentProcessorAuthorizationCode: async (paymentProcessorAuthorizationCodeRequestBody: PaymentProcessorAuthorizationCodeRequestBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5007+
// verify required parameter 'paymentProcessorAuthorizationCodeRequestBody' is not null or undefined
5008+
assertParamExists('deprecatedRequestPaymentProcessorAuthorizationCode', 'paymentProcessorAuthorizationCodeRequestBody', paymentProcessorAuthorizationCodeRequestBody)
5009+
const localVarPath = `/payment_processor_authorization_code`;
5010+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
5011+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5012+
let baseOptions;
5013+
if (configuration) {
5014+
baseOptions = configuration.baseOptions;
5015+
}
5016+
5017+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5018+
const localVarHeaderParameter = {} as any;
5019+
const localVarQueryParameter = {} as any;
5020+
5021+
// authentication basicAuth required
5022+
// http basic authentication required
5023+
setBasicAuthToObject(localVarRequestOptions, configuration)
5024+
5025+
5026+
5027+
localVarHeaderParameter['Content-Type'] = 'application/json';
5028+
5029+
setSearchParams(localVarUrlObj, localVarQueryParameter);
5030+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5031+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5032+
localVarRequestOptions.data = serializeDataIfNeeded(paymentProcessorAuthorizationCodeRequestBody, localVarRequestOptions, configuration)
5033+
5034+
return {
5035+
url: toPathString(localVarUrlObj),
5036+
options: localVarRequestOptions,
5037+
};
5038+
},
48775039
/**
48785040
* Use this endpoint to download a specified statement PDF.
48795041
* @summary Download statement pdf
@@ -7528,6 +7690,46 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
75287690
options: localVarRequestOptions,
75297691
};
75307692
},
7693+
/**
7694+
* 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.
7695+
* @summary Request an authorization code.
7696+
* @param {AuthorizationCodeRequestBody} authorizationCodeRequestBody The scope for the authorization code.
7697+
* @param {*} [options] Override http request option.
7698+
* @throws {RequiredError}
7699+
*/
7700+
requestAuthorizationCode: async (authorizationCodeRequestBody: AuthorizationCodeRequestBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7701+
// verify required parameter 'authorizationCodeRequestBody' is not null or undefined
7702+
assertParamExists('requestAuthorizationCode', 'authorizationCodeRequestBody', authorizationCodeRequestBody)
7703+
const localVarPath = `/authorization_code`;
7704+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
7705+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7706+
let baseOptions;
7707+
if (configuration) {
7708+
baseOptions = configuration.baseOptions;
7709+
}
7710+
7711+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7712+
const localVarHeaderParameter = {} as any;
7713+
const localVarQueryParameter = {} as any;
7714+
7715+
// authentication basicAuth required
7716+
// http basic authentication required
7717+
setBasicAuthToObject(localVarRequestOptions, configuration)
7718+
7719+
7720+
7721+
localVarHeaderParameter['Content-Type'] = 'application/json';
7722+
7723+
setSearchParams(localVarUrlObj, localVarQueryParameter);
7724+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7725+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7726+
localVarRequestOptions.data = serializeDataIfNeeded(authorizationCodeRequestBody, localVarRequestOptions, configuration)
7727+
7728+
return {
7729+
url: toPathString(localVarUrlObj),
7730+
options: localVarRequestOptions,
7731+
};
7732+
},
75317733
/**
75327734
* This endpoint will return a URL for an embeddable version of MX Connect.
75337735
* @summary Request connect widget url
@@ -8567,6 +8769,17 @@ export const MxPlatformApiFp = function(configuration?: Configuration) {
85678769
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(userGuid, options);
85688770
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
85698771
},
8772+
/**
8773+
* (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.
8774+
* @summary (Deprecated) Request an authorization code.
8775+
* @param {PaymentProcessorAuthorizationCodeRequestBody} paymentProcessorAuthorizationCodeRequestBody The scope for the authorization code.
8776+
* @param {*} [options] Override http request option.
8777+
* @throws {RequiredError}
8778+
*/
8779+
async deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody: PaymentProcessorAuthorizationCodeRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentProcessorAuthorizationCodeResponseBody>> {
8780+
const localVarAxiosArgs = await localVarAxiosParamCreator.deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody, options);
8781+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8782+
},
85708783
/**
85718784
* Use this endpoint to download a specified statement PDF.
85728785
* @summary Download statement pdf
@@ -9291,6 +9504,17 @@ export const MxPlatformApiFp = function(configuration?: Configuration) {
92919504
const localVarAxiosArgs = await localVarAxiosParamCreator.readUser(userGuid, options);
92929505
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
92939506
},
9507+
/**
9508+
* 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.
9509+
* @summary Request an authorization code.
9510+
* @param {AuthorizationCodeRequestBody} authorizationCodeRequestBody The scope for the authorization code.
9511+
* @param {*} [options] Override http request option.
9512+
* @throws {RequiredError}
9513+
*/
9514+
async requestAuthorizationCode(authorizationCodeRequestBody: AuthorizationCodeRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizationCodeResponseBody>> {
9515+
const localVarAxiosArgs = await localVarAxiosParamCreator.requestAuthorizationCode(authorizationCodeRequestBody, options);
9516+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9517+
},
92949518
/**
92959519
* This endpoint will return a URL for an embeddable version of MX Connect.
92969520
* @summary Request connect widget url
@@ -9737,6 +9961,16 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas
97379961
deleteUser(userGuid: string, options?: any): AxiosPromise<void> {
97389962
return localVarFp.deleteUser(userGuid, options).then((request) => request(axios, basePath));
97399963
},
9964+
/**
9965+
* (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.
9966+
* @summary (Deprecated) Request an authorization code.
9967+
* @param {PaymentProcessorAuthorizationCodeRequestBody} paymentProcessorAuthorizationCodeRequestBody The scope for the authorization code.
9968+
* @param {*} [options] Override http request option.
9969+
* @throws {RequiredError}
9970+
*/
9971+
deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody: PaymentProcessorAuthorizationCodeRequestBody, options?: any): AxiosPromise<PaymentProcessorAuthorizationCodeResponseBody> {
9972+
return localVarFp.deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody, options).then((request) => request(axios, basePath));
9973+
},
97409974
/**
97419975
* Use this endpoint to download a specified statement PDF.
97429976
* @summary Download statement pdf
@@ -10406,6 +10640,16 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas
1040610640
readUser(userGuid: string, options?: any): AxiosPromise<UserResponseBody> {
1040710641
return localVarFp.readUser(userGuid, options).then((request) => request(axios, basePath));
1040810642
},
10643+
/**
10644+
* 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.
10645+
* @summary Request an authorization code.
10646+
* @param {AuthorizationCodeRequestBody} authorizationCodeRequestBody The scope for the authorization code.
10647+
* @param {*} [options] Override http request option.
10648+
* @throws {RequiredError}
10649+
*/
10650+
requestAuthorizationCode(authorizationCodeRequestBody: AuthorizationCodeRequestBody, options?: any): AxiosPromise<AuthorizationCodeResponseBody> {
10651+
return localVarFp.requestAuthorizationCode(authorizationCodeRequestBody, options).then((request) => request(axios, basePath));
10652+
},
1040910653
/**
1041010654
* This endpoint will return a URL for an embeddable version of MX Connect.
1041110655
* @summary Request connect widget url
@@ -10876,6 +11120,18 @@ export class MxPlatformApi extends BaseAPI {
1087611120
return MxPlatformApiFp(this.configuration).deleteUser(userGuid, options).then((request) => request(this.axios, this.basePath));
1087711121
}
1087811122

11123+
/**
11124+
* (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.
11125+
* @summary (Deprecated) Request an authorization code.
11126+
* @param {PaymentProcessorAuthorizationCodeRequestBody} paymentProcessorAuthorizationCodeRequestBody The scope for the authorization code.
11127+
* @param {*} [options] Override http request option.
11128+
* @throws {RequiredError}
11129+
* @memberof MxPlatformApi
11130+
*/
11131+
public deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody: PaymentProcessorAuthorizationCodeRequestBody, options?: AxiosRequestConfig) {
11132+
return MxPlatformApiFp(this.configuration).deprecatedRequestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody, options).then((request) => request(this.axios, this.basePath));
11133+
}
11134+
1087911135
/**
1088011136
* Use this endpoint to download a specified statement PDF.
1088111137
* @summary Download statement pdf
@@ -11655,6 +11911,18 @@ export class MxPlatformApi extends BaseAPI {
1165511911
return MxPlatformApiFp(this.configuration).readUser(userGuid, options).then((request) => request(this.axios, this.basePath));
1165611912
}
1165711913

11914+
/**
11915+
* 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.
11916+
* @summary Request an authorization code.
11917+
* @param {AuthorizationCodeRequestBody} authorizationCodeRequestBody The scope for the authorization code.
11918+
* @param {*} [options] Override http request option.
11919+
* @throws {RequiredError}
11920+
* @memberof MxPlatformApi
11921+
*/
11922+
public requestAuthorizationCode(authorizationCodeRequestBody: AuthorizationCodeRequestBody, options?: AxiosRequestConfig) {
11923+
return MxPlatformApiFp(this.configuration).requestAuthorizationCode(authorizationCodeRequestBody, options).then((request) => request(this.axios, this.basePath));
11924+
}
11925+
1165811926
/**
1165911927
* This endpoint will return a URL for an embeddable version of MX Connect.
1166011928
* @summary Request connect widget url

openapi/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
npmName: mx-platform-node
3-
npmVersion: 0.12.0
3+
npmVersion: 0.13.0
44
supportsES6: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mx-platform-node",
3-
"version": "0.12.0",
3+
"version": "0.13.0",
44
"description": "A Node library for the MX Platform API.",
55
"author": "MX",
66
"keywords": [

0 commit comments

Comments
 (0)