braintree
Version:
A library for integrating with Braintree.
40 lines (24 loc) • 1.37 kB
JavaScript
//@ sourceMappingURL=subscription_search.map
// Generated by CoffeeScript 1.6.1
var AdvancedSearch, Subscription, SubscriptionSearch,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
AdvancedSearch = require('./advanced_search').AdvancedSearch;
Subscription = require('./subscription').Subscription;
SubscriptionSearch = (function(_super) {
__extends(SubscriptionSearch, _super);
function SubscriptionSearch() {
return SubscriptionSearch.__super__.constructor.apply(this, arguments);
}
SubscriptionSearch.multipleValueField("inTrialPeriod");
SubscriptionSearch.multipleValueField("ids");
SubscriptionSearch.textFields("id", "transactionId");
SubscriptionSearch.multipleValueOrTextField("planId");
SubscriptionSearch.multipleValueField("status", {
"allows": Subscription.Status.All()
});
SubscriptionSearch.multipleValueField("merchantAccountId");
SubscriptionSearch.rangeFields("price", "daysPastDue", "billingCyclesRemaining", "nextBillingDate");
return SubscriptionSearch;
})(AdvancedSearch);
exports.SubscriptionSearch = SubscriptionSearch;