[{"data":1,"prerenderedAt":2625},["ShallowReactive",2],{"navigation":3,"/integrations/models/subscription":310,"/integrations/models/subscription-surround":2379,"/types/subscription/subscription.type":2388,"YTq49uuBXC":2482,"8TV5WQ6ZdM":2493,"WNdz7N1dZq":2503,"fwOwnwKca3":2523,"NqBni7ut7m":2533,"UbFYaRLxbG":2553,"/types/coupon/discount.type":2586,"/types/price/duration.type":2600,"o4YzmFMRnm":2615},[4,13,161,197,211,236,290,300],{"title":5,"_path":6,"children":7,"_id":12,"description":11},"Getting Started","/getting-started",[8],{"title":9,"_path":6,"_id":10,"description":11},"Overview","content:1.getting-started:1.index.md","Everything you need to know about integrating Churnkey with your product and billing stack.","content:1.getting-started:_dir.yml",{"title":14,"_path":15,"children":16,"_id":160},"Cancel Flows","/cancel-flows",[17,22,27,32,37,42,47,52,57,62,67,72,116,130],{"title":18,"_path":19,"_id":20,"description":21},"Quick Start Guide","/cancel-flows/quick-start-guide","content:2.cancel-flows:1.quick-start-guide.md","A 3-step guide on how to implement Cancel Flows in your website",{"title":23,"_path":24,"_id":25,"description":26},"Cancel Flow Structure","/cancel-flows/flow-configuration","content:2.cancel-flows:2.flow configuration.md","Learn about the available components that make up a Cancel Flow, from initial offers to cancellation confirmation, and how each step contributes to the overall flow.",{"title":28,"_path":29,"_id":30,"description":31},"Configuration Options","/cancel-flows/further-configuration","content:2.cancel-flows:3.further-configuration.md","Additional details for all of the following options are included below.",{"title":33,"_path":34,"_id":35,"description":36},"Custom Styling","/cancel-flows/custom-styling","content:2.cancel-flows:4.custom-styling.md","Brand your Churnkey Cancel Flow with your own CSS",{"title":38,"_path":39,"_id":40,"description":41},"Managed Email Flow","/cancel-flows/email-verified-cancel-flow","content:2.cancel-flows:6.email-verified-cancel-flow.md","Our managed email based setup takes care of customer verification for you with an email verification code.",{"title":43,"_path":44,"_id":45,"description":46},"A/B Testing","/cancel-flows/a-b-testing","content:2.cancel-flows:7.a-b-testing.md","Run controlled experiments to optimize your Cancel Flows and maximize customer retention.",{"title":48,"_path":49,"_id":50,"description":51},"Testing","/cancel-flows/cancel-flow-testing","content:2.cancel-flows:8.cancel-flow-testing.md","Ensure that your Cancel Flow is working as intended before going live.",{"title":53,"_path":54,"_id":55,"description":56},"Pause Wall","/cancel-flows/pause-wall","content:2.cancel-flows:9.pause-wall.md","Block access to your application during subscription pauses",{"title":58,"_path":59,"_id":60,"description":61},"Click-to-Cancel Compliance","/cancel-flows/click-to-cancel","content:2.cancel-flows:10.click-to-cancel.md","Implement automatic compliance with global subscription cancellation requirements",{"title":63,"_path":64,"_id":65,"description":66},"Structured Follow-Up Questions","/cancel-flows/structured-follow-up-questions","content:2.cancel-flows:11.structured-follow-up-questions.md","Collect deeper cancellation insights and deliver targeted retention offers with a second layer of predefined follow-up options in your cancel flow survey.",{"title":68,"_path":69,"_id":70,"description":71},"Adaptive Offers","/cancel-flows/adaptive-offers","content:2.cancel-flows:adaptive-offers.md","AI-powered discount optimization that automatically finds the perfect offer for each customer",{"title":73,"_path":74,"children":75},"Analytics","/cancel-flows/analytics",[76,81,86,91,96,101,106,111],{"title":77,"_path":78,"_id":79,"description":80},"Boosted Revenue","/cancel-flows/analytics/average-boosted-revenue","content:2.cancel-flows:analytics:1.average-boosted-revenue.md","Measure the long-term value of retained subscribers",{"title":82,"_path":83,"_id":84,"description":85},"Save Rate","/cancel-flows/analytics/save-rate","content:2.cancel-flows:analytics:2.save-rate.md","The percentage of customers that your Cancel Flows saved from cancellation",{"title":87,"_path":88,"_id":89,"description":90},"Reactivation Rate","/cancel-flows/analytics/reactivation-rate","content:2.cancel-flows:analytics:3.reactivation-rate.md","The percentage of customers who pay at least one invoice after being saved",{"title":92,"_path":93,"_id":94,"description":95},"Sessions","/cancel-flows/analytics/session-outcomes","content:2.cancel-flows:analytics:4.session-outcomes.md","Track each interaction that a customer has with your Cancel Flows",{"title":97,"_path":98,"_id":99,"description":100},"Cancellation Trends","/cancel-flows/analytics/cancellation-trends","content:2.cancel-flows:analytics:5.cancellation-trends.md","Analyze and interpret the selection rates and trends for cancellation reasons in your Cancel Flows.",{"title":102,"_path":103,"_id":104,"description":105},"Feedback AI","/cancel-flows/analytics/feedback-ai","content:2.cancel-flows:analytics:6.feedback-ai.md","Transform customer feedback into actionable insights with AI-powered categorization and analysis",{"title":107,"_path":108,"_id":109,"description":110},"Response Flow","/cancel-flows/analytics/response-flow","content:2.cancel-flows:analytics:7.response-flow.md","Visualize how customers move from primary cancellation reasons to specific follow-up selections with the Sankey diagram",{"title":112,"_path":113,"_id":114,"description":115},"Response Explorer","/cancel-flows/analytics/response-explorer","content:2.cancel-flows:analytics:8.response-explorer.md","Drill into individual follow-up responses with the Treemap visualization, search, trend analysis, and MRR impact sorting",{"title":117,"_path":118,"children":119},"Multi Language Support","/cancel-flows/multi-language-support",[120,125],{"title":121,"_path":122,"_id":123,"description":124},"Manual Translations","/cancel-flows/multi-language-support/multi-language-support","content:2.cancel-flows:multi-language-support:5.multi-language-support.md","Support multiple languages.",{"title":126,"_path":127,"_id":128,"description":129},"Automatic Translations","/cancel-flows/multi-language-support/automatic-translation","content:2.cancel-flows:multi-language-support:automatic-translation.md","Enable AI-powered multilingual support for your Cancel Flows with a single toggle.",{"title":131,"_path":132,"children":133,"_id":159},"Offers","/cancel-flows/offers",[134,139,144,149,154],{"title":135,"_path":136,"_id":137,"description":138},"Discount","/cancel-flows/offers/discounts","content:2.cancel-flows:offers:discounts.md","Offer targeted subscription discounts to reduce churn and increase customer retention",{"title":140,"_path":141,"_id":142,"description":143},"Hidden Plans","/cancel-flows/offers/hidden-plans","content:2.cancel-flows:offers:hidden-plans.md","Use the Switch Subscription Plan offer to present exclusive, non-public plans to customers during cancellation",{"title":145,"_path":146,"_id":147,"description":148},"Pause Subscription","/cancel-flows/offers/pause-subscription","content:2.cancel-flows:offers:pause-subscription.md","Temporarily suspend subscription payments without canceling the service",{"title":150,"_path":151,"_id":152,"description":153},"Switch Subscription Plan","/cancel-flows/offers/switch-subscription","content:2.cancel-flows:offers:switch-subscription.md","Allow customers to change to a different subscription plan during the cancellation flow to retain them with a more suitable option",{"title":155,"_path":156,"_id":157,"description":158},"Trial Extension","/cancel-flows/offers/trial-extension","content:2.cancel-flows:offers:trial-extension.md","Extend customer trial periods to reduce churn and increase conversion rates during the critical trial-to-paid transition","content:2.cancel-flows:offers:_dir.yml","content:2.cancel-flows:_dir.yml",{"title":162,"_path":163,"children":164,"_id":196},"Payment Recovery","/failed-payment-recovery",[165,169,174,179,184,188],{"title":5,"_path":166,"_id":167,"description":168},"/failed-payment-recovery/payment-recovery","content:3.failed-payment-recovery:1.payment-recovery.md","Recover failed payment revenue, automatically.",{"title":170,"_path":171,"_id":172,"description":173},"Customize your Campaigns","/failed-payment-recovery/campaign-customization","content:3.failed-payment-recovery:2.campaign-customization.md","Customize your Payment Recovery Campaigns to match the unique needs of your individual customers.",{"title":175,"_path":176,"_id":177,"description":178},"Failed Payment Wall","/failed-payment-recovery/failed-payment-wall","content:3.failed-payment-recovery:3.failed-payment-wall.md","Block access to your application when payments fail",{"title":180,"_path":181,"_id":182,"description":183},"Billing Contact API","/failed-payment-recovery/billing-contact-api","content:3.failed-payment-recovery:4.billing-contact-api.md","Send Payment Recovery emails to multiple billing contacts",{"title":43,"_path":185,"_id":186,"description":187},"/failed-payment-recovery/ab-testing","content:3.failed-payment-recovery:5.ab-testing.md","Optimize your payment recovery campaigns through controlled experiments that maximize revenue recovery.",{"title":73,"_path":189,"children":190},"/failed-payment-recovery/analytics",[191],{"title":192,"_path":193,"_id":194,"description":195},"Overall Performance","/failed-payment-recovery/analytics/overview","content:3.failed-payment-recovery:analytics:1.overview.md","Key performance metrics for your Payment Recovery campaigns","content:3.failed-payment-recovery:_dir.yml",{"title":198,"_path":199,"children":200,"_id":210},"Reactivations","/reactivations",[201,205],{"title":5,"_path":202,"_id":203,"description":204},"/reactivations/reactivations","content:4.reactivations:1.reactivations.md","Churnkey helps you to recover unsubscribed customers with easy, customizable Reactivation Email Campaigns.",{"title":206,"_path":207,"_id":208,"description":209},"Customization","/reactivations/campaign-customization-guide","content:4.reactivations:2.campaign-customization-guide.md","Customize your Reactivation Campaigns to match the individual needs of your customers.","content:4.reactivations:_dir.yml",{"title":212,"_path":213,"children":214,"_id":235},"Data Integrations","/data-integrations",[215,220,225,230],{"title":216,"_path":217,"_id":218,"description":219},"Data API","/data-integrations/data-api","content:6.data-integrations:1.data-api.md","Access your data through our API.",{"title":221,"_path":222,"_id":223,"description":224},"Slack notifications","/data-integrations/slack","content:6.data-integrations:2.slack.md","Connect Churnkey with your organization's Slack and to send session notifications to a specific channel.",{"title":226,"_path":227,"_id":228,"description":229},"Webhooks","/data-integrations/webhooks","content:6.data-integrations:2.webhooks.md","Churnkey can send webhooks to automatically notify your application whenever a customer completes a session.",{"title":231,"_path":232,"_id":233,"description":234},"Event Tracking","/data-integrations/event-tracking","content:6.data-integrations:3.event-tracking.md","Track your customers' key-value metrics on a per customer basis.","content:6.data-integrations:_dir.yml",{"title":237,"_path":238,"children":239,"_id":289},"Billing Providers","/billing-providers",[240,245,250,255,260,265,270,275],{"title":241,"_path":242,"_id":243,"description":244},"Payment Providers","/billing-providers/payment-provider-overview","content:7.billing-providers:1.payment-provider-overview.md","Feature support for Stripe, Chargebee, Paddle, and Braintree",{"title":246,"_path":247,"_id":248,"description":249},"Stripe","/billing-providers/stripe","content:7.billing-providers:3.stripe.md","Integrate Churnkey with your Stripe account",{"title":251,"_path":252,"_id":253,"description":254},"Chargebee","/billing-providers/chargebee","content:7.billing-providers:4.chargebee.md","Integrate Churnkey with your Chargebee account",{"title":256,"_path":257,"_id":258,"description":259},"Paddle Classic","/billing-providers/paddle-classic","content:7.billing-providers:5.paddle-classic.md","Integrate Churnkey with your Paddle Classic account",{"title":261,"_path":262,"_id":263,"description":264},"Paddle Billing","/billing-providers/paddle-billing","content:7.billing-providers:6.paddle-billing.md","Integrate Churnkey with your Paddle Billing account",{"title":266,"_path":267,"_id":268,"description":269},"Braintree","/billing-providers/braintree","content:7.billing-providers:7.braintree.md","Integrate Churnkey with your Braintree account",{"title":271,"_path":272,"_id":273,"description":274},"Maxio","/billing-providers/maxio","content:7.billing-providers:8.maxio.md","Integrate Churnkey with your Maxio (formerly Chargify) account",{"title":276,"_path":277,"children":278},"Direct Connect","/billing-providers/direct-connect",[279,284],{"title":280,"_path":281,"_id":282,"description":283},"Churnkey Direct","/billing-providers/direct-connect/direct","content:7.billing-providers:9.direct-connect:1.direct.md","Integrate Churnkey with any billing system using Direct mode",{"title":285,"_path":286,"_id":287,"description":288},"Direct Mode Examples","/billing-providers/direct-connect/direct-examples","content:7.billing-providers:9.direct-connect:2.direct-examples.md","Real-world examples for common subscription scenarios","content:7.billing-providers:_dir.yml",{"title":291,"_path":292,"children":293,"_id":299},"Account","/account",[294],{"title":295,"_path":296,"_id":297,"description":298},"Multi-Workspace Support","/account/multi-workspace-support","content:8.account:1.multi-workspace-support.md","Use one email address to access multiple Churnkey workspaces and switch between them instantly.","content:8.account:_dir.yml",{"title":301,"_path":302,"children":303,"_id":309},"Support","/support",[304],{"title":305,"_path":306,"_id":307,"description":308},"Frequently Asked Questions","/support/faqs","content:9.support:1.faqs.md","We want setting up Churnkey to be a breeze.","content:9.support:_dir.yml",{"_path":311,"_dir":312,"_draft":313,"_partial":313,"_locale":314,"title":315,"description":316,"body":317,"_type":2372,"_id":2373,"_source":2374,"_file":2375,"_stem":2376,"_extension":2377,"sitemap":2378},"/integrations/models/subscription","models",false,"","Subscription Model","A subscription is a recurring payment for a product or service. This model includes information about the subscription, including its status, billing cycle, items, and discounts.",{"type":318,"children":319,"toc":2368},"root",[320,329,334,340,2362],{"type":321,"tag":322,"props":323,"children":325},"element","h2",{"id":324},"properties",[326],{"type":327,"value":328},"text","Properties",{"type":321,"tag":330,"props":331,"children":333},"field-schema",{"schema":332},"/types/subscription/subscription.type",[],{"type":321,"tag":322,"props":335,"children":337},{"id":336},"code-example",[338],{"type":327,"value":339},"Code Example",{"type":321,"tag":341,"props":342,"children":343},"code-group",{},[344,805],{"type":321,"tag":345,"props":346,"children":351},"pre",{"className":347,"code":348,"filename":349,"language":350,"meta":314,"style":314},"language-typescript shiki shiki-themes github-light-default github-light-default github-dark-default","import { Integrator } from '@churnkey/sdk'\nimport { Price } from './Price' // you should implement Price model\nimport { Coupon } from './Coupon' // optional, you should implement Coupon model\n\nexport class Subscription extends Integrator.Subscription {\n    constructor(subscription: YourSubscription) {\n        super({\n            id: subscription.id,\n            items: subscription.items.map(i => {\n                return {\n                    id: i.id,\n                    price: new Price(i.price),\n                    quantity: i.quantity\n                }\n            }),\n            discounts: subscription.discounts?.map(d => { // optional\n                return {\n                    coupon: new Coupon(d.coupon),\n                    start: d.start,\n                    end: d.end\n                }\n            }),\n            ... // map other properties\n        })\n    }\n}\n","Typescript (SDK)","typescript",[352],{"type":321,"tag":353,"props":354,"children":355},"code",{"__ignoreMap":314},[356,385,413,440,450,496,530,544,553,586,599,608,632,641,650,659,695,707,730,739,748,756,764,778,787,796],{"type":321,"tag":357,"props":358,"children":361},"span",{"class":359,"line":360},"line",1,[362,368,374,379],{"type":321,"tag":357,"props":363,"children":365},{"style":364},"--shiki-light:#CF222E;--shiki-default:#CF222E;--shiki-dark:#FF7B72",[366],{"type":327,"value":367},"import",{"type":321,"tag":357,"props":369,"children":371},{"style":370},"--shiki-light:#1F2328;--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[372],{"type":327,"value":373}," { Integrator } ",{"type":321,"tag":357,"props":375,"children":376},{"style":364},[377],{"type":327,"value":378},"from",{"type":321,"tag":357,"props":380,"children":382},{"style":381},"--shiki-light:#0A3069;--shiki-default:#0A3069;--shiki-dark:#A5D6FF",[383],{"type":327,"value":384}," '@churnkey/sdk'\n",{"type":321,"tag":357,"props":386,"children":388},{"class":359,"line":387},2,[389,393,398,402,407],{"type":321,"tag":357,"props":390,"children":391},{"style":364},[392],{"type":327,"value":367},{"type":321,"tag":357,"props":394,"children":395},{"style":370},[396],{"type":327,"value":397}," { Price } ",{"type":321,"tag":357,"props":399,"children":400},{"style":364},[401],{"type":327,"value":378},{"type":321,"tag":357,"props":403,"children":404},{"style":381},[405],{"type":327,"value":406}," './Price'",{"type":321,"tag":357,"props":408,"children":410},{"style":409},"--shiki-light:#6E7781;--shiki-default:#6E7781;--shiki-dark:#8B949E",[411],{"type":327,"value":412}," // you should implement Price model\n",{"type":321,"tag":357,"props":414,"children":416},{"class":359,"line":415},3,[417,421,426,430,435],{"type":321,"tag":357,"props":418,"children":419},{"style":364},[420],{"type":327,"value":367},{"type":321,"tag":357,"props":422,"children":423},{"style":370},[424],{"type":327,"value":425}," { Coupon } ",{"type":321,"tag":357,"props":427,"children":428},{"style":364},[429],{"type":327,"value":378},{"type":321,"tag":357,"props":431,"children":432},{"style":381},[433],{"type":327,"value":434}," './Coupon'",{"type":321,"tag":357,"props":436,"children":437},{"style":409},[438],{"type":327,"value":439}," // optional, you should implement Coupon model\n",{"type":321,"tag":357,"props":441,"children":443},{"class":359,"line":442},4,[444],{"type":321,"tag":357,"props":445,"children":447},{"emptyLinePlaceholder":446},true,[448],{"type":327,"value":449},"\n",{"type":321,"tag":357,"props":451,"children":453},{"class":359,"line":452},5,[454,459,464,470,475,480,485,491],{"type":321,"tag":357,"props":455,"children":456},{"style":364},[457],{"type":327,"value":458},"export",{"type":321,"tag":357,"props":460,"children":461},{"style":364},[462],{"type":327,"value":463}," class",{"type":321,"tag":357,"props":465,"children":467},{"style":466},"--shiki-light:#953800;--shiki-default:#953800;--shiki-dark:#FFA657",[468],{"type":327,"value":469}," Subscription",{"type":321,"tag":357,"props":471,"children":472},{"style":364},[473],{"type":327,"value":474}," extends",{"type":321,"tag":357,"props":476,"children":477},{"style":466},[478],{"type":327,"value":479}," Integrator",{"type":321,"tag":357,"props":481,"children":482},{"style":370},[483],{"type":327,"value":484},".",{"type":321,"tag":357,"props":486,"children":488},{"style":487},"--shiki-light:#0550AE;--shiki-default:#0550AE;--shiki-dark:#79C0FF",[489],{"type":327,"value":490},"Subscription",{"type":321,"tag":357,"props":492,"children":493},{"style":370},[494],{"type":327,"value":495}," {\n",{"type":321,"tag":357,"props":497,"children":499},{"class":359,"line":498},6,[500,505,510,515,520,525],{"type":321,"tag":357,"props":501,"children":502},{"style":364},[503],{"type":327,"value":504},"    constructor",{"type":321,"tag":357,"props":506,"children":507},{"style":370},[508],{"type":327,"value":509},"(",{"type":321,"tag":357,"props":511,"children":512},{"style":466},[513],{"type":327,"value":514},"subscription",{"type":321,"tag":357,"props":516,"children":517},{"style":364},[518],{"type":327,"value":519},":",{"type":321,"tag":357,"props":521,"children":522},{"style":466},[523],{"type":327,"value":524}," YourSubscription",{"type":321,"tag":357,"props":526,"children":527},{"style":370},[528],{"type":327,"value":529},") {\n",{"type":321,"tag":357,"props":531,"children":533},{"class":359,"line":532},7,[534,539],{"type":321,"tag":357,"props":535,"children":536},{"style":487},[537],{"type":327,"value":538},"        super",{"type":321,"tag":357,"props":540,"children":541},{"style":370},[542],{"type":327,"value":543},"({\n",{"type":321,"tag":357,"props":545,"children":547},{"class":359,"line":546},8,[548],{"type":321,"tag":357,"props":549,"children":550},{"style":370},[551],{"type":327,"value":552},"            id: subscription.id,\n",{"type":321,"tag":357,"props":554,"children":556},{"class":359,"line":555},9,[557,562,568,572,577,582],{"type":321,"tag":357,"props":558,"children":559},{"style":370},[560],{"type":327,"value":561},"            items: subscription.items.",{"type":321,"tag":357,"props":563,"children":565},{"style":564},"--shiki-light:#8250DF;--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[566],{"type":327,"value":567},"map",{"type":321,"tag":357,"props":569,"children":570},{"style":370},[571],{"type":327,"value":509},{"type":321,"tag":357,"props":573,"children":574},{"style":466},[575],{"type":327,"value":576},"i",{"type":321,"tag":357,"props":578,"children":579},{"style":364},[580],{"type":327,"value":581}," =>",{"type":321,"tag":357,"props":583,"children":584},{"style":370},[585],{"type":327,"value":495},{"type":321,"tag":357,"props":587,"children":589},{"class":359,"line":588},10,[590,595],{"type":321,"tag":357,"props":591,"children":592},{"style":364},[593],{"type":327,"value":594},"                return",{"type":321,"tag":357,"props":596,"children":597},{"style":370},[598],{"type":327,"value":495},{"type":321,"tag":357,"props":600,"children":602},{"class":359,"line":601},11,[603],{"type":321,"tag":357,"props":604,"children":605},{"style":370},[606],{"type":327,"value":607},"                    id: i.id,\n",{"type":321,"tag":357,"props":609,"children":611},{"class":359,"line":610},12,[612,617,622,627],{"type":321,"tag":357,"props":613,"children":614},{"style":370},[615],{"type":327,"value":616},"                    price: ",{"type":321,"tag":357,"props":618,"children":619},{"style":364},[620],{"type":327,"value":621},"new",{"type":321,"tag":357,"props":623,"children":624},{"style":564},[625],{"type":327,"value":626}," Price",{"type":321,"tag":357,"props":628,"children":629},{"style":370},[630],{"type":327,"value":631},"(i.price),\n",{"type":321,"tag":357,"props":633,"children":635},{"class":359,"line":634},13,[636],{"type":321,"tag":357,"props":637,"children":638},{"style":370},[639],{"type":327,"value":640},"                    quantity: i.quantity\n",{"type":321,"tag":357,"props":642,"children":644},{"class":359,"line":643},14,[645],{"type":321,"tag":357,"props":646,"children":647},{"style":370},[648],{"type":327,"value":649},"                }\n",{"type":321,"tag":357,"props":651,"children":653},{"class":359,"line":652},15,[654],{"type":321,"tag":357,"props":655,"children":656},{"style":370},[657],{"type":327,"value":658},"            }),\n",{"type":321,"tag":357,"props":660,"children":662},{"class":359,"line":661},16,[663,668,672,676,681,685,690],{"type":321,"tag":357,"props":664,"children":665},{"style":370},[666],{"type":327,"value":667},"            discounts: subscription.discounts?.",{"type":321,"tag":357,"props":669,"children":670},{"style":564},[671],{"type":327,"value":567},{"type":321,"tag":357,"props":673,"children":674},{"style":370},[675],{"type":327,"value":509},{"type":321,"tag":357,"props":677,"children":678},{"style":466},[679],{"type":327,"value":680},"d",{"type":321,"tag":357,"props":682,"children":683},{"style":364},[684],{"type":327,"value":581},{"type":321,"tag":357,"props":686,"children":687},{"style":370},[688],{"type":327,"value":689}," { ",{"type":321,"tag":357,"props":691,"children":692},{"style":409},[693],{"type":327,"value":694},"// optional\n",{"type":321,"tag":357,"props":696,"children":698},{"class":359,"line":697},17,[699,703],{"type":321,"tag":357,"props":700,"children":701},{"style":364},[702],{"type":327,"value":594},{"type":321,"tag":357,"props":704,"children":705},{"style":370},[706],{"type":327,"value":495},{"type":321,"tag":357,"props":708,"children":710},{"class":359,"line":709},18,[711,716,720,725],{"type":321,"tag":357,"props":712,"children":713},{"style":370},[714],{"type":327,"value":715},"                    coupon: ",{"type":321,"tag":357,"props":717,"children":718},{"style":364},[719],{"type":327,"value":621},{"type":321,"tag":357,"props":721,"children":722},{"style":564},[723],{"type":327,"value":724}," Coupon",{"type":321,"tag":357,"props":726,"children":727},{"style":370},[728],{"type":327,"value":729},"(d.coupon),\n",{"type":321,"tag":357,"props":731,"children":733},{"class":359,"line":732},19,[734],{"type":321,"tag":357,"props":735,"children":736},{"style":370},[737],{"type":327,"value":738},"                    start: d.start,\n",{"type":321,"tag":357,"props":740,"children":742},{"class":359,"line":741},20,[743],{"type":321,"tag":357,"props":744,"children":745},{"style":370},[746],{"type":327,"value":747},"                    end: d.end\n",{"type":321,"tag":357,"props":749,"children":751},{"class":359,"line":750},21,[752],{"type":321,"tag":357,"props":753,"children":754},{"style":370},[755],{"type":327,"value":649},{"type":321,"tag":357,"props":757,"children":759},{"class":359,"line":758},22,[760],{"type":321,"tag":357,"props":761,"children":762},{"style":370},[763],{"type":327,"value":658},{"type":321,"tag":357,"props":765,"children":767},{"class":359,"line":766},23,[768,773],{"type":321,"tag":357,"props":769,"children":770},{"style":364},[771],{"type":327,"value":772},"            ...",{"type":321,"tag":357,"props":774,"children":775},{"style":409},[776],{"type":327,"value":777}," // map other properties\n",{"type":321,"tag":357,"props":779,"children":781},{"class":359,"line":780},24,[782],{"type":321,"tag":357,"props":783,"children":784},{"style":370},[785],{"type":327,"value":786},"        })\n",{"type":321,"tag":357,"props":788,"children":790},{"class":359,"line":789},25,[791],{"type":321,"tag":357,"props":792,"children":793},{"style":370},[794],{"type":327,"value":795},"    }\n",{"type":321,"tag":357,"props":797,"children":799},{"class":359,"line":798},26,[800],{"type":321,"tag":357,"props":801,"children":802},{"style":370},[803],{"type":327,"value":804},"}\n",{"type":321,"tag":345,"props":806,"children":809},{"className":347,"code":807,"filename":808,"language":350,"meta":314,"style":314},"import { Price } from './Price' // you should implement Price model\nimport { Coupon } from './Coupon' // optional, you should implement Coupon model\n\ninterface Subscription {\n    id: string\n    status: Status\n    duration: Duration\n    items: Item[]\n    discounts?: Discount[]\n    metadata?: Record\u003Cstring, string>\n}\n\nexport function Subscription(subscription: YourSubscription): Subscription {\n    return {\n        id: subscription.id,\n        ... // map other properties\n    }\n}\n\nexport type Status = Status.Active | Status.Canceled | Status.Paused | Status.Unpaid | Status.Trial\n\nexport namespace Status {\n    interface Base {\n        name: Name\n        currentPeriod?: Period\n        trial?: Period\n    }\n\n    export enum Name {\n        Active = \"active\",\n        Canceled = \"canceled\",\n        Paused = \"paused\",\n        Unpaid = \"unpaid\",\n        Trial = \"trial\",\n    }\n\n    export interface Active extends Base {\n        name: Name.Active\n        currentPeriod: Period\n    }\n\n    export interface Canceled extends Base {\n        name: Name.Canceled\n        canceledAt: Date\n    }\n\n    export interface Paused extends Base {\n        name: Name.Paused\n        start: Date\n        end: Date\n    }\n\n    export interface Unpaid extends Base {\n        name: Name.Unpaid\n    }\n\n    export interface Trial extends Base {\n        name: Name.Trial\n        trial: Period\n    }\n}\n\nexport interface Duration {\n    amount: number\n    unit: Duration.Unit\n}\n\nexport namespace Duration {\n    export enum Unit {\n        Month = \"month\",\n        Year = \"year\"\n    }\n}\n\nexport interface Period {\n    start: Date\n    end: Date\n}\n\nexport interface Item {\n    id?: string\n    price: Price\n    quantity: number\n}\n\nexport interface Discount {\n    coupon: Coupon\n    start: Date\n    end?: Date\n}\n","Typescript",[810],{"type":321,"tag":353,"props":811,"children":812},{"__ignoreMap":314},[813,836,859,866,882,899,916,933,955,977,1018,1025,1032,1081,1093,1101,1113,1120,1127,1134,1238,1245,1265,1282,1299,1316,1332,1340,1348,1371,1394,1416,1438,1460,1482,1490,1498,1528,1553,1569,1577,1585,1614,1639,1657,1665,1673,1702,1727,1744,1761,1769,1777,1806,1831,1839,1847,1876,1900,1916,1924,1932,1940,1961,1979,2005,2013,2021,2041,2062,2084,2102,2110,2118,2126,2147,2164,2181,2189,2197,2217,2233,2251,2268,2276,2284,2304,2322,2338,2354],{"type":321,"tag":357,"props":814,"children":815},{"class":359,"line":360},[816,820,824,828,832],{"type":321,"tag":357,"props":817,"children":818},{"style":364},[819],{"type":327,"value":367},{"type":321,"tag":357,"props":821,"children":822},{"style":370},[823],{"type":327,"value":397},{"type":321,"tag":357,"props":825,"children":826},{"style":364},[827],{"type":327,"value":378},{"type":321,"tag":357,"props":829,"children":830},{"style":381},[831],{"type":327,"value":406},{"type":321,"tag":357,"props":833,"children":834},{"style":409},[835],{"type":327,"value":412},{"type":321,"tag":357,"props":837,"children":838},{"class":359,"line":387},[839,843,847,851,855],{"type":321,"tag":357,"props":840,"children":841},{"style":364},[842],{"type":327,"value":367},{"type":321,"tag":357,"props":844,"children":845},{"style":370},[846],{"type":327,"value":425},{"type":321,"tag":357,"props":848,"children":849},{"style":364},[850],{"type":327,"value":378},{"type":321,"tag":357,"props":852,"children":853},{"style":381},[854],{"type":327,"value":434},{"type":321,"tag":357,"props":856,"children":857},{"style":409},[858],{"type":327,"value":439},{"type":321,"tag":357,"props":860,"children":861},{"class":359,"line":415},[862],{"type":321,"tag":357,"props":863,"children":864},{"emptyLinePlaceholder":446},[865],{"type":327,"value":449},{"type":321,"tag":357,"props":867,"children":868},{"class":359,"line":442},[869,874,878],{"type":321,"tag":357,"props":870,"children":871},{"style":364},[872],{"type":327,"value":873},"interface",{"type":321,"tag":357,"props":875,"children":876},{"style":466},[877],{"type":327,"value":469},{"type":321,"tag":357,"props":879,"children":880},{"style":370},[881],{"type":327,"value":495},{"type":321,"tag":357,"props":883,"children":884},{"class":359,"line":452},[885,890,894],{"type":321,"tag":357,"props":886,"children":887},{"style":466},[888],{"type":327,"value":889},"    id",{"type":321,"tag":357,"props":891,"children":892},{"style":364},[893],{"type":327,"value":519},{"type":321,"tag":357,"props":895,"children":896},{"style":487},[897],{"type":327,"value":898}," string\n",{"type":321,"tag":357,"props":900,"children":901},{"class":359,"line":498},[902,907,911],{"type":321,"tag":357,"props":903,"children":904},{"style":466},[905],{"type":327,"value":906},"    status",{"type":321,"tag":357,"props":908,"children":909},{"style":364},[910],{"type":327,"value":519},{"type":321,"tag":357,"props":912,"children":913},{"style":466},[914],{"type":327,"value":915}," Status\n",{"type":321,"tag":357,"props":917,"children":918},{"class":359,"line":532},[919,924,928],{"type":321,"tag":357,"props":920,"children":921},{"style":466},[922],{"type":327,"value":923},"    duration",{"type":321,"tag":357,"props":925,"children":926},{"style":364},[927],{"type":327,"value":519},{"type":321,"tag":357,"props":929,"children":930},{"style":466},[931],{"type":327,"value":932}," Duration\n",{"type":321,"tag":357,"props":934,"children":935},{"class":359,"line":546},[936,941,945,950],{"type":321,"tag":357,"props":937,"children":938},{"style":466},[939],{"type":327,"value":940},"    items",{"type":321,"tag":357,"props":942,"children":943},{"style":364},[944],{"type":327,"value":519},{"type":321,"tag":357,"props":946,"children":947},{"style":466},[948],{"type":327,"value":949}," Item",{"type":321,"tag":357,"props":951,"children":952},{"style":370},[953],{"type":327,"value":954},"[]\n",{"type":321,"tag":357,"props":956,"children":957},{"class":359,"line":555},[958,963,968,973],{"type":321,"tag":357,"props":959,"children":960},{"style":466},[961],{"type":327,"value":962},"    discounts",{"type":321,"tag":357,"props":964,"children":965},{"style":364},[966],{"type":327,"value":967},"?:",{"type":321,"tag":357,"props":969,"children":970},{"style":466},[971],{"type":327,"value":972}," Discount",{"type":321,"tag":357,"props":974,"children":975},{"style":370},[976],{"type":327,"value":954},{"type":321,"tag":357,"props":978,"children":979},{"class":359,"line":588},[980,985,989,994,999,1004,1009,1013],{"type":321,"tag":357,"props":981,"children":982},{"style":466},[983],{"type":327,"value":984},"    metadata",{"type":321,"tag":357,"props":986,"children":987},{"style":364},[988],{"type":327,"value":967},{"type":321,"tag":357,"props":990,"children":991},{"style":466},[992],{"type":327,"value":993}," Record",{"type":321,"tag":357,"props":995,"children":996},{"style":370},[997],{"type":327,"value":998},"\u003C",{"type":321,"tag":357,"props":1000,"children":1001},{"style":487},[1002],{"type":327,"value":1003},"string",{"type":321,"tag":357,"props":1005,"children":1006},{"style":370},[1007],{"type":327,"value":1008},", ",{"type":321,"tag":357,"props":1010,"children":1011},{"style":487},[1012],{"type":327,"value":1003},{"type":321,"tag":357,"props":1014,"children":1015},{"style":370},[1016],{"type":327,"value":1017},">\n",{"type":321,"tag":357,"props":1019,"children":1020},{"class":359,"line":601},[1021],{"type":321,"tag":357,"props":1022,"children":1023},{"style":370},[1024],{"type":327,"value":804},{"type":321,"tag":357,"props":1026,"children":1027},{"class":359,"line":610},[1028],{"type":321,"tag":357,"props":1029,"children":1030},{"emptyLinePlaceholder":446},[1031],{"type":327,"value":449},{"type":321,"tag":357,"props":1033,"children":1034},{"class":359,"line":634},[1035,1039,1044,1048,1052,1056,1060,1064,1069,1073,1077],{"type":321,"tag":357,"props":1036,"children":1037},{"style":364},[1038],{"type":327,"value":458},{"type":321,"tag":357,"props":1040,"children":1041},{"style":364},[1042],{"type":327,"value":1043}," function",{"type":321,"tag":357,"props":1045,"children":1046},{"style":564},[1047],{"type":327,"value":469},{"type":321,"tag":357,"props":1049,"children":1050},{"style":370},[1051],{"type":327,"value":509},{"type":321,"tag":357,"props":1053,"children":1054},{"style":466},[1055],{"type":327,"value":514},{"type":321,"tag":357,"props":1057,"children":1058},{"style":364},[1059],{"type":327,"value":519},{"type":321,"tag":357,"props":1061,"children":1062},{"style":466},[1063],{"type":327,"value":524},{"type":321,"tag":357,"props":1065,"children":1066},{"style":370},[1067],{"type":327,"value":1068},")",{"type":321,"tag":357,"props":1070,"children":1071},{"style":364},[1072],{"type":327,"value":519},{"type":321,"tag":357,"props":1074,"children":1075},{"style":466},[1076],{"type":327,"value":469},{"type":321,"tag":357,"props":1078,"children":1079},{"style":370},[1080],{"type":327,"value":495},{"type":321,"tag":357,"props":1082,"children":1083},{"class":359,"line":643},[1084,1089],{"type":321,"tag":357,"props":1085,"children":1086},{"style":364},[1087],{"type":327,"value":1088},"    return",{"type":321,"tag":357,"props":1090,"children":1091},{"style":370},[1092],{"type":327,"value":495},{"type":321,"tag":357,"props":1094,"children":1095},{"class":359,"line":652},[1096],{"type":321,"tag":357,"props":1097,"children":1098},{"style":370},[1099],{"type":327,"value":1100},"        id: subscription.id,\n",{"type":321,"tag":357,"props":1102,"children":1103},{"class":359,"line":661},[1104,1109],{"type":321,"tag":357,"props":1105,"children":1106},{"style":364},[1107],{"type":327,"value":1108},"        ...",{"type":321,"tag":357,"props":1110,"children":1111},{"style":409},[1112],{"type":327,"value":777},{"type":321,"tag":357,"props":1114,"children":1115},{"class":359,"line":697},[1116],{"type":321,"tag":357,"props":1117,"children":1118},{"style":370},[1119],{"type":327,"value":795},{"type":321,"tag":357,"props":1121,"children":1122},{"class":359,"line":709},[1123],{"type":321,"tag":357,"props":1124,"children":1125},{"style":370},[1126],{"type":327,"value":804},{"type":321,"tag":357,"props":1128,"children":1129},{"class":359,"line":732},[1130],{"type":321,"tag":357,"props":1131,"children":1132},{"emptyLinePlaceholder":446},[1133],{"type":327,"value":449},{"type":321,"tag":357,"props":1135,"children":1136},{"class":359,"line":741},[1137,1141,1146,1151,1156,1160,1164,1169,1174,1178,1182,1187,1191,1195,1199,1204,1208,1212,1216,1221,1225,1229,1233],{"type":321,"tag":357,"props":1138,"children":1139},{"style":364},[1140],{"type":327,"value":458},{"type":321,"tag":357,"props":1142,"children":1143},{"style":364},[1144],{"type":327,"value":1145}," type",{"type":321,"tag":357,"props":1147,"children":1148},{"style":466},[1149],{"type":327,"value":1150}," Status",{"type":321,"tag":357,"props":1152,"children":1153},{"style":364},[1154],{"type":327,"value":1155}," =",{"type":321,"tag":357,"props":1157,"children":1158},{"style":466},[1159],{"type":327,"value":1150},{"type":321,"tag":357,"props":1161,"children":1162},{"style":370},[1163],{"type":327,"value":484},{"type":321,"tag":357,"props":1165,"children":1166},{"style":466},[1167],{"type":327,"value":1168},"Active",{"type":321,"tag":357,"props":1170,"children":1171},{"style":364},[1172],{"type":327,"value":1173}," |",{"type":321,"tag":357,"props":1175,"children":1176},{"style":466},[1177],{"type":327,"value":1150},{"type":321,"tag":357,"props":1179,"children":1180},{"style":370},[1181],{"type":327,"value":484},{"type":321,"tag":357,"props":1183,"children":1184},{"style":466},[1185],{"type":327,"value":1186},"Canceled",{"type":321,"tag":357,"props":1188,"children":1189},{"style":364},[1190],{"type":327,"value":1173},{"type":321,"tag":357,"props":1192,"children":1193},{"style":466},[1194],{"type":327,"value":1150},{"type":321,"tag":357,"props":1196,"children":1197},{"style":370},[1198],{"type":327,"value":484},{"type":321,"tag":357,"props":1200,"children":1201},{"style":466},[1202],{"type":327,"value":1203},"Paused",{"type":321,"tag":357,"props":1205,"children":1206},{"style":364},[1207],{"type":327,"value":1173},{"type":321,"tag":357,"props":1209,"children":1210},{"style":466},[1211],{"type":327,"value":1150},{"type":321,"tag":357,"props":1213,"children":1214},{"style":370},[1215],{"type":327,"value":484},{"type":321,"tag":357,"props":1217,"children":1218},{"style":466},[1219],{"type":327,"value":1220},"Unpaid",{"type":321,"tag":357,"props":1222,"children":1223},{"style":364},[1224],{"type":327,"value":1173},{"type":321,"tag":357,"props":1226,"children":1227},{"style":466},[1228],{"type":327,"value":1150},{"type":321,"tag":357,"props":1230,"children":1231},{"style":370},[1232],{"type":327,"value":484},{"type":321,"tag":357,"props":1234,"children":1235},{"style":466},[1236],{"type":327,"value":1237},"Trial\n",{"type":321,"tag":357,"props":1239,"children":1240},{"class":359,"line":750},[1241],{"type":321,"tag":357,"props":1242,"children":1243},{"emptyLinePlaceholder":446},[1244],{"type":327,"value":449},{"type":321,"tag":357,"props":1246,"children":1247},{"class":359,"line":758},[1248,1252,1257,1261],{"type":321,"tag":357,"props":1249,"children":1250},{"style":364},[1251],{"type":327,"value":458},{"type":321,"tag":357,"props":1253,"children":1254},{"style":364},[1255],{"type":327,"value":1256}," namespace",{"type":321,"tag":357,"props":1258,"children":1259},{"style":466},[1260],{"type":327,"value":1150},{"type":321,"tag":357,"props":1262,"children":1263},{"style":370},[1264],{"type":327,"value":495},{"type":321,"tag":357,"props":1266,"children":1267},{"class":359,"line":766},[1268,1273,1278],{"type":321,"tag":357,"props":1269,"children":1270},{"style":364},[1271],{"type":327,"value":1272},"    interface",{"type":321,"tag":357,"props":1274,"children":1275},{"style":466},[1276],{"type":327,"value":1277}," Base",{"type":321,"tag":357,"props":1279,"children":1280},{"style":370},[1281],{"type":327,"value":495},{"type":321,"tag":357,"props":1283,"children":1284},{"class":359,"line":780},[1285,1290,1294],{"type":321,"tag":357,"props":1286,"children":1287},{"style":466},[1288],{"type":327,"value":1289},"        name",{"type":321,"tag":357,"props":1291,"children":1292},{"style":364},[1293],{"type":327,"value":519},{"type":321,"tag":357,"props":1295,"children":1296},{"style":466},[1297],{"type":327,"value":1298}," Name\n",{"type":321,"tag":357,"props":1300,"children":1301},{"class":359,"line":789},[1302,1307,1311],{"type":321,"tag":357,"props":1303,"children":1304},{"style":466},[1305],{"type":327,"value":1306},"        currentPeriod",{"type":321,"tag":357,"props":1308,"children":1309},{"style":364},[1310],{"type":327,"value":967},{"type":321,"tag":357,"props":1312,"children":1313},{"style":466},[1314],{"type":327,"value":1315}," Period\n",{"type":321,"tag":357,"props":1317,"children":1318},{"class":359,"line":798},[1319,1324,1328],{"type":321,"tag":357,"props":1320,"children":1321},{"style":466},[1322],{"type":327,"value":1323},"        trial",{"type":321,"tag":357,"props":1325,"children":1326},{"style":364},[1327],{"type":327,"value":967},{"type":321,"tag":357,"props":1329,"children":1330},{"style":466},[1331],{"type":327,"value":1315},{"type":321,"tag":357,"props":1333,"children":1335},{"class":359,"line":1334},27,[1336],{"type":321,"tag":357,"props":1337,"children":1338},{"style":370},[1339],{"type":327,"value":795},{"type":321,"tag":357,"props":1341,"children":1343},{"class":359,"line":1342},28,[1344],{"type":321,"tag":357,"props":1345,"children":1346},{"emptyLinePlaceholder":446},[1347],{"type":327,"value":449},{"type":321,"tag":357,"props":1349,"children":1351},{"class":359,"line":1350},29,[1352,1357,1362,1367],{"type":321,"tag":357,"props":1353,"children":1354},{"style":364},[1355],{"type":327,"value":1356},"    export",{"type":321,"tag":357,"props":1358,"children":1359},{"style":364},[1360],{"type":327,"value":1361}," enum",{"type":321,"tag":357,"props":1363,"children":1364},{"style":466},[1365],{"type":327,"value":1366}," Name",{"type":321,"tag":357,"props":1368,"children":1369},{"style":370},[1370],{"type":327,"value":495},{"type":321,"tag":357,"props":1372,"children":1374},{"class":359,"line":1373},30,[1375,1380,1384,1389],{"type":321,"tag":357,"props":1376,"children":1377},{"style":487},[1378],{"type":327,"value":1379},"        Active",{"type":321,"tag":357,"props":1381,"children":1382},{"style":364},[1383],{"type":327,"value":1155},{"type":321,"tag":357,"props":1385,"children":1386},{"style":381},[1387],{"type":327,"value":1388}," \"active\"",{"type":321,"tag":357,"props":1390,"children":1391},{"style":370},[1392],{"type":327,"value":1393},",\n",{"type":321,"tag":357,"props":1395,"children":1397},{"class":359,"line":1396},31,[1398,1403,1407,1412],{"type":321,"tag":357,"props":1399,"children":1400},{"style":487},[1401],{"type":327,"value":1402},"        Canceled",{"type":321,"tag":357,"props":1404,"children":1405},{"style":364},[1406],{"type":327,"value":1155},{"type":321,"tag":357,"props":1408,"children":1409},{"style":381},[1410],{"type":327,"value":1411}," \"canceled\"",{"type":321,"tag":357,"props":1413,"children":1414},{"style":370},[1415],{"type":327,"value":1393},{"type":321,"tag":357,"props":1417,"children":1419},{"class":359,"line":1418},32,[1420,1425,1429,1434],{"type":321,"tag":357,"props":1421,"children":1422},{"style":487},[1423],{"type":327,"value":1424},"        Paused",{"type":321,"tag":357,"props":1426,"children":1427},{"style":364},[1428],{"type":327,"value":1155},{"type":321,"tag":357,"props":1430,"children":1431},{"style":381},[1432],{"type":327,"value":1433}," \"paused\"",{"type":321,"tag":357,"props":1435,"children":1436},{"style":370},[1437],{"type":327,"value":1393},{"type":321,"tag":357,"props":1439,"children":1441},{"class":359,"line":1440},33,[1442,1447,1451,1456],{"type":321,"tag":357,"props":1443,"children":1444},{"style":487},[1445],{"type":327,"value":1446},"        Unpaid",{"type":321,"tag":357,"props":1448,"children":1449},{"style":364},[1450],{"type":327,"value":1155},{"type":321,"tag":357,"props":1452,"children":1453},{"style":381},[1454],{"type":327,"value":1455}," \"unpaid\"",{"type":321,"tag":357,"props":1457,"children":1458},{"style":370},[1459],{"type":327,"value":1393},{"type":321,"tag":357,"props":1461,"children":1463},{"class":359,"line":1462},34,[1464,1469,1473,1478],{"type":321,"tag":357,"props":1465,"children":1466},{"style":487},[1467],{"type":327,"value":1468},"        Trial",{"type":321,"tag":357,"props":1470,"children":1471},{"style":364},[1472],{"type":327,"value":1155},{"type":321,"tag":357,"props":1474,"children":1475},{"style":381},[1476],{"type":327,"value":1477}," \"trial\"",{"type":321,"tag":357,"props":1479,"children":1480},{"style":370},[1481],{"type":327,"value":1393},{"type":321,"tag":357,"props":1483,"children":1485},{"class":359,"line":1484},35,[1486],{"type":321,"tag":357,"props":1487,"children":1488},{"style":370},[1489],{"type":327,"value":795},{"type":321,"tag":357,"props":1491,"children":1493},{"class":359,"line":1492},36,[1494],{"type":321,"tag":357,"props":1495,"children":1496},{"emptyLinePlaceholder":446},[1497],{"type":327,"value":449},{"type":321,"tag":357,"props":1499,"children":1501},{"class":359,"line":1500},37,[1502,1506,1511,1516,1520,1524],{"type":321,"tag":357,"props":1503,"children":1504},{"style":364},[1505],{"type":327,"value":1356},{"type":321,"tag":357,"props":1507,"children":1508},{"style":364},[1509],{"type":327,"value":1510}," interface",{"type":321,"tag":357,"props":1512,"children":1513},{"style":466},[1514],{"type":327,"value":1515}," Active",{"type":321,"tag":357,"props":1517,"children":1518},{"style":364},[1519],{"type":327,"value":474},{"type":321,"tag":357,"props":1521,"children":1522},{"style":487},[1523],{"type":327,"value":1277},{"type":321,"tag":357,"props":1525,"children":1526},{"style":370},[1527],{"type":327,"value":495},{"type":321,"tag":357,"props":1529,"children":1531},{"class":359,"line":1530},38,[1532,1536,1540,1544,1548],{"type":321,"tag":357,"props":1533,"children":1534},{"style":466},[1535],{"type":327,"value":1289},{"type":321,"tag":357,"props":1537,"children":1538},{"style":364},[1539],{"type":327,"value":519},{"type":321,"tag":357,"props":1541,"children":1542},{"style":466},[1543],{"type":327,"value":1366},{"type":321,"tag":357,"props":1545,"children":1546},{"style":370},[1547],{"type":327,"value":484},{"type":321,"tag":357,"props":1549,"children":1550},{"style":466},[1551],{"type":327,"value":1552},"Active\n",{"type":321,"tag":357,"props":1554,"children":1556},{"class":359,"line":1555},39,[1557,1561,1565],{"type":321,"tag":357,"props":1558,"children":1559},{"style":466},[1560],{"type":327,"value":1306},{"type":321,"tag":357,"props":1562,"children":1563},{"style":364},[1564],{"type":327,"value":519},{"type":321,"tag":357,"props":1566,"children":1567},{"style":466},[1568],{"type":327,"value":1315},{"type":321,"tag":357,"props":1570,"children":1572},{"class":359,"line":1571},40,[1573],{"type":321,"tag":357,"props":1574,"children":1575},{"style":370},[1576],{"type":327,"value":795},{"type":321,"tag":357,"props":1578,"children":1580},{"class":359,"line":1579},41,[1581],{"type":321,"tag":357,"props":1582,"children":1583},{"emptyLinePlaceholder":446},[1584],{"type":327,"value":449},{"type":321,"tag":357,"props":1586,"children":1588},{"class":359,"line":1587},42,[1589,1593,1597,1602,1606,1610],{"type":321,"tag":357,"props":1590,"children":1591},{"style":364},[1592],{"type":327,"value":1356},{"type":321,"tag":357,"props":1594,"children":1595},{"style":364},[1596],{"type":327,"value":1510},{"type":321,"tag":357,"props":1598,"children":1599},{"style":466},[1600],{"type":327,"value":1601}," Canceled",{"type":321,"tag":357,"props":1603,"children":1604},{"style":364},[1605],{"type":327,"value":474},{"type":321,"tag":357,"props":1607,"children":1608},{"style":487},[1609],{"type":327,"value":1277},{"type":321,"tag":357,"props":1611,"children":1612},{"style":370},[1613],{"type":327,"value":495},{"type":321,"tag":357,"props":1615,"children":1617},{"class":359,"line":1616},43,[1618,1622,1626,1630,1634],{"type":321,"tag":357,"props":1619,"children":1620},{"style":466},[1621],{"type":327,"value":1289},{"type":321,"tag":357,"props":1623,"children":1624},{"style":364},[1625],{"type":327,"value":519},{"type":321,"tag":357,"props":1627,"children":1628},{"style":466},[1629],{"type":327,"value":1366},{"type":321,"tag":357,"props":1631,"children":1632},{"style":370},[1633],{"type":327,"value":484},{"type":321,"tag":357,"props":1635,"children":1636},{"style":466},[1637],{"type":327,"value":1638},"Canceled\n",{"type":321,"tag":357,"props":1640,"children":1642},{"class":359,"line":1641},44,[1643,1648,1652],{"type":321,"tag":357,"props":1644,"children":1645},{"style":466},[1646],{"type":327,"value":1647},"        canceledAt",{"type":321,"tag":357,"props":1649,"children":1650},{"style":364},[1651],{"type":327,"value":519},{"type":321,"tag":357,"props":1653,"children":1654},{"style":466},[1655],{"type":327,"value":1656}," Date\n",{"type":321,"tag":357,"props":1658,"children":1660},{"class":359,"line":1659},45,[1661],{"type":321,"tag":357,"props":1662,"children":1663},{"style":370},[1664],{"type":327,"value":795},{"type":321,"tag":357,"props":1666,"children":1668},{"class":359,"line":1667},46,[1669],{"type":321,"tag":357,"props":1670,"children":1671},{"emptyLinePlaceholder":446},[1672],{"type":327,"value":449},{"type":321,"tag":357,"props":1674,"children":1676},{"class":359,"line":1675},47,[1677,1681,1685,1690,1694,1698],{"type":321,"tag":357,"props":1678,"children":1679},{"style":364},[1680],{"type":327,"value":1356},{"type":321,"tag":357,"props":1682,"children":1683},{"style":364},[1684],{"type":327,"value":1510},{"type":321,"tag":357,"props":1686,"children":1687},{"style":466},[1688],{"type":327,"value":1689}," Paused",{"type":321,"tag":357,"props":1691,"children":1692},{"style":364},[1693],{"type":327,"value":474},{"type":321,"tag":357,"props":1695,"children":1696},{"style":487},[1697],{"type":327,"value":1277},{"type":321,"tag":357,"props":1699,"children":1700},{"style":370},[1701],{"type":327,"value":495},{"type":321,"tag":357,"props":1703,"children":1705},{"class":359,"line":1704},48,[1706,1710,1714,1718,1722],{"type":321,"tag":357,"props":1707,"children":1708},{"style":466},[1709],{"type":327,"value":1289},{"type":321,"tag":357,"props":1711,"children":1712},{"style":364},[1713],{"type":327,"value":519},{"type":321,"tag":357,"props":1715,"children":1716},{"style":466},[1717],{"type":327,"value":1366},{"type":321,"tag":357,"props":1719,"children":1720},{"style":370},[1721],{"type":327,"value":484},{"type":321,"tag":357,"props":1723,"children":1724},{"style":466},[1725],{"type":327,"value":1726},"Paused\n",{"type":321,"tag":357,"props":1728,"children":1730},{"class":359,"line":1729},49,[1731,1736,1740],{"type":321,"tag":357,"props":1732,"children":1733},{"style":466},[1734],{"type":327,"value":1735},"        start",{"type":321,"tag":357,"props":1737,"children":1738},{"style":364},[1739],{"type":327,"value":519},{"type":321,"tag":357,"props":1741,"children":1742},{"style":466},[1743],{"type":327,"value":1656},{"type":321,"tag":357,"props":1745,"children":1747},{"class":359,"line":1746},50,[1748,1753,1757],{"type":321,"tag":357,"props":1749,"children":1750},{"style":466},[1751],{"type":327,"value":1752},"        end",{"type":321,"tag":357,"props":1754,"children":1755},{"style":364},[1756],{"type":327,"value":519},{"type":321,"tag":357,"props":1758,"children":1759},{"style":466},[1760],{"type":327,"value":1656},{"type":321,"tag":357,"props":1762,"children":1764},{"class":359,"line":1763},51,[1765],{"type":321,"tag":357,"props":1766,"children":1767},{"style":370},[1768],{"type":327,"value":795},{"type":321,"tag":357,"props":1770,"children":1772},{"class":359,"line":1771},52,[1773],{"type":321,"tag":357,"props":1774,"children":1775},{"emptyLinePlaceholder":446},[1776],{"type":327,"value":449},{"type":321,"tag":357,"props":1778,"children":1780},{"class":359,"line":1779},53,[1781,1785,1789,1794,1798,1802],{"type":321,"tag":357,"props":1782,"children":1783},{"style":364},[1784],{"type":327,"value":1356},{"type":321,"tag":357,"props":1786,"children":1787},{"style":364},[1788],{"type":327,"value":1510},{"type":321,"tag":357,"props":1790,"children":1791},{"style":466},[1792],{"type":327,"value":1793}," Unpaid",{"type":321,"tag":357,"props":1795,"children":1796},{"style":364},[1797],{"type":327,"value":474},{"type":321,"tag":357,"props":1799,"children":1800},{"style":487},[1801],{"type":327,"value":1277},{"type":321,"tag":357,"props":1803,"children":1804},{"style":370},[1805],{"type":327,"value":495},{"type":321,"tag":357,"props":1807,"children":1809},{"class":359,"line":1808},54,[1810,1814,1818,1822,1826],{"type":321,"tag":357,"props":1811,"children":1812},{"style":466},[1813],{"type":327,"value":1289},{"type":321,"tag":357,"props":1815,"children":1816},{"style":364},[1817],{"type":327,"value":519},{"type":321,"tag":357,"props":1819,"children":1820},{"style":466},[1821],{"type":327,"value":1366},{"type":321,"tag":357,"props":1823,"children":1824},{"style":370},[1825],{"type":327,"value":484},{"type":321,"tag":357,"props":1827,"children":1828},{"style":466},[1829],{"type":327,"value":1830},"Unpaid\n",{"type":321,"tag":357,"props":1832,"children":1834},{"class":359,"line":1833},55,[1835],{"type":321,"tag":357,"props":1836,"children":1837},{"style":370},[1838],{"type":327,"value":795},{"type":321,"tag":357,"props":1840,"children":1842},{"class":359,"line":1841},56,[1843],{"type":321,"tag":357,"props":1844,"children":1845},{"emptyLinePlaceholder":446},[1846],{"type":327,"value":449},{"type":321,"tag":357,"props":1848,"children":1850},{"class":359,"line":1849},57,[1851,1855,1859,1864,1868,1872],{"type":321,"tag":357,"props":1852,"children":1853},{"style":364},[1854],{"type":327,"value":1356},{"type":321,"tag":357,"props":1856,"children":1857},{"style":364},[1858],{"type":327,"value":1510},{"type":321,"tag":357,"props":1860,"children":1861},{"style":466},[1862],{"type":327,"value":1863}," Trial",{"type":321,"tag":357,"props":1865,"children":1866},{"style":364},[1867],{"type":327,"value":474},{"type":321,"tag":357,"props":1869,"children":1870},{"style":487},[1871],{"type":327,"value":1277},{"type":321,"tag":357,"props":1873,"children":1874},{"style":370},[1875],{"type":327,"value":495},{"type":321,"tag":357,"props":1877,"children":1879},{"class":359,"line":1878},58,[1880,1884,1888,1892,1896],{"type":321,"tag":357,"props":1881,"children":1882},{"style":466},[1883],{"type":327,"value":1289},{"type":321,"tag":357,"props":1885,"children":1886},{"style":364},[1887],{"type":327,"value":519},{"type":321,"tag":357,"props":1889,"children":1890},{"style":466},[1891],{"type":327,"value":1366},{"type":321,"tag":357,"props":1893,"children":1894},{"style":370},[1895],{"type":327,"value":484},{"type":321,"tag":357,"props":1897,"children":1898},{"style":466},[1899],{"type":327,"value":1237},{"type":321,"tag":357,"props":1901,"children":1903},{"class":359,"line":1902},59,[1904,1908,1912],{"type":321,"tag":357,"props":1905,"children":1906},{"style":466},[1907],{"type":327,"value":1323},{"type":321,"tag":357,"props":1909,"children":1910},{"style":364},[1911],{"type":327,"value":519},{"type":321,"tag":357,"props":1913,"children":1914},{"style":466},[1915],{"type":327,"value":1315},{"type":321,"tag":357,"props":1917,"children":1919},{"class":359,"line":1918},60,[1920],{"type":321,"tag":357,"props":1921,"children":1922},{"style":370},[1923],{"type":327,"value":795},{"type":321,"tag":357,"props":1925,"children":1927},{"class":359,"line":1926},61,[1928],{"type":321,"tag":357,"props":1929,"children":1930},{"style":370},[1931],{"type":327,"value":804},{"type":321,"tag":357,"props":1933,"children":1935},{"class":359,"line":1934},62,[1936],{"type":321,"tag":357,"props":1937,"children":1938},{"emptyLinePlaceholder":446},[1939],{"type":327,"value":449},{"type":321,"tag":357,"props":1941,"children":1943},{"class":359,"line":1942},63,[1944,1948,1952,1957],{"type":321,"tag":357,"props":1945,"children":1946},{"style":364},[1947],{"type":327,"value":458},{"type":321,"tag":357,"props":1949,"children":1950},{"style":364},[1951],{"type":327,"value":1510},{"type":321,"tag":357,"props":1953,"children":1954},{"style":466},[1955],{"type":327,"value":1956}," Duration",{"type":321,"tag":357,"props":1958,"children":1959},{"style":370},[1960],{"type":327,"value":495},{"type":321,"tag":357,"props":1962,"children":1964},{"class":359,"line":1963},64,[1965,1970,1974],{"type":321,"tag":357,"props":1966,"children":1967},{"style":466},[1968],{"type":327,"value":1969},"    amount",{"type":321,"tag":357,"props":1971,"children":1972},{"style":364},[1973],{"type":327,"value":519},{"type":321,"tag":357,"props":1975,"children":1976},{"style":487},[1977],{"type":327,"value":1978}," number\n",{"type":321,"tag":357,"props":1980,"children":1982},{"class":359,"line":1981},65,[1983,1988,1992,1996,2000],{"type":321,"tag":357,"props":1984,"children":1985},{"style":466},[1986],{"type":327,"value":1987},"    unit",{"type":321,"tag":357,"props":1989,"children":1990},{"style":364},[1991],{"type":327,"value":519},{"type":321,"tag":357,"props":1993,"children":1994},{"style":466},[1995],{"type":327,"value":1956},{"type":321,"tag":357,"props":1997,"children":1998},{"style":370},[1999],{"type":327,"value":484},{"type":321,"tag":357,"props":2001,"children":2002},{"style":466},[2003],{"type":327,"value":2004},"Unit\n",{"type":321,"tag":357,"props":2006,"children":2008},{"class":359,"line":2007},66,[2009],{"type":321,"tag":357,"props":2010,"children":2011},{"style":370},[2012],{"type":327,"value":804},{"type":321,"tag":357,"props":2014,"children":2016},{"class":359,"line":2015},67,[2017],{"type":321,"tag":357,"props":2018,"children":2019},{"emptyLinePlaceholder":446},[2020],{"type":327,"value":449},{"type":321,"tag":357,"props":2022,"children":2024},{"class":359,"line":2023},68,[2025,2029,2033,2037],{"type":321,"tag":357,"props":2026,"children":2027},{"style":364},[2028],{"type":327,"value":458},{"type":321,"tag":357,"props":2030,"children":2031},{"style":364},[2032],{"type":327,"value":1256},{"type":321,"tag":357,"props":2034,"children":2035},{"style":466},[2036],{"type":327,"value":1956},{"type":321,"tag":357,"props":2038,"children":2039},{"style":370},[2040],{"type":327,"value":495},{"type":321,"tag":357,"props":2042,"children":2044},{"class":359,"line":2043},69,[2045,2049,2053,2058],{"type":321,"tag":357,"props":2046,"children":2047},{"style":364},[2048],{"type":327,"value":1356},{"type":321,"tag":357,"props":2050,"children":2051},{"style":364},[2052],{"type":327,"value":1361},{"type":321,"tag":357,"props":2054,"children":2055},{"style":466},[2056],{"type":327,"value":2057}," Unit",{"type":321,"tag":357,"props":2059,"children":2060},{"style":370},[2061],{"type":327,"value":495},{"type":321,"tag":357,"props":2063,"children":2065},{"class":359,"line":2064},70,[2066,2071,2075,2080],{"type":321,"tag":357,"props":2067,"children":2068},{"style":487},[2069],{"type":327,"value":2070},"        Month",{"type":321,"tag":357,"props":2072,"children":2073},{"style":364},[2074],{"type":327,"value":1155},{"type":321,"tag":357,"props":2076,"children":2077},{"style":381},[2078],{"type":327,"value":2079}," \"month\"",{"type":321,"tag":357,"props":2081,"children":2082},{"style":370},[2083],{"type":327,"value":1393},{"type":321,"tag":357,"props":2085,"children":2087},{"class":359,"line":2086},71,[2088,2093,2097],{"type":321,"tag":357,"props":2089,"children":2090},{"style":487},[2091],{"type":327,"value":2092},"        Year",{"type":321,"tag":357,"props":2094,"children":2095},{"style":364},[2096],{"type":327,"value":1155},{"type":321,"tag":357,"props":2098,"children":2099},{"style":381},[2100],{"type":327,"value":2101}," \"year\"\n",{"type":321,"tag":357,"props":2103,"children":2105},{"class":359,"line":2104},72,[2106],{"type":321,"tag":357,"props":2107,"children":2108},{"style":370},[2109],{"type":327,"value":795},{"type":321,"tag":357,"props":2111,"children":2113},{"class":359,"line":2112},73,[2114],{"type":321,"tag":357,"props":2115,"children":2116},{"style":370},[2117],{"type":327,"value":804},{"type":321,"tag":357,"props":2119,"children":2121},{"class":359,"line":2120},74,[2122],{"type":321,"tag":357,"props":2123,"children":2124},{"emptyLinePlaceholder":446},[2125],{"type":327,"value":449},{"type":321,"tag":357,"props":2127,"children":2129},{"class":359,"line":2128},75,[2130,2134,2138,2143],{"type":321,"tag":357,"props":2131,"children":2132},{"style":364},[2133],{"type":327,"value":458},{"type":321,"tag":357,"props":2135,"children":2136},{"style":364},[2137],{"type":327,"value":1510},{"type":321,"tag":357,"props":2139,"children":2140},{"style":466},[2141],{"type":327,"value":2142}," Period",{"type":321,"tag":357,"props":2144,"children":2145},{"style":370},[2146],{"type":327,"value":495},{"type":321,"tag":357,"props":2148,"children":2150},{"class":359,"line":2149},76,[2151,2156,2160],{"type":321,"tag":357,"props":2152,"children":2153},{"style":466},[2154],{"type":327,"value":2155},"    start",{"type":321,"tag":357,"props":2157,"children":2158},{"style":364},[2159],{"type":327,"value":519},{"type":321,"tag":357,"props":2161,"children":2162},{"style":466},[2163],{"type":327,"value":1656},{"type":321,"tag":357,"props":2165,"children":2167},{"class":359,"line":2166},77,[2168,2173,2177],{"type":321,"tag":357,"props":2169,"children":2170},{"style":466},[2171],{"type":327,"value":2172},"    end",{"type":321,"tag":357,"props":2174,"children":2175},{"style":364},[2176],{"type":327,"value":519},{"type":321,"tag":357,"props":2178,"children":2179},{"style":466},[2180],{"type":327,"value":1656},{"type":321,"tag":357,"props":2182,"children":2184},{"class":359,"line":2183},78,[2185],{"type":321,"tag":357,"props":2186,"children":2187},{"style":370},[2188],{"type":327,"value":804},{"type":321,"tag":357,"props":2190,"children":2192},{"class":359,"line":2191},79,[2193],{"type":321,"tag":357,"props":2194,"children":2195},{"emptyLinePlaceholder":446},[2196],{"type":327,"value":449},{"type":321,"tag":357,"props":2198,"children":2200},{"class":359,"line":2199},80,[2201,2205,2209,2213],{"type":321,"tag":357,"props":2202,"children":2203},{"style":364},[2204],{"type":327,"value":458},{"type":321,"tag":357,"props":2206,"children":2207},{"style":364},[2208],{"type":327,"value":1510},{"type":321,"tag":357,"props":2210,"children":2211},{"style":466},[2212],{"type":327,"value":949},{"type":321,"tag":357,"props":2214,"children":2215},{"style":370},[2216],{"type":327,"value":495},{"type":321,"tag":357,"props":2218,"children":2220},{"class":359,"line":2219},81,[2221,2225,2229],{"type":321,"tag":357,"props":2222,"children":2223},{"style":466},[2224],{"type":327,"value":889},{"type":321,"tag":357,"props":2226,"children":2227},{"style":364},[2228],{"type":327,"value":967},{"type":321,"tag":357,"props":2230,"children":2231},{"style":487},[2232],{"type":327,"value":898},{"type":321,"tag":357,"props":2234,"children":2236},{"class":359,"line":2235},82,[2237,2242,2246],{"type":321,"tag":357,"props":2238,"children":2239},{"style":466},[2240],{"type":327,"value":2241},"    price",{"type":321,"tag":357,"props":2243,"children":2244},{"style":364},[2245],{"type":327,"value":519},{"type":321,"tag":357,"props":2247,"children":2248},{"style":466},[2249],{"type":327,"value":2250}," Price\n",{"type":321,"tag":357,"props":2252,"children":2254},{"class":359,"line":2253},83,[2255,2260,2264],{"type":321,"tag":357,"props":2256,"children":2257},{"style":466},[2258],{"type":327,"value":2259},"    quantity",{"type":321,"tag":357,"props":2261,"children":2262},{"style":364},[2263],{"type":327,"value":519},{"type":321,"tag":357,"props":2265,"children":2266},{"style":487},[2267],{"type":327,"value":1978},{"type":321,"tag":357,"props":2269,"children":2271},{"class":359,"line":2270},84,[2272],{"type":321,"tag":357,"props":2273,"children":2274},{"style":370},[2275],{"type":327,"value":804},{"type":321,"tag":357,"props":2277,"children":2279},{"class":359,"line":2278},85,[2280],{"type":321,"tag":357,"props":2281,"children":2282},{"emptyLinePlaceholder":446},[2283],{"type":327,"value":449},{"type":321,"tag":357,"props":2285,"children":2287},{"class":359,"line":2286},86,[2288,2292,2296,2300],{"type":321,"tag":357,"props":2289,"children":2290},{"style":364},[2291],{"type":327,"value":458},{"type":321,"tag":357,"props":2293,"children":2294},{"style":364},[2295],{"type":327,"value":1510},{"type":321,"tag":357,"props":2297,"children":2298},{"style":466},[2299],{"type":327,"value":972},{"type":321,"tag":357,"props":2301,"children":2302},{"style":370},[2303],{"type":327,"value":495},{"type":321,"tag":357,"props":2305,"children":2307},{"class":359,"line":2306},87,[2308,2313,2317],{"type":321,"tag":357,"props":2309,"children":2310},{"style":466},[2311],{"type":327,"value":2312},"    coupon",{"type":321,"tag":357,"props":2314,"children":2315},{"style":364},[2316],{"type":327,"value":519},{"type":321,"tag":357,"props":2318,"children":2319},{"style":466},[2320],{"type":327,"value":2321}," Coupon\n",{"type":321,"tag":357,"props":2323,"children":2325},{"class":359,"line":2324},88,[2326,2330,2334],{"type":321,"tag":357,"props":2327,"children":2328},{"style":466},[2329],{"type":327,"value":2155},{"type":321,"tag":357,"props":2331,"children":2332},{"style":364},[2333],{"type":327,"value":519},{"type":321,"tag":357,"props":2335,"children":2336},{"style":466},[2337],{"type":327,"value":1656},{"type":321,"tag":357,"props":2339,"children":2341},{"class":359,"line":2340},89,[2342,2346,2350],{"type":321,"tag":357,"props":2343,"children":2344},{"style":466},[2345],{"type":327,"value":2172},{"type":321,"tag":357,"props":2347,"children":2348},{"style":364},[2349],{"type":327,"value":967},{"type":321,"tag":357,"props":2351,"children":2352},{"style":466},[2353],{"type":327,"value":1656},{"type":321,"tag":357,"props":2355,"children":2357},{"class":359,"line":2356},90,[2358],{"type":321,"tag":357,"props":2359,"children":2360},{"style":370},[2361],{"type":327,"value":804},{"type":321,"tag":2363,"props":2364,"children":2365},"style",{},[2366],{"type":327,"value":2367},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":314,"searchDepth":415,"depth":415,"links":2369},[2370,2371],{"id":324,"depth":387,"text":328},{"id":336,"depth":387,"text":339},"markdown","content:99.integrations:2.models:3.subscription.md","content","99.integrations/2.models/3.subscription.md","99.integrations/2.models/3.subscription","md",{"loc":311},[2380,2384],{"_path":2381,"title":2382,"description":2383},"/integrations/models/price","Price Model","A price (also known as plan) defines the cost, currency and billing cycle of product or service.",{"_path":2385,"title":2386,"description":2387},"/integrations/models/coupon","Coupon Model","Coupon represents a code that can be redeemed for a discount.",{"_path":332,"_dir":514,"_draft":313,"_partial":313,"_locale":314,"type":2389,"properties":2390,"_id":2477,"_type":2478,"title":2479,"_source":2374,"_file":2480,"_stem":2481,"_extension":2478},"object",{"id":2391,"customerId":2394,"status":2396,"start":2456,"duration":2458,"items":2461,"discounts":2473},{"type":1003,"severity":2392,"description":2393},"required","The unique identifier of the subscription",{"type":1003,"severity":2392,"description":2395},"ID of the customer to whom the subscription belongs.",{"type":2397,"description":2398,"severity":2392,"oneOf":2399},"union","Includes `status.name` and status-specific fields. View details bellow.",[2400,2414,2428,2437,2445],{"type":2389,"title":1168,"description":2401,"properties":2402},"Indicates that the subscription is active. This is the default status.",{"name":2403,"currentPeriod":2408,"trial":2411},{"type":2404,"severity":2392,"description":2405,"values":2406},"enum","The name of the status.",[2407],"'active'",{"severity":2392,"ref":2409,"description":2410},"/types/subscription/period.type.json","Current billing period duration",{"severity":2412,"ref":2409,"description":2413},"optional","Trial period duration, if the subscription has/had trial period. If you plan to support :badge{label='Trial Offer'}, you should provide this information, otherwise ignore it",{"title":1203,"type":2389,"description":2415,"properties":2416},"Indicates that the subscription is paused. Required for the :badge{label='Pause Offer'}",{"name":2417,"start":2420,"end":2423,"currentPeriod":2426,"trial":2427},{"type":2404,"severity":2392,"description":2405,"values":2418},[2419],"'paused'",{"type":2421,"severity":2392,"description":2422},"Date","Date when the subscription was paused",{"type":2421,"severity":2424,"description":2425},"recommended","Date when the subscription will be resumed",{"severity":2412,"ref":2409,"description":2410},{"severity":2412,"ref":2409,"description":2413},{"title":1186,"type":2389,"description":2429,"properties":2430},"Indicates that the subscription is canceled",{"name":2431,"canceledAt":2434,"trial":2436},{"type":2404,"severity":2392,"description":2405,"values":2432},[2433],"'canceled'",{"type":2421,"description":2435},"Date when the subscription was canceled",{"severity":2412,"ref":2409,"description":2413},{"title":1220,"type":2389,"description":2438,"properties":2439},"Indicates that the subscription is unpaid or past due",{"name":2440,"currentPeriod":2443,"trial":2444},{"type":2404,"severity":2392,"description":2405,"values":2441},[2442],"'unpaid'",{"severity":2412,"description":2410,"ref":2409},{"severity":2412,"ref":2409,"description":2413},{"title":2446,"type":2389,"description":2447,"properties":2448},"Trial","Indicates that the subscription is in a trial period. Required for :badge{label=\"Trial Offer\"}",{"name":2449,"currentPeriod":2452,"trial":2454},{"type":2404,"severity":2392,"description":2405,"values":2450},[2451],"'trial'",{"severity":2392,"description":2453,"ref":2409},"Current period duration",{"severity":2392,"ref":2409,"description":2455},"Trial period duration, if the subscription has/had trial period.",{"type":2421,"severity":2392,"description":2457},"The start date of the subscription",{"severity":2392,"description":2459,"ref":2460},"The duration of the subscription, also known as the billing cycle","/types/price/duration.type.json",{"type":2462,"severity":2392,"description":2463,"items":2464},"array","The items included in the subscription. Each item represents a product or service and its quantity. Make sure you already have a [Price model](/integrations/models/price) to use it here.",{"type":2389,"properties":2465},{"id":2466,"price":2468,"quantity":2470},{"type":1003,"severity":2412,"description":2467},"Unique identifier of the item, leave it empty if your app doesn't have `item.id`",{"type":2389,"severity":2392,"description":2469},"The price of the item. See [Price model documentation](/integrations/models/price)",{"type":2471,"severity":2392,"description":2472},"integer","The quantity of the item",{"type":2462,"severity":2412,"description":2474,"items":2475},"If your app has subscription level discounts, you can specify them in the `discounts` array. Make sure you already have a [Coupon model](/integrations/models/coupon) to use it here. Required for the :badge{label='Discount Offer'}.",{"ref":2476},"/types/coupon/discount.type.json","content:types:subscription:subscription.type.json","json","SubscriptionType","types/subscription/subscription.type.json","types/subscription/subscription.type",{"data":2483,"body":2484,"excerpt":-1,"toc":2491},{"title":314,"description":2393},{"type":318,"children":2485},[2486],{"type":321,"tag":2487,"props":2488,"children":2489},"p",{},[2490],{"type":327,"value":2393},{"title":314,"searchDepth":387,"depth":387,"links":2492},[],{"data":2494,"body":2495,"excerpt":-1,"toc":2501},{"title":314,"description":2395},{"type":318,"children":2496},[2497],{"type":321,"tag":2487,"props":2498,"children":2499},{},[2500],{"type":327,"value":2395},{"title":314,"searchDepth":387,"depth":387,"links":2502},[],{"data":2504,"body":2506,"excerpt":-1,"toc":2521},{"title":314,"description":2505},"Includes status.name and status-specific fields. View details bellow.",{"type":318,"children":2507},[2508],{"type":321,"tag":2487,"props":2509,"children":2510},{},[2511,2513,2519],{"type":327,"value":2512},"Includes ",{"type":321,"tag":353,"props":2514,"children":2516},{"className":2515},[],[2517],{"type":327,"value":2518},"status.name",{"type":327,"value":2520}," and status-specific fields. View details bellow.",{"title":314,"searchDepth":387,"depth":387,"links":2522},[],{"data":2524,"body":2525,"excerpt":-1,"toc":2531},{"title":314,"description":2457},{"type":318,"children":2526},[2527],{"type":321,"tag":2487,"props":2528,"children":2529},{},[2530],{"type":327,"value":2457},{"title":314,"searchDepth":387,"depth":387,"links":2532},[],{"data":2534,"body":2536,"excerpt":-1,"toc":2551},{"title":314,"description":2535},"The items included in the subscription. Each item represents a product or service and its quantity. Make sure you already have a Price model to use it here.",{"type":318,"children":2537},[2538],{"type":321,"tag":2487,"props":2539,"children":2540},{},[2541,2543,2549],{"type":327,"value":2542},"The items included in the subscription. Each item represents a product or service and its quantity. Make sure you already have a ",{"type":321,"tag":2544,"props":2545,"children":2546},"a",{"href":2381},[2547],{"type":327,"value":2548},"Price model",{"type":327,"value":2550}," to use it here.",{"title":314,"searchDepth":387,"depth":387,"links":2552},[],{"data":2554,"body":2556,"excerpt":-1,"toc":2584},{"title":314,"description":2555},"If your app has subscription level discounts, you can specify them in the discounts array. Make sure you already have a Coupon model to use it here. Required for the .",{"type":318,"children":2557},[2558],{"type":321,"tag":2487,"props":2559,"children":2560},{},[2561,2563,2569,2571,2576,2578,2583],{"type":327,"value":2562},"If your app has subscription level discounts, you can specify them in the ",{"type":321,"tag":353,"props":2564,"children":2566},{"className":2565},[],[2567],{"type":327,"value":2568},"discounts",{"type":327,"value":2570}," array. Make sure you already have a ",{"type":321,"tag":2544,"props":2572,"children":2573},{"href":2385},[2574],{"type":327,"value":2575},"Coupon model",{"type":327,"value":2577}," to use it here. Required for the ",{"type":321,"tag":2579,"props":2580,"children":2582},"badge",{"label":2581},"Discount Offer",[],{"type":327,"value":484},{"title":314,"searchDepth":387,"depth":387,"links":2585},[],{"_path":2587,"_dir":2588,"_draft":313,"_partial":313,"_locale":314,"type":2389,"properties":2589,"_id":2596,"_type":2478,"title":2597,"_source":2374,"_file":2598,"_stem":2599,"_extension":2478},"/types/coupon/discount.type","coupon",{"coupon":2590,"start":2592,"end":2594},{"type":2389,"severity":2392,"description":2591},"Coupon applied to the subscription. See [Coupon model documentation](/integrations/models/coupon).",{"type":2421,"severity":2392,"description":2593},"Date when the discount was applied.",{"type":2421,"severity":2412,"description":2595},"Date when the discount will expire. If not set, the discount considered to be permanent.","content:types:coupon:discount.type.json","DiscountType","types/coupon/discount.type.json","types/coupon/discount.type",{"_path":2601,"_dir":2602,"_draft":313,"_partial":313,"_locale":314,"type":2389,"properties":2603,"_id":2611,"_type":2478,"title":2612,"_source":2374,"_file":2613,"_stem":2614,"_extension":2478},"/types/price/duration.type","price",{"amount":2604,"unit":2606},{"type":2471,"severity":2392,"description":2605},"Amount of `unit`. For example, if `unit` is `month`, then `amount` is the number of months.",{"type":2404,"severity":2392,"description":2607,"values":2608},"Duration unit.",[2609,2610],"'month'","'year'","content:types:price:duration.type.json","DurationType","types/price/duration.type.json","types/price/duration.type",{"data":2616,"body":2617,"excerpt":-1,"toc":2623},{"title":314,"description":2459},{"type":318,"children":2618},[2619],{"type":321,"tag":2487,"props":2620,"children":2621},{},[2622],{"type":327,"value":2459},{"title":314,"searchDepth":387,"depth":387,"links":2624},[],1775515592158]