| 49 | module.exports = (SubscriptionView = (function () { |
| 50 | SubscriptionView = class SubscriptionView extends RootView { |
| 51 | static initClass () { |
| 52 | this.prototype.id = 'subscription-view' |
| 53 | this.prototype.template = template |
| 54 | |
| 55 | this.prototype.events = { |
| 56 | 'click .start-subscription-button': 'onClickStartSubscription', |
| 57 | 'click .end-subscription-button': 'onClickEndSubscription', |
| 58 | 'click .cancel-end-subscription-button': 'onClickCancelEndSubscription', |
| 59 | 'click .confirm-end-subscription-button': 'onClickConfirmEndSubscription', |
| 60 | 'click .recipients-subscribe-button': 'onClickRecipientsSubscribe', |
| 61 | 'click .confirm-recipient-unsubscribe-button': 'onClickRecipientConfirmUnsubscribe', |
| 62 | 'click .recipient-unsubscribe-button': 'onClickRecipientUnsubscribe' |
| 63 | } |
| 64 | |
| 65 | this.prototype.subscriptions = { |
| 66 | 'subscribe-modal:subscribed': 'onSubscribed', |
| 67 | 'stripe:received-token': 'onStripeReceivedToken' |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | constructor (options) { |
| 72 | super(options) |