/** * LV2Rewards service. * @module api/LV2RewardsApi */ export default class LV2RewardsApi { /** * Constructs a new LV2RewardsApi. * @alias LV2RewardsApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ constructor(apiClient?: any); apiClient: any; /** * Callback function to receive the result of the getReward operation. * @callback getRewardCallback * @param {Error|null} error Error object if failed, null otherwise. * @param {V2LoyaltiesRewardsGetResponseBody} [data] The data returned by the service call. * @param {Object} [response] Full response object if successful. */ /** * Get reward by ID * Returns a single reward by its ID. * @param {String} rewardId Identifies the reward. Format lrew_[a-f0-9]+. * @param {getRewardCallback} [callback] The callback function, accepting three arguments: error, data, response * data is of type: {@link V2LoyaltiesRewardsGetResponseBody} * @returns {Promise<(V2LoyaltiesRewardsGetResponseBody | undefined)>} Depending on whether the `callback` parameter is provided, the promise will resolve with a `V2LoyaltiesRewardsGetResponseBody` object or with `undefined`. */ getReward(rewardId: string, callback?: (error: Error | null, data?: V2LoyaltiesRewardsGetResponseBody, response?: any) => any): Promise<(V2LoyaltiesRewardsGetResponseBody | undefined)>; } import V2LoyaltiesRewardsGetResponseBody from '../model/V2LoyaltiesRewardsGetResponseBody';