From 22891da2a09f4a34e2e549f42bfdc3855d5afbc8 Mon Sep 17 00:00:00 2001 From: devexperience Date: Tue, 13 Aug 2024 16:26:34 +0000 Subject: [PATCH] Generated version 0.36.0 This pull request was automatically generated by a GitHub Action to generate version 0.36.0 of this library. --- api.ts | 582 +++++++++++++++++++++++++++++++++++++++++++++ openapi/config.yml | 2 +- package.json | 2 +- 3 files changed, 584 insertions(+), 2 deletions(-) diff --git a/api.ts b/api.ts index a8dca02..c6872b6 100644 --- a/api.ts +++ b/api.ts @@ -1398,6 +1398,110 @@ export interface CredentialsResponseBody { */ 'pagination'?: PaginationResponse; } +/** + * + * @export + * @interface CreditCardProduct + */ +export interface CreditCardProduct { + /** + * + * @type {any} + * @memberof CreditCardProduct + */ + 'annual_fee'?: any; + /** + * + * @type {any} + * @memberof CreditCardProduct + */ + 'duration_of_introductory_rate_on_balance_transfer'?: any; + /** + * + * @type {any} + * @memberof CreditCardProduct + */ + 'duration_of_introductory_rate_on_purchases'?: any; + /** + * + * @type {any} + * @memberof CreditCardProduct + */ + 'guid'?: any; + /** + * + * @type {boolean} + * @memberof CreditCardProduct + */ + 'has_cashback_rewards'?: boolean; + /** + * + * @type {boolean} + * @memberof CreditCardProduct + */ + 'has_other_rewards'?: boolean; + /** + * + * @type {boolean} + * @memberof CreditCardProduct + */ + 'has_travel_rewards'?: boolean; + /** + * + * @type {boolean} + * @memberof CreditCardProduct + */ + 'has_zero_introductory_annual_fee'?: boolean; + /** + * + * @type {boolean} + * @memberof CreditCardProduct + */ + 'has_zero_percent_introductory_rate'?: boolean; + /** + * + * @type {boolean} + * @memberof CreditCardProduct + */ + 'has_zero_percent_introductory_rate_on_balance_transfer'?: boolean; + /** + * + * @type {boolean} + * @memberof CreditCardProduct + */ + 'financial_institution'?: boolean; + /** + * + * @type {boolean} + * @memberof CreditCardProduct + */ + 'is_accepting_applications'?: boolean; + /** + * + * @type {boolean} + * @memberof CreditCardProduct + */ + 'is_small_business_card'?: boolean; + /** + * + * @type {string} + * @memberof CreditCardProduct + */ + 'name'?: string; +} +/** + * + * @export + * @interface CreditCardProductResponse + */ +export interface CreditCardProductResponse { + /** + * + * @type {CreditCardProduct} + * @memberof CreditCardProductResponse + */ + 'reward'?: CreditCardProduct; +} /** * * @export @@ -3573,6 +3677,172 @@ export interface PaymentProcessorAuthorizationCodeResponseBody { */ 'payment_processor_authorization_code'?: PaymentProcessorAuthorizationCodeResponse; } +/** + * + * @export + * @interface RewardResponse + */ +export interface RewardResponse { + /** + * + * @type {string} + * @memberof RewardResponse + */ + 'account_guid'?: string; + /** + * + * @type {string} + * @memberof RewardResponse + */ + 'balance_type'?: string; + /** + * + * @type {number} + * @memberof RewardResponse + */ + 'balance'?: number; + /** + * + * @type {string} + * @memberof RewardResponse + */ + 'created_at'?: string; + /** + * + * @type {string} + * @memberof RewardResponse + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof RewardResponse + */ + 'expires_on'?: string; + /** + * + * @type {string} + * @memberof RewardResponse + */ + 'guid'?: string; + /** + * + * @type {string} + * @memberof RewardResponse + */ + 'member_guid'?: string; + /** + * + * @type {string} + * @memberof RewardResponse + */ + 'unit_type'?: string; + /** + * + * @type {string} + * @memberof RewardResponse + */ + 'user_guid'?: string; +} +/** + * + * @export + * @interface RewardResponseBody + */ +export interface RewardResponseBody { + /** + * + * @type {RewardResponse} + * @memberof RewardResponseBody + */ + 'reward'?: RewardResponse; +} +/** + * + * @export + * @interface RewardsResponse + */ +export interface RewardsResponse { + /** + * + * @type {string} + * @memberof RewardsResponse + */ + 'account_guid'?: string; + /** + * + * @type {string} + * @memberof RewardsResponse + */ + 'balance_type'?: string; + /** + * + * @type {number} + * @memberof RewardsResponse + */ + 'balance'?: number; + /** + * + * @type {string} + * @memberof RewardsResponse + */ + 'created_at'?: string; + /** + * + * @type {string} + * @memberof RewardsResponse + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof RewardsResponse + */ + 'expires_on'?: string; + /** + * + * @type {string} + * @memberof RewardsResponse + */ + 'guid'?: string; + /** + * + * @type {string} + * @memberof RewardsResponse + */ + 'member_guid'?: string; + /** + * + * @type {string} + * @memberof RewardsResponse + */ + 'unit_type'?: string; + /** + * + * @type {string} + * @memberof RewardsResponse + */ + 'user_guid'?: string; +} +/** + * + * @export + * @interface RewardsResponseBody + */ +export interface RewardsResponseBody { + /** + * + * @type {Array} + * @memberof RewardsResponseBody + */ + 'rewards'?: Array; + /** + * + * @type {PaginationResponse} + * @memberof RewardsResponseBody + */ + 'pagination'?: PaginationResponse; +} /** * * @export @@ -6629,6 +6899,44 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur options: localVarRequestOptions, }; }, + /** + * This endpoint returns the specified `credit_card_product` according to the unique GUID. + * @summary Read a Credit Card Product + * @param {string} creditCardProductGuid The required `credit_card_product_guid` can be found on the `account` object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + creditCard: async (creditCardProductGuid: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'creditCardProductGuid' is not null or undefined + assertParamExists('creditCard', 'creditCardProductGuid', creditCardProductGuid) + const localVarPath = `/credit_card_products/{credit_card_product_guid}` + .replace(`{${"credit_card_product_guid"}}`, encodeURIComponent(String(creditCardProductGuid))); + // 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: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication basicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Use this endpoint to delete a specific custom category according to its unique GUID. The API will respond with an empty object and a status of `204 No Content`. * @summary Delete category @@ -7262,6 +7570,48 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Calling this endpoint initiates an aggregation-type event which will gather the member\'s rewards information, as well as account and transaction information. Rewards data is also gathered with daily background aggregations. + * @summary Fetch Rewards + * @param {string} userGuid The unique id for a `user`. + * @param {string} memberGuid The unique identifier for the member. Defined by MX. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchRewards: async (userGuid: string, memberGuid: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'userGuid' is not null or undefined + assertParamExists('fetchRewards', 'userGuid', userGuid) + // verify required parameter 'memberGuid' is not null or undefined + assertParamExists('fetchRewards', 'memberGuid', memberGuid) + const localVarPath = `/users/{user_guid}/members/{member_guid}/fetch_rewards` + .replace(`{${"user_guid"}}`, encodeURIComponent(String(userGuid))) + .replace(`{${"member_guid"}}`, encodeURIComponent(String(memberGuid))); + // 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) + + + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -8480,6 +8830,48 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Use this endpoint to list all the `rewards` associated with a specified `member`. + * @summary List Rewards + * @param {string} userGuid The unique id for a `user`. + * @param {string} memberGuid The unique identifier for the member. Defined by MX. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listRewards: async (userGuid: string, memberGuid: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'userGuid' is not null or undefined + assertParamExists('listRewards', 'userGuid', userGuid) + // verify required parameter 'memberGuid' is not null or undefined + assertParamExists('listRewards', 'memberGuid', memberGuid) + const localVarPath = `/users/{user_guid}/members/{member_guid}/rewards` + .replace(`{${"user_guid"}}`, encodeURIComponent(String(userGuid))) + .replace(`{${"member_guid"}}`, encodeURIComponent(String(memberGuid))); + // 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: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication basicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -9635,6 +10027,52 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Use this endpoint to read a specific `reward` based on its unique GUID.. + * @summary Read Reward + * @param {string} userGuid The unique id for a `user`. + * @param {string} memberGuid The unique identifier for the member. Defined by MX. + * @param {string} rewardGuid The unique identifier for the rewards. Defined by MX. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + readRewards: async (userGuid: string, memberGuid: string, rewardGuid: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'userGuid' is not null or undefined + assertParamExists('readRewards', 'userGuid', userGuid) + // verify required parameter 'memberGuid' is not null or undefined + assertParamExists('readRewards', 'memberGuid', memberGuid) + // verify required parameter 'rewardGuid' is not null or undefined + assertParamExists('readRewards', 'rewardGuid', rewardGuid) + const localVarPath = `/users/{user_guid}/members/{member_guid}/rewards/{reward_guid}` + .replace(`{${"user_guid"}}`, encodeURIComponent(String(userGuid))) + .replace(`{${"member_guid"}}`, encodeURIComponent(String(memberGuid))) + .replace(`{${"reward_guid"}}`, encodeURIComponent(String(rewardGuid))); + // 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: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication basicAuth required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -10928,6 +11366,17 @@ export const MxPlatformApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(userCreateRequestBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * This endpoint returns the specified `credit_card_product` according to the unique GUID. + * @summary Read a Credit Card Product + * @param {string} creditCardProductGuid The required `credit_card_product_guid` can be found on the `account` object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async creditCard(creditCardProductGuid: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.creditCard(creditCardProductGuid, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * Use this endpoint to delete a specific custom category according to its unique GUID. The API will respond with an empty object and a status of `204 No Content`. * @summary Delete category @@ -11110,6 +11559,18 @@ export const MxPlatformApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.extendHistory(memberGuid, userGuid, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * Calling this endpoint initiates an aggregation-type event which will gather the member\'s rewards information, as well as account and transaction information. Rewards data is also gathered with daily background aggregations. + * @summary Fetch Rewards + * @param {string} userGuid The unique id for a `user`. + * @param {string} memberGuid The unique identifier for the member. Defined by MX. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchRewards(userGuid: string, memberGuid: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchRewards(userGuid, memberGuid, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * Use this endpoint to fetch the statements associated with a particular member. * @summary Fetch statements @@ -11437,6 +11898,18 @@ export const MxPlatformApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.listMerchants(page, recordsPerPage, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * Use this endpoint to list all the `rewards` associated with a specified `member`. + * @summary List Rewards + * @param {string} userGuid The unique id for a `user`. + * @param {string} memberGuid The unique identifier for the member. Defined by MX. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listRewards(userGuid: string, memberGuid: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listRewards(userGuid, memberGuid, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * Use this endpoint to get an array of available statements. * @summary List statements by member @@ -11753,6 +12226,19 @@ export const MxPlatformApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.readMerchantLocation(merchantLocationGuid, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * Use this endpoint to read a specific `reward` based on its unique GUID.. + * @summary Read Reward + * @param {string} userGuid The unique id for a `user`. + * @param {string} memberGuid The unique identifier for the member. Defined by MX. + * @param {string} rewardGuid The unique identifier for the rewards. Defined by MX. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async readRewards(userGuid: string, memberGuid: string, rewardGuid: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.readRewards(userGuid, memberGuid, rewardGuid, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * Use this endpoint to read a JSON representation of the statement. * @summary Read statement by member @@ -12206,6 +12692,16 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas createUser(userCreateRequestBody: UserCreateRequestBody, options?: any): AxiosPromise { return localVarFp.createUser(userCreateRequestBody, options).then((request) => request(axios, basePath)); }, + /** + * This endpoint returns the specified `credit_card_product` according to the unique GUID. + * @summary Read a Credit Card Product + * @param {string} creditCardProductGuid The required `credit_card_product_guid` can be found on the `account` object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + creditCard(creditCardProductGuid: string, options?: any): AxiosPromise { + return localVarFp.creditCard(creditCardProductGuid, options).then((request) => request(axios, basePath)); + }, /** * Use this endpoint to delete a specific custom category according to its unique GUID. The API will respond with an empty object and a status of `204 No Content`. * @summary Delete category @@ -12373,6 +12869,17 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas extendHistory(memberGuid: string, userGuid: string, options?: any): AxiosPromise { return localVarFp.extendHistory(memberGuid, userGuid, options).then((request) => request(axios, basePath)); }, + /** + * Calling this endpoint initiates an aggregation-type event which will gather the member\'s rewards information, as well as account and transaction information. Rewards data is also gathered with daily background aggregations. + * @summary Fetch Rewards + * @param {string} userGuid The unique id for a `user`. + * @param {string} memberGuid The unique identifier for the member. Defined by MX. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchRewards(userGuid: string, memberGuid: string, options?: any): AxiosPromise { + return localVarFp.fetchRewards(userGuid, memberGuid, options).then((request) => request(axios, basePath)); + }, /** * Use this endpoint to fetch the statements associated with a particular member. * @summary Fetch statements @@ -12676,6 +13183,17 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas listMerchants(page?: number, recordsPerPage?: number, options?: any): AxiosPromise { return localVarFp.listMerchants(page, recordsPerPage, options).then((request) => request(axios, basePath)); }, + /** + * Use this endpoint to list all the `rewards` associated with a specified `member`. + * @summary List Rewards + * @param {string} userGuid The unique id for a `user`. + * @param {string} memberGuid The unique identifier for the member. Defined by MX. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listRewards(userGuid: string, memberGuid: string, options?: any): AxiosPromise { + return localVarFp.listRewards(userGuid, memberGuid, options).then((request) => request(axios, basePath)); + }, /** * Use this endpoint to get an array of available statements. * @summary List statements by member @@ -12968,6 +13486,18 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas readMerchantLocation(merchantLocationGuid: string, options?: any): AxiosPromise { return localVarFp.readMerchantLocation(merchantLocationGuid, options).then((request) => request(axios, basePath)); }, + /** + * Use this endpoint to read a specific `reward` based on its unique GUID.. + * @summary Read Reward + * @param {string} userGuid The unique id for a `user`. + * @param {string} memberGuid The unique identifier for the member. Defined by MX. + * @param {string} rewardGuid The unique identifier for the rewards. Defined by MX. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + readRewards(userGuid: string, memberGuid: string, rewardGuid: string, options?: any): AxiosPromise { + return localVarFp.readRewards(userGuid, memberGuid, rewardGuid, options).then((request) => request(axios, basePath)); + }, /** * Use this endpoint to read a JSON representation of the statement. * @summary Read statement by member @@ -13421,6 +13951,18 @@ export class MxPlatformApi extends BaseAPI { return MxPlatformApiFp(this.configuration).createUser(userCreateRequestBody, options).then((request) => request(this.axios, this.basePath)); } + /** + * This endpoint returns the specified `credit_card_product` according to the unique GUID. + * @summary Read a Credit Card Product + * @param {string} creditCardProductGuid The required `credit_card_product_guid` can be found on the `account` object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MxPlatformApi + */ + public creditCard(creditCardProductGuid: string, options?: AxiosRequestConfig) { + return MxPlatformApiFp(this.configuration).creditCard(creditCardProductGuid, options).then((request) => request(this.axios, this.basePath)); + } + /** * Use this endpoint to delete a specific custom category according to its unique GUID. The API will respond with an empty object and a status of `204 No Content`. * @summary Delete category @@ -13618,6 +14160,19 @@ export class MxPlatformApi extends BaseAPI { return MxPlatformApiFp(this.configuration).extendHistory(memberGuid, userGuid, options).then((request) => request(this.axios, this.basePath)); } + /** + * Calling this endpoint initiates an aggregation-type event which will gather the member\'s rewards information, as well as account and transaction information. Rewards data is also gathered with daily background aggregations. + * @summary Fetch Rewards + * @param {string} userGuid The unique id for a `user`. + * @param {string} memberGuid The unique identifier for the member. Defined by MX. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MxPlatformApi + */ + public fetchRewards(userGuid: string, memberGuid: string, options?: AxiosRequestConfig) { + return MxPlatformApiFp(this.configuration).fetchRewards(userGuid, memberGuid, options).then((request) => request(this.axios, this.basePath)); + } + /** * Use this endpoint to fetch the statements associated with a particular member. * @summary Fetch statements @@ -13969,6 +14524,19 @@ export class MxPlatformApi extends BaseAPI { return MxPlatformApiFp(this.configuration).listMerchants(page, recordsPerPage, options).then((request) => request(this.axios, this.basePath)); } + /** + * Use this endpoint to list all the `rewards` associated with a specified `member`. + * @summary List Rewards + * @param {string} userGuid The unique id for a `user`. + * @param {string} memberGuid The unique identifier for the member. Defined by MX. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MxPlatformApi + */ + public listRewards(userGuid: string, memberGuid: string, options?: AxiosRequestConfig) { + return MxPlatformApiFp(this.configuration).listRewards(userGuid, memberGuid, options).then((request) => request(this.axios, this.basePath)); + } + /** * Use this endpoint to get an array of available statements. * @summary List statements by member @@ -14309,6 +14877,20 @@ export class MxPlatformApi extends BaseAPI { return MxPlatformApiFp(this.configuration).readMerchantLocation(merchantLocationGuid, options).then((request) => request(this.axios, this.basePath)); } + /** + * Use this endpoint to read a specific `reward` based on its unique GUID.. + * @summary Read Reward + * @param {string} userGuid The unique id for a `user`. + * @param {string} memberGuid The unique identifier for the member. Defined by MX. + * @param {string} rewardGuid The unique identifier for the rewards. Defined by MX. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MxPlatformApi + */ + public readRewards(userGuid: string, memberGuid: string, rewardGuid: string, options?: AxiosRequestConfig) { + return MxPlatformApiFp(this.configuration).readRewards(userGuid, memberGuid, rewardGuid, options).then((request) => request(this.axios, this.basePath)); + } + /** * Use this endpoint to read a JSON representation of the statement. * @summary Read statement by member diff --git a/openapi/config.yml b/openapi/config.yml index 6db56c1..8af76e8 100644 --- a/openapi/config.yml +++ b/openapi/config.yml @@ -1,4 +1,4 @@ --- npmName: mx-platform-node -npmVersion: 0.35.0 +npmVersion: 0.36.0 supportsES6: true diff --git a/package.json b/package.json index 33f3566..729cd90 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mx-platform-node", - "version": "0.35.0", + "version": "0.36.0", "description": "A Node library for the MX Platform API.", "author": "MX", "keywords": [