(subscriptionId: string)
| 97 | } |
| 98 | |
| 99 | export function reactivateSubscription(subscriptionId: string) { |
| 100 | return polar.subscriptions.update({ |
| 101 | id: subscriptionId, |
| 102 | subscriptionUpdate: { |
| 103 | cancelAtPeriodEnd: false, |
| 104 | }, |
| 105 | }); |
| 106 | } |
| 107 | |
| 108 | export function changeSubscription(subscriptionId: string, productId: string) { |
| 109 | return polar.subscriptions.update({ |