1 /** 2 * @author Brian Carlsen 3 * @version 1.0.0 4 * 5 * Serves as a wrapper to the MINDBODY Sale Service, providing 6 * some additional functionality. 7 * 8 * All Sale Service methods are available returning 9 * 1) An extracted result using the instance method with the same name 10 * 2) The raw array response using the instance method with the same name post-fixed with 'Response'. 11 * The array consists of: 12 * i) The object represtentation of the SOAP response 13 * ii) The raw XML SOAP response 14 * iii) The raw header info of the SOAP response 15 */ 16 17 var Promise = require( 'bluebird' ); 18 19 var mboService = require( './mbo_Service' ); 20 21 //--------------- SaleService Class --------------------- 22 23 /** 24 * Represents the MINDOBDY Sale Service. 25 * 26 * @constructor 27 * @param {string} username Username of the MINDBODY client interacting with the service. 28 * @param {string} password Password of the MINDBODY client interacting with the service. 29 * @return {mbo_SaleService} Returns the Sale Service. 30 */ 31 function mbo_SaleService( username, password ) { 32 mboService.call( this, 'SaleService', username, password ); 33 } 34 mbo_SaleService.prototype = Object.create( mboService.prototype ); 35 mbo_SaleService.prototype.constructor = mbo_SaleService; 36 37 38 module.exports = mbo_SaleService;