dist/corbel.with-polyfills.js
function(product) {
                console.log('ecInterface.product.create', product);

                return this.request({
                    url: this._buildUri(this.uri),
                    method: corbel.request.method.POST,
                    data: product
                }).then(function(res) {
                    return corbel.Services.getLocationId(res);
                });
            }
function(product) {
                console.log('ecInterface.product.create', product);

                return this.request({
                    url: this._buildUri(this.uri),
                    method: corbel.request.method.POST,
                    data: product
                }).then(function(res) {
                    return corbel.Services.getLocationId(res);
                });
            }
function ( product ) { console . log ( 'ecInterface.product.create' , product ) ; return this . request ( { url : this . _buildUri ( this . uri ) , method : corbel . request . method . POST , data : product } ) . then ( function ( res ) { return corbel . Services . getLocationId ( res ) ; } ) ; }
Create a new product.

@method
@memberOf corbel.Ec.ProductBuilder
@param {Object} product                        Contains the data of the new product
@param {Object} product.name                   The name of the product
@param {String} product.price                  Information about price
@param {String} product.price.currency         Currency code fro the price
@param {Number} product.price.amount           The amount of the price
@param {String} product.type                   Define the type of the product, which can trigger different
behaviors
@param {String} product.href                   The resource uri
@param {Array}  product.assets                 Array with the permissions assigned to the product
@param {String} product.assets.name            Identifier of the asset
@param {String} product.assets.period          Define if the product asset has a validity in ISO8601
period format
@param {Array}  product.assets.scopes          String array with the scopes associated with the asset
@param {Array}  product.paymentPlan            Array with the service associated to the product
@param {String} product.paymentPlan.duration   Define the period of service has a validity in ISO8601 period
@param {String} product.paymentPlan.period     The data to hire the service has a validity in ISO8601
period format

@return {Promise} A promise with the id of the created loanable resources or fails with a {@link corbelError}.
Create a new product .