()
| 1258 | } |
| 1259 | |
| 1260 | unsubscribe () { |
| 1261 | let left |
| 1262 | const stripe = _.clone((left = this.get('stripe')) != null ? left : {}) |
| 1263 | if (!stripe.planID) { return } |
| 1264 | delete stripe.planID |
| 1265 | this.set({ stripe }) |
| 1266 | return this.patch({ headers: { 'X-Change-Plan': 'true' } }) |
| 1267 | } |
| 1268 | |
| 1269 | unsubscribeRecipient (id, options = {}) { |
| 1270 | options.url = _.result(this, 'url') + `/stripe/recipients/${id}` |
no test coverage detected