(subscriptionId: string, productId: string)
| 106 | } |
| 107 | |
| 108 | export function changeSubscription(subscriptionId: string, productId: string) { |
| 109 | return polar.subscriptions.update({ |
| 110 | id: subscriptionId, |
| 111 | subscriptionUpdate: { |
| 112 | productId, |
| 113 | prorationBehavior: 'invoice', |
| 114 | }, |
| 115 | }); |
| 116 | } |