Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Insurer from './insurer';
- import request from 'node-fetch';
- export default class Insurer1 extends Insurer {
- static get acceptableTypes() {
- return ['travel'];
- }
- prepareParams() {
- return 'preparedParams';
- }
- request(callback) {
- return request('insurerApiUrl', this.prepareParams)
- .then(text => callback(this.parseAnswer(text)))
- .catch(error => console.log('INSURER1 ERR', error));
- }
- parseAnswer(response) {
- return 'parsedAnswer';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement