class KPM::Account
def fetch_export_data(account_id)
def fetch_export_data(account_id) KillBillClient.url = @killbill_url options = { username: @killbill_user, password: @killbill_password, api_key: @killbill_api_key, api_secret: @killbill_api_secret } begin account_data = KillBillClient::Model::Export.find_by_account_id(account_id, 'KPM', options) rescue StandardError raise Interrupt, 'Account id not found' end account_data end