code: function (params) {
        console.log('ecInterface.paymentplan.getAll');
  
        return this.request({
          url: this._buildUri(this.uri, 'all'),
          method: corbel.request.method.GET,
          query: params ? corbel.utils.serializeParams(params) : null
        });
      }
docs: Gets payment plans paginated, this endpoint is only for admins
  
  @method
  @memberOf corbel.Ec.PaymentPlanBuilder
  @param {Object} params                 The params filter
  @param {Integer} params.api:pageSize   Number of result returned in the page (>0 , default: 10)
  @param {String} params.api:query       A search query expressed in silkroad query language
  @param {Integer} params.api:page       The page to be returned. Pages are zero-indexed (>0, default:0)
  @param {String} params.api:sort        Results orders. JSON with field to order and direction, asc or desc
  
  @return {Promise}        Q promise that resolves to a Payment {Object} or rejects with a {@link SilkRoadError}