discourse-subscriptions/assets/javascripts/discourse/models/subscription.js.es6

15 lines
288 B
Plaintext
Raw Normal View History

2019-10-17 05:34:26 -04:00
import { ajax } from "discourse/lib/ajax";
const Subscription = Discourse.Model.extend({
save() {
const data = {
customer: this.customer,
plan: this.plan
};
return ajax("/patrons/subscriptions", { method: "post", data });
}
});
export default Subscription;