/** * LV2EarningRules service. * @module api/LV2EarningRulesApi */ export default class LV2EarningRulesApi { /** * Constructs a new LV2EarningRulesApi. * @alias LV2EarningRulesApi * @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 getEarningRule operation. * @callback getEarningRuleCallback * @param {Error|null} error Error object if failed, null otherwise. * @param {V2LoyaltiesEarningRulesGetResponseBody} [data] The data returned by the service call. * @param {Object} [response] Full response object if successful. */ /** * Get earning rule * Returns a single earning rule by its ID. * @param {String} earningRuleId Identifies the earning rule. Format lern_[a-f0-9]+. * @param {getEarningRuleCallback} [callback] The callback function, accepting three arguments: error, data, response * data is of type: {@link V2LoyaltiesEarningRulesGetResponseBody} * @returns {Promise<(V2LoyaltiesEarningRulesGetResponseBody | undefined)>} Depending on whether the `callback` parameter is provided, the promise will resolve with a `V2LoyaltiesEarningRulesGetResponseBody` object or with `undefined`. */ getEarningRule(earningRuleId: string, callback?: (error: Error | null, data?: V2LoyaltiesEarningRulesGetResponseBody, response?: any) => any): Promise<(V2LoyaltiesEarningRulesGetResponseBody | undefined)>; } import V2LoyaltiesEarningRulesGetResponseBody from '../model/V2LoyaltiesEarningRulesGetResponseBody';