[{"data":1,"prerenderedAt":2220},["ShallowReactive",2],{"navigation":3,"/integrations/models/coupon":310,"/integrations/models/coupon-surround":2035,"/types/coupon/coupon.type":2044,"deaHGdSUsd":2140,"DjiM4Oq3dF":2151,"rJV9PzeCHg":2161,"o3JlugexAg":2171,"XdkFDCSOxJ":2190,"bEITSbKpOi":2200,"DmYhTHG5Nv":2210},[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":2028,"_id":2029,"_source":2030,"_file":2031,"_stem":2032,"_extension":2033,"sitemap":2034},"/integrations/models/coupon","models",false,"","Coupon Model","Coupon represents a code that can be redeemed for a discount.",{"type":318,"children":319,"toc":2024},"root",[320,329,334,340,2018],{"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/coupon/coupon.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,540],{"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'\n\nexport class Coupon extends Integrator.Coupon {\n    constructor(coupon: YourCoupon) {\n        super({\n            id: coupon.id,\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,395,441,475,489,498,513,522,531],{"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],{"type":321,"tag":357,"props":390,"children":392},{"emptyLinePlaceholder":391},true,[393],{"type":327,"value":394},"\n",{"type":321,"tag":357,"props":396,"children":398},{"class":359,"line":397},3,[399,404,409,415,420,425,430,436],{"type":321,"tag":357,"props":400,"children":401},{"style":364},[402],{"type":327,"value":403},"export",{"type":321,"tag":357,"props":405,"children":406},{"style":364},[407],{"type":327,"value":408}," class",{"type":321,"tag":357,"props":410,"children":412},{"style":411},"--shiki-light:#953800;--shiki-default:#953800;--shiki-dark:#FFA657",[413],{"type":327,"value":414}," Coupon",{"type":321,"tag":357,"props":416,"children":417},{"style":364},[418],{"type":327,"value":419}," extends",{"type":321,"tag":357,"props":421,"children":422},{"style":411},[423],{"type":327,"value":424}," Integrator",{"type":321,"tag":357,"props":426,"children":427},{"style":370},[428],{"type":327,"value":429},".",{"type":321,"tag":357,"props":431,"children":433},{"style":432},"--shiki-light:#0550AE;--shiki-default:#0550AE;--shiki-dark:#79C0FF",[434],{"type":327,"value":435},"Coupon",{"type":321,"tag":357,"props":437,"children":438},{"style":370},[439],{"type":327,"value":440}," {\n",{"type":321,"tag":357,"props":442,"children":444},{"class":359,"line":443},4,[445,450,455,460,465,470],{"type":321,"tag":357,"props":446,"children":447},{"style":364},[448],{"type":327,"value":449},"    constructor",{"type":321,"tag":357,"props":451,"children":452},{"style":370},[453],{"type":327,"value":454},"(",{"type":321,"tag":357,"props":456,"children":457},{"style":411},[458],{"type":327,"value":459},"coupon",{"type":321,"tag":357,"props":461,"children":462},{"style":364},[463],{"type":327,"value":464},":",{"type":321,"tag":357,"props":466,"children":467},{"style":411},[468],{"type":327,"value":469}," YourCoupon",{"type":321,"tag":357,"props":471,"children":472},{"style":370},[473],{"type":327,"value":474},") {\n",{"type":321,"tag":357,"props":476,"children":478},{"class":359,"line":477},5,[479,484],{"type":321,"tag":357,"props":480,"children":481},{"style":432},[482],{"type":327,"value":483},"        super",{"type":321,"tag":357,"props":485,"children":486},{"style":370},[487],{"type":327,"value":488},"({\n",{"type":321,"tag":357,"props":490,"children":492},{"class":359,"line":491},6,[493],{"type":321,"tag":357,"props":494,"children":495},{"style":370},[496],{"type":327,"value":497},"            id: coupon.id,\n",{"type":321,"tag":357,"props":499,"children":501},{"class":359,"line":500},7,[502,507],{"type":321,"tag":357,"props":503,"children":504},{"style":364},[505],{"type":327,"value":506},"            ...",{"type":321,"tag":357,"props":508,"children":510},{"style":509},"--shiki-light:#6E7781;--shiki-default:#6E7781;--shiki-dark:#8B949E",[511],{"type":327,"value":512}," // map other properties\n",{"type":321,"tag":357,"props":514,"children":516},{"class":359,"line":515},8,[517],{"type":321,"tag":357,"props":518,"children":519},{"style":370},[520],{"type":327,"value":521},"        })\n",{"type":321,"tag":357,"props":523,"children":525},{"class":359,"line":524},9,[526],{"type":321,"tag":357,"props":527,"children":528},{"style":370},[529],{"type":327,"value":530},"    }\n",{"type":321,"tag":357,"props":532,"children":534},{"class":359,"line":533},10,[535],{"type":321,"tag":357,"props":536,"children":537},{"style":370},[538],{"type":327,"value":539},"}\n",{"type":321,"tag":345,"props":541,"children":544},{"className":347,"code":542,"filename":543,"language":350,"meta":314,"style":314},"interface Coupon {\n    id: string\n    duration: Duration\n    value: Value\n    name?: string\n    code?: string\n    redemptions?: Redemptions\n    expiresAt?: Date\n}\n\nexport function Coupon(coupon: YourCoupon): Coupon {\n    return {\n        id: coupon.id,\n        ... // map other properties\n    }\n}\n\nexport type Duration = Duration.Once | Duration.Recurring | Duration.Forever | Duration.CycleAmount\n\nnamespace Duration {\n    export enum Type {\n        Once = \"once\",\n        Recurring = \"recurring\"\n        Forever = \"forever\"\n        CycleAmount = \"cycle-amount\"\n    }\n\n    interface Base {\n        type: Type\n    }\n\n    export interface Once extends Base {\n        type: Type.Once\n    }\n\n    export interface Recurring extends Base {\n        type: Type.Recurring\n        amount: number\n        unit: Duration.Unit\n    }\n\n    export interface Forever extends Base {\n        type: Type.Forever\n    }\n\n    export interface CycleAmount extends Base {\n        type: Type.CycleAmount\n        cycles: number\n    }\n\n    export enum Unit {\n        Month = \"month\",\n        Year = \"year\"\n    }\n}\n\n\nexport type Value = Value.Fixed | Value.Percentage\n\nexport namespace Value {\n    export enum Type {\n        Fixed = \"fixed\",\n        Percentage = \"percentage\"\n    }\n\n    interface Base {\n        type: Type\n    }\n\n    export interface Fixed extends Base {\n        type: Type.Fixed\n        currency: string\n        unit?: number\n        flat?: number\n    }\n\n    export interface Percentage extends Base {\n        type: Type.Percentage\n        percent: number\n        currency?: string\n    }\n}\n\nexport interface Redemptions {\n    max?: number\n    current?: number\n}\n","Typescript",[545],{"type":321,"tag":353,"props":546,"children":547},{"__ignoreMap":314},[548,564,581,598,615,632,648,665,682,689,696,747,760,769,782,790,798,806,894,902,919,942,965,983,1001,1019,1027,1035,1053,1071,1079,1087,1117,1142,1150,1158,1187,1212,1230,1256,1264,1272,1301,1326,1334,1342,1371,1395,1412,1420,1428,1449,1471,1489,1497,1505,1513,1521,1572,1580,1601,1621,1643,1661,1669,1677,1693,1709,1717,1725,1754,1779,1796,1812,1829,1837,1845,1874,1898,1915,1931,1939,1947,1955,1976,1993,2010],{"type":321,"tag":357,"props":549,"children":550},{"class":359,"line":360},[551,556,560],{"type":321,"tag":357,"props":552,"children":553},{"style":364},[554],{"type":327,"value":555},"interface",{"type":321,"tag":357,"props":557,"children":558},{"style":411},[559],{"type":327,"value":414},{"type":321,"tag":357,"props":561,"children":562},{"style":370},[563],{"type":327,"value":440},{"type":321,"tag":357,"props":565,"children":566},{"class":359,"line":387},[567,572,576],{"type":321,"tag":357,"props":568,"children":569},{"style":411},[570],{"type":327,"value":571},"    id",{"type":321,"tag":357,"props":573,"children":574},{"style":364},[575],{"type":327,"value":464},{"type":321,"tag":357,"props":577,"children":578},{"style":432},[579],{"type":327,"value":580}," string\n",{"type":321,"tag":357,"props":582,"children":583},{"class":359,"line":397},[584,589,593],{"type":321,"tag":357,"props":585,"children":586},{"style":411},[587],{"type":327,"value":588},"    duration",{"type":321,"tag":357,"props":590,"children":591},{"style":364},[592],{"type":327,"value":464},{"type":321,"tag":357,"props":594,"children":595},{"style":411},[596],{"type":327,"value":597}," Duration\n",{"type":321,"tag":357,"props":599,"children":600},{"class":359,"line":443},[601,606,610],{"type":321,"tag":357,"props":602,"children":603},{"style":411},[604],{"type":327,"value":605},"    value",{"type":321,"tag":357,"props":607,"children":608},{"style":364},[609],{"type":327,"value":464},{"type":321,"tag":357,"props":611,"children":612},{"style":411},[613],{"type":327,"value":614}," Value\n",{"type":321,"tag":357,"props":616,"children":617},{"class":359,"line":477},[618,623,628],{"type":321,"tag":357,"props":619,"children":620},{"style":411},[621],{"type":327,"value":622},"    name",{"type":321,"tag":357,"props":624,"children":625},{"style":364},[626],{"type":327,"value":627},"?:",{"type":321,"tag":357,"props":629,"children":630},{"style":432},[631],{"type":327,"value":580},{"type":321,"tag":357,"props":633,"children":634},{"class":359,"line":491},[635,640,644],{"type":321,"tag":357,"props":636,"children":637},{"style":411},[638],{"type":327,"value":639},"    code",{"type":321,"tag":357,"props":641,"children":642},{"style":364},[643],{"type":327,"value":627},{"type":321,"tag":357,"props":645,"children":646},{"style":432},[647],{"type":327,"value":580},{"type":321,"tag":357,"props":649,"children":650},{"class":359,"line":500},[651,656,660],{"type":321,"tag":357,"props":652,"children":653},{"style":411},[654],{"type":327,"value":655},"    redemptions",{"type":321,"tag":357,"props":657,"children":658},{"style":364},[659],{"type":327,"value":627},{"type":321,"tag":357,"props":661,"children":662},{"style":411},[663],{"type":327,"value":664}," Redemptions\n",{"type":321,"tag":357,"props":666,"children":667},{"class":359,"line":515},[668,673,677],{"type":321,"tag":357,"props":669,"children":670},{"style":411},[671],{"type":327,"value":672},"    expiresAt",{"type":321,"tag":357,"props":674,"children":675},{"style":364},[676],{"type":327,"value":627},{"type":321,"tag":357,"props":678,"children":679},{"style":411},[680],{"type":327,"value":681}," Date\n",{"type":321,"tag":357,"props":683,"children":684},{"class":359,"line":524},[685],{"type":321,"tag":357,"props":686,"children":687},{"style":370},[688],{"type":327,"value":539},{"type":321,"tag":357,"props":690,"children":691},{"class":359,"line":533},[692],{"type":321,"tag":357,"props":693,"children":694},{"emptyLinePlaceholder":391},[695],{"type":327,"value":394},{"type":321,"tag":357,"props":697,"children":699},{"class":359,"line":698},11,[700,704,709,714,718,722,726,730,735,739,743],{"type":321,"tag":357,"props":701,"children":702},{"style":364},[703],{"type":327,"value":403},{"type":321,"tag":357,"props":705,"children":706},{"style":364},[707],{"type":327,"value":708}," function",{"type":321,"tag":357,"props":710,"children":712},{"style":711},"--shiki-light:#8250DF;--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[713],{"type":327,"value":414},{"type":321,"tag":357,"props":715,"children":716},{"style":370},[717],{"type":327,"value":454},{"type":321,"tag":357,"props":719,"children":720},{"style":411},[721],{"type":327,"value":459},{"type":321,"tag":357,"props":723,"children":724},{"style":364},[725],{"type":327,"value":464},{"type":321,"tag":357,"props":727,"children":728},{"style":411},[729],{"type":327,"value":469},{"type":321,"tag":357,"props":731,"children":732},{"style":370},[733],{"type":327,"value":734},")",{"type":321,"tag":357,"props":736,"children":737},{"style":364},[738],{"type":327,"value":464},{"type":321,"tag":357,"props":740,"children":741},{"style":411},[742],{"type":327,"value":414},{"type":321,"tag":357,"props":744,"children":745},{"style":370},[746],{"type":327,"value":440},{"type":321,"tag":357,"props":748,"children":750},{"class":359,"line":749},12,[751,756],{"type":321,"tag":357,"props":752,"children":753},{"style":364},[754],{"type":327,"value":755},"    return",{"type":321,"tag":357,"props":757,"children":758},{"style":370},[759],{"type":327,"value":440},{"type":321,"tag":357,"props":761,"children":763},{"class":359,"line":762},13,[764],{"type":321,"tag":357,"props":765,"children":766},{"style":370},[767],{"type":327,"value":768},"        id: coupon.id,\n",{"type":321,"tag":357,"props":770,"children":772},{"class":359,"line":771},14,[773,778],{"type":321,"tag":357,"props":774,"children":775},{"style":364},[776],{"type":327,"value":777},"        ...",{"type":321,"tag":357,"props":779,"children":780},{"style":509},[781],{"type":327,"value":512},{"type":321,"tag":357,"props":783,"children":785},{"class":359,"line":784},15,[786],{"type":321,"tag":357,"props":787,"children":788},{"style":370},[789],{"type":327,"value":530},{"type":321,"tag":357,"props":791,"children":793},{"class":359,"line":792},16,[794],{"type":321,"tag":357,"props":795,"children":796},{"style":370},[797],{"type":327,"value":539},{"type":321,"tag":357,"props":799,"children":801},{"class":359,"line":800},17,[802],{"type":321,"tag":357,"props":803,"children":804},{"emptyLinePlaceholder":391},[805],{"type":327,"value":394},{"type":321,"tag":357,"props":807,"children":809},{"class":359,"line":808},18,[810,814,819,824,829,833,837,842,847,851,855,860,864,868,872,877,881,885,889],{"type":321,"tag":357,"props":811,"children":812},{"style":364},[813],{"type":327,"value":403},{"type":321,"tag":357,"props":815,"children":816},{"style":364},[817],{"type":327,"value":818}," type",{"type":321,"tag":357,"props":820,"children":821},{"style":411},[822],{"type":327,"value":823}," Duration",{"type":321,"tag":357,"props":825,"children":826},{"style":364},[827],{"type":327,"value":828}," =",{"type":321,"tag":357,"props":830,"children":831},{"style":411},[832],{"type":327,"value":823},{"type":321,"tag":357,"props":834,"children":835},{"style":370},[836],{"type":327,"value":429},{"type":321,"tag":357,"props":838,"children":839},{"style":411},[840],{"type":327,"value":841},"Once",{"type":321,"tag":357,"props":843,"children":844},{"style":364},[845],{"type":327,"value":846}," |",{"type":321,"tag":357,"props":848,"children":849},{"style":411},[850],{"type":327,"value":823},{"type":321,"tag":357,"props":852,"children":853},{"style":370},[854],{"type":327,"value":429},{"type":321,"tag":357,"props":856,"children":857},{"style":411},[858],{"type":327,"value":859},"Recurring",{"type":321,"tag":357,"props":861,"children":862},{"style":364},[863],{"type":327,"value":846},{"type":321,"tag":357,"props":865,"children":866},{"style":411},[867],{"type":327,"value":823},{"type":321,"tag":357,"props":869,"children":870},{"style":370},[871],{"type":327,"value":429},{"type":321,"tag":357,"props":873,"children":874},{"style":411},[875],{"type":327,"value":876},"Forever",{"type":321,"tag":357,"props":878,"children":879},{"style":364},[880],{"type":327,"value":846},{"type":321,"tag":357,"props":882,"children":883},{"style":411},[884],{"type":327,"value":823},{"type":321,"tag":357,"props":886,"children":887},{"style":370},[888],{"type":327,"value":429},{"type":321,"tag":357,"props":890,"children":891},{"style":411},[892],{"type":327,"value":893},"CycleAmount\n",{"type":321,"tag":357,"props":895,"children":897},{"class":359,"line":896},19,[898],{"type":321,"tag":357,"props":899,"children":900},{"emptyLinePlaceholder":391},[901],{"type":327,"value":394},{"type":321,"tag":357,"props":903,"children":905},{"class":359,"line":904},20,[906,911,915],{"type":321,"tag":357,"props":907,"children":908},{"style":364},[909],{"type":327,"value":910},"namespace",{"type":321,"tag":357,"props":912,"children":913},{"style":411},[914],{"type":327,"value":823},{"type":321,"tag":357,"props":916,"children":917},{"style":370},[918],{"type":327,"value":440},{"type":321,"tag":357,"props":920,"children":922},{"class":359,"line":921},21,[923,928,933,938],{"type":321,"tag":357,"props":924,"children":925},{"style":364},[926],{"type":327,"value":927},"    export",{"type":321,"tag":357,"props":929,"children":930},{"style":364},[931],{"type":327,"value":932}," enum",{"type":321,"tag":357,"props":934,"children":935},{"style":411},[936],{"type":327,"value":937}," Type",{"type":321,"tag":357,"props":939,"children":940},{"style":370},[941],{"type":327,"value":440},{"type":321,"tag":357,"props":943,"children":945},{"class":359,"line":944},22,[946,951,955,960],{"type":321,"tag":357,"props":947,"children":948},{"style":432},[949],{"type":327,"value":950},"        Once",{"type":321,"tag":357,"props":952,"children":953},{"style":364},[954],{"type":327,"value":828},{"type":321,"tag":357,"props":956,"children":957},{"style":381},[958],{"type":327,"value":959}," \"once\"",{"type":321,"tag":357,"props":961,"children":962},{"style":370},[963],{"type":327,"value":964},",\n",{"type":321,"tag":357,"props":966,"children":968},{"class":359,"line":967},23,[969,974,978],{"type":321,"tag":357,"props":970,"children":971},{"style":432},[972],{"type":327,"value":973},"        Recurring",{"type":321,"tag":357,"props":975,"children":976},{"style":364},[977],{"type":327,"value":828},{"type":321,"tag":357,"props":979,"children":980},{"style":381},[981],{"type":327,"value":982}," \"recurring\"\n",{"type":321,"tag":357,"props":984,"children":986},{"class":359,"line":985},24,[987,992,996],{"type":321,"tag":357,"props":988,"children":989},{"style":432},[990],{"type":327,"value":991},"        Forever",{"type":321,"tag":357,"props":993,"children":994},{"style":364},[995],{"type":327,"value":828},{"type":321,"tag":357,"props":997,"children":998},{"style":381},[999],{"type":327,"value":1000}," \"forever\"\n",{"type":321,"tag":357,"props":1002,"children":1004},{"class":359,"line":1003},25,[1005,1010,1014],{"type":321,"tag":357,"props":1006,"children":1007},{"style":432},[1008],{"type":327,"value":1009},"        CycleAmount",{"type":321,"tag":357,"props":1011,"children":1012},{"style":364},[1013],{"type":327,"value":828},{"type":321,"tag":357,"props":1015,"children":1016},{"style":381},[1017],{"type":327,"value":1018}," \"cycle-amount\"\n",{"type":321,"tag":357,"props":1020,"children":1022},{"class":359,"line":1021},26,[1023],{"type":321,"tag":357,"props":1024,"children":1025},{"style":370},[1026],{"type":327,"value":530},{"type":321,"tag":357,"props":1028,"children":1030},{"class":359,"line":1029},27,[1031],{"type":321,"tag":357,"props":1032,"children":1033},{"emptyLinePlaceholder":391},[1034],{"type":327,"value":394},{"type":321,"tag":357,"props":1036,"children":1038},{"class":359,"line":1037},28,[1039,1044,1049],{"type":321,"tag":357,"props":1040,"children":1041},{"style":364},[1042],{"type":327,"value":1043},"    interface",{"type":321,"tag":357,"props":1045,"children":1046},{"style":411},[1047],{"type":327,"value":1048}," Base",{"type":321,"tag":357,"props":1050,"children":1051},{"style":370},[1052],{"type":327,"value":440},{"type":321,"tag":357,"props":1054,"children":1056},{"class":359,"line":1055},29,[1057,1062,1066],{"type":321,"tag":357,"props":1058,"children":1059},{"style":411},[1060],{"type":327,"value":1061},"        type",{"type":321,"tag":357,"props":1063,"children":1064},{"style":364},[1065],{"type":327,"value":464},{"type":321,"tag":357,"props":1067,"children":1068},{"style":411},[1069],{"type":327,"value":1070}," Type\n",{"type":321,"tag":357,"props":1072,"children":1074},{"class":359,"line":1073},30,[1075],{"type":321,"tag":357,"props":1076,"children":1077},{"style":370},[1078],{"type":327,"value":530},{"type":321,"tag":357,"props":1080,"children":1082},{"class":359,"line":1081},31,[1083],{"type":321,"tag":357,"props":1084,"children":1085},{"emptyLinePlaceholder":391},[1086],{"type":327,"value":394},{"type":321,"tag":357,"props":1088,"children":1090},{"class":359,"line":1089},32,[1091,1095,1100,1105,1109,1113],{"type":321,"tag":357,"props":1092,"children":1093},{"style":364},[1094],{"type":327,"value":927},{"type":321,"tag":357,"props":1096,"children":1097},{"style":364},[1098],{"type":327,"value":1099}," interface",{"type":321,"tag":357,"props":1101,"children":1102},{"style":411},[1103],{"type":327,"value":1104}," Once",{"type":321,"tag":357,"props":1106,"children":1107},{"style":364},[1108],{"type":327,"value":419},{"type":321,"tag":357,"props":1110,"children":1111},{"style":432},[1112],{"type":327,"value":1048},{"type":321,"tag":357,"props":1114,"children":1115},{"style":370},[1116],{"type":327,"value":440},{"type":321,"tag":357,"props":1118,"children":1120},{"class":359,"line":1119},33,[1121,1125,1129,1133,1137],{"type":321,"tag":357,"props":1122,"children":1123},{"style":411},[1124],{"type":327,"value":1061},{"type":321,"tag":357,"props":1126,"children":1127},{"style":364},[1128],{"type":327,"value":464},{"type":321,"tag":357,"props":1130,"children":1131},{"style":411},[1132],{"type":327,"value":937},{"type":321,"tag":357,"props":1134,"children":1135},{"style":370},[1136],{"type":327,"value":429},{"type":321,"tag":357,"props":1138,"children":1139},{"style":411},[1140],{"type":327,"value":1141},"Once\n",{"type":321,"tag":357,"props":1143,"children":1145},{"class":359,"line":1144},34,[1146],{"type":321,"tag":357,"props":1147,"children":1148},{"style":370},[1149],{"type":327,"value":530},{"type":321,"tag":357,"props":1151,"children":1153},{"class":359,"line":1152},35,[1154],{"type":321,"tag":357,"props":1155,"children":1156},{"emptyLinePlaceholder":391},[1157],{"type":327,"value":394},{"type":321,"tag":357,"props":1159,"children":1161},{"class":359,"line":1160},36,[1162,1166,1170,1175,1179,1183],{"type":321,"tag":357,"props":1163,"children":1164},{"style":364},[1165],{"type":327,"value":927},{"type":321,"tag":357,"props":1167,"children":1168},{"style":364},[1169],{"type":327,"value":1099},{"type":321,"tag":357,"props":1171,"children":1172},{"style":411},[1173],{"type":327,"value":1174}," Recurring",{"type":321,"tag":357,"props":1176,"children":1177},{"style":364},[1178],{"type":327,"value":419},{"type":321,"tag":357,"props":1180,"children":1181},{"style":432},[1182],{"type":327,"value":1048},{"type":321,"tag":357,"props":1184,"children":1185},{"style":370},[1186],{"type":327,"value":440},{"type":321,"tag":357,"props":1188,"children":1190},{"class":359,"line":1189},37,[1191,1195,1199,1203,1207],{"type":321,"tag":357,"props":1192,"children":1193},{"style":411},[1194],{"type":327,"value":1061},{"type":321,"tag":357,"props":1196,"children":1197},{"style":364},[1198],{"type":327,"value":464},{"type":321,"tag":357,"props":1200,"children":1201},{"style":411},[1202],{"type":327,"value":937},{"type":321,"tag":357,"props":1204,"children":1205},{"style":370},[1206],{"type":327,"value":429},{"type":321,"tag":357,"props":1208,"children":1209},{"style":411},[1210],{"type":327,"value":1211},"Recurring\n",{"type":321,"tag":357,"props":1213,"children":1215},{"class":359,"line":1214},38,[1216,1221,1225],{"type":321,"tag":357,"props":1217,"children":1218},{"style":411},[1219],{"type":327,"value":1220},"        amount",{"type":321,"tag":357,"props":1222,"children":1223},{"style":364},[1224],{"type":327,"value":464},{"type":321,"tag":357,"props":1226,"children":1227},{"style":432},[1228],{"type":327,"value":1229}," number\n",{"type":321,"tag":357,"props":1231,"children":1233},{"class":359,"line":1232},39,[1234,1239,1243,1247,1251],{"type":321,"tag":357,"props":1235,"children":1236},{"style":411},[1237],{"type":327,"value":1238},"        unit",{"type":321,"tag":357,"props":1240,"children":1241},{"style":364},[1242],{"type":327,"value":464},{"type":321,"tag":357,"props":1244,"children":1245},{"style":411},[1246],{"type":327,"value":823},{"type":321,"tag":357,"props":1248,"children":1249},{"style":370},[1250],{"type":327,"value":429},{"type":321,"tag":357,"props":1252,"children":1253},{"style":411},[1254],{"type":327,"value":1255},"Unit\n",{"type":321,"tag":357,"props":1257,"children":1259},{"class":359,"line":1258},40,[1260],{"type":321,"tag":357,"props":1261,"children":1262},{"style":370},[1263],{"type":327,"value":530},{"type":321,"tag":357,"props":1265,"children":1267},{"class":359,"line":1266},41,[1268],{"type":321,"tag":357,"props":1269,"children":1270},{"emptyLinePlaceholder":391},[1271],{"type":327,"value":394},{"type":321,"tag":357,"props":1273,"children":1275},{"class":359,"line":1274},42,[1276,1280,1284,1289,1293,1297],{"type":321,"tag":357,"props":1277,"children":1278},{"style":364},[1279],{"type":327,"value":927},{"type":321,"tag":357,"props":1281,"children":1282},{"style":364},[1283],{"type":327,"value":1099},{"type":321,"tag":357,"props":1285,"children":1286},{"style":411},[1287],{"type":327,"value":1288}," Forever",{"type":321,"tag":357,"props":1290,"children":1291},{"style":364},[1292],{"type":327,"value":419},{"type":321,"tag":357,"props":1294,"children":1295},{"style":432},[1296],{"type":327,"value":1048},{"type":321,"tag":357,"props":1298,"children":1299},{"style":370},[1300],{"type":327,"value":440},{"type":321,"tag":357,"props":1302,"children":1304},{"class":359,"line":1303},43,[1305,1309,1313,1317,1321],{"type":321,"tag":357,"props":1306,"children":1307},{"style":411},[1308],{"type":327,"value":1061},{"type":321,"tag":357,"props":1310,"children":1311},{"style":364},[1312],{"type":327,"value":464},{"type":321,"tag":357,"props":1314,"children":1315},{"style":411},[1316],{"type":327,"value":937},{"type":321,"tag":357,"props":1318,"children":1319},{"style":370},[1320],{"type":327,"value":429},{"type":321,"tag":357,"props":1322,"children":1323},{"style":411},[1324],{"type":327,"value":1325},"Forever\n",{"type":321,"tag":357,"props":1327,"children":1329},{"class":359,"line":1328},44,[1330],{"type":321,"tag":357,"props":1331,"children":1332},{"style":370},[1333],{"type":327,"value":530},{"type":321,"tag":357,"props":1335,"children":1337},{"class":359,"line":1336},45,[1338],{"type":321,"tag":357,"props":1339,"children":1340},{"emptyLinePlaceholder":391},[1341],{"type":327,"value":394},{"type":321,"tag":357,"props":1343,"children":1345},{"class":359,"line":1344},46,[1346,1350,1354,1359,1363,1367],{"type":321,"tag":357,"props":1347,"children":1348},{"style":364},[1349],{"type":327,"value":927},{"type":321,"tag":357,"props":1351,"children":1352},{"style":364},[1353],{"type":327,"value":1099},{"type":321,"tag":357,"props":1355,"children":1356},{"style":411},[1357],{"type":327,"value":1358}," CycleAmount",{"type":321,"tag":357,"props":1360,"children":1361},{"style":364},[1362],{"type":327,"value":419},{"type":321,"tag":357,"props":1364,"children":1365},{"style":432},[1366],{"type":327,"value":1048},{"type":321,"tag":357,"props":1368,"children":1369},{"style":370},[1370],{"type":327,"value":440},{"type":321,"tag":357,"props":1372,"children":1374},{"class":359,"line":1373},47,[1375,1379,1383,1387,1391],{"type":321,"tag":357,"props":1376,"children":1377},{"style":411},[1378],{"type":327,"value":1061},{"type":321,"tag":357,"props":1380,"children":1381},{"style":364},[1382],{"type":327,"value":464},{"type":321,"tag":357,"props":1384,"children":1385},{"style":411},[1386],{"type":327,"value":937},{"type":321,"tag":357,"props":1388,"children":1389},{"style":370},[1390],{"type":327,"value":429},{"type":321,"tag":357,"props":1392,"children":1393},{"style":411},[1394],{"type":327,"value":893},{"type":321,"tag":357,"props":1396,"children":1398},{"class":359,"line":1397},48,[1399,1404,1408],{"type":321,"tag":357,"props":1400,"children":1401},{"style":411},[1402],{"type":327,"value":1403},"        cycles",{"type":321,"tag":357,"props":1405,"children":1406},{"style":364},[1407],{"type":327,"value":464},{"type":321,"tag":357,"props":1409,"children":1410},{"style":432},[1411],{"type":327,"value":1229},{"type":321,"tag":357,"props":1413,"children":1415},{"class":359,"line":1414},49,[1416],{"type":321,"tag":357,"props":1417,"children":1418},{"style":370},[1419],{"type":327,"value":530},{"type":321,"tag":357,"props":1421,"children":1423},{"class":359,"line":1422},50,[1424],{"type":321,"tag":357,"props":1425,"children":1426},{"emptyLinePlaceholder":391},[1427],{"type":327,"value":394},{"type":321,"tag":357,"props":1429,"children":1431},{"class":359,"line":1430},51,[1432,1436,1440,1445],{"type":321,"tag":357,"props":1433,"children":1434},{"style":364},[1435],{"type":327,"value":927},{"type":321,"tag":357,"props":1437,"children":1438},{"style":364},[1439],{"type":327,"value":932},{"type":321,"tag":357,"props":1441,"children":1442},{"style":411},[1443],{"type":327,"value":1444}," Unit",{"type":321,"tag":357,"props":1446,"children":1447},{"style":370},[1448],{"type":327,"value":440},{"type":321,"tag":357,"props":1450,"children":1452},{"class":359,"line":1451},52,[1453,1458,1462,1467],{"type":321,"tag":357,"props":1454,"children":1455},{"style":432},[1456],{"type":327,"value":1457},"        Month",{"type":321,"tag":357,"props":1459,"children":1460},{"style":364},[1461],{"type":327,"value":828},{"type":321,"tag":357,"props":1463,"children":1464},{"style":381},[1465],{"type":327,"value":1466}," \"month\"",{"type":321,"tag":357,"props":1468,"children":1469},{"style":370},[1470],{"type":327,"value":964},{"type":321,"tag":357,"props":1472,"children":1474},{"class":359,"line":1473},53,[1475,1480,1484],{"type":321,"tag":357,"props":1476,"children":1477},{"style":432},[1478],{"type":327,"value":1479},"        Year",{"type":321,"tag":357,"props":1481,"children":1482},{"style":364},[1483],{"type":327,"value":828},{"type":321,"tag":357,"props":1485,"children":1486},{"style":381},[1487],{"type":327,"value":1488}," \"year\"\n",{"type":321,"tag":357,"props":1490,"children":1492},{"class":359,"line":1491},54,[1493],{"type":321,"tag":357,"props":1494,"children":1495},{"style":370},[1496],{"type":327,"value":530},{"type":321,"tag":357,"props":1498,"children":1500},{"class":359,"line":1499},55,[1501],{"type":321,"tag":357,"props":1502,"children":1503},{"style":370},[1504],{"type":327,"value":539},{"type":321,"tag":357,"props":1506,"children":1508},{"class":359,"line":1507},56,[1509],{"type":321,"tag":357,"props":1510,"children":1511},{"emptyLinePlaceholder":391},[1512],{"type":327,"value":394},{"type":321,"tag":357,"props":1514,"children":1516},{"class":359,"line":1515},57,[1517],{"type":321,"tag":357,"props":1518,"children":1519},{"emptyLinePlaceholder":391},[1520],{"type":327,"value":394},{"type":321,"tag":357,"props":1522,"children":1524},{"class":359,"line":1523},58,[1525,1529,1533,1538,1542,1546,1550,1555,1559,1563,1567],{"type":321,"tag":357,"props":1526,"children":1527},{"style":364},[1528],{"type":327,"value":403},{"type":321,"tag":357,"props":1530,"children":1531},{"style":364},[1532],{"type":327,"value":818},{"type":321,"tag":357,"props":1534,"children":1535},{"style":411},[1536],{"type":327,"value":1537}," Value",{"type":321,"tag":357,"props":1539,"children":1540},{"style":364},[1541],{"type":327,"value":828},{"type":321,"tag":357,"props":1543,"children":1544},{"style":411},[1545],{"type":327,"value":1537},{"type":321,"tag":357,"props":1547,"children":1548},{"style":370},[1549],{"type":327,"value":429},{"type":321,"tag":357,"props":1551,"children":1552},{"style":411},[1553],{"type":327,"value":1554},"Fixed",{"type":321,"tag":357,"props":1556,"children":1557},{"style":364},[1558],{"type":327,"value":846},{"type":321,"tag":357,"props":1560,"children":1561},{"style":411},[1562],{"type":327,"value":1537},{"type":321,"tag":357,"props":1564,"children":1565},{"style":370},[1566],{"type":327,"value":429},{"type":321,"tag":357,"props":1568,"children":1569},{"style":411},[1570],{"type":327,"value":1571},"Percentage\n",{"type":321,"tag":357,"props":1573,"children":1575},{"class":359,"line":1574},59,[1576],{"type":321,"tag":357,"props":1577,"children":1578},{"emptyLinePlaceholder":391},[1579],{"type":327,"value":394},{"type":321,"tag":357,"props":1581,"children":1583},{"class":359,"line":1582},60,[1584,1588,1593,1597],{"type":321,"tag":357,"props":1585,"children":1586},{"style":364},[1587],{"type":327,"value":403},{"type":321,"tag":357,"props":1589,"children":1590},{"style":364},[1591],{"type":327,"value":1592}," namespace",{"type":321,"tag":357,"props":1594,"children":1595},{"style":411},[1596],{"type":327,"value":1537},{"type":321,"tag":357,"props":1598,"children":1599},{"style":370},[1600],{"type":327,"value":440},{"type":321,"tag":357,"props":1602,"children":1604},{"class":359,"line":1603},61,[1605,1609,1613,1617],{"type":321,"tag":357,"props":1606,"children":1607},{"style":364},[1608],{"type":327,"value":927},{"type":321,"tag":357,"props":1610,"children":1611},{"style":364},[1612],{"type":327,"value":932},{"type":321,"tag":357,"props":1614,"children":1615},{"style":411},[1616],{"type":327,"value":937},{"type":321,"tag":357,"props":1618,"children":1619},{"style":370},[1620],{"type":327,"value":440},{"type":321,"tag":357,"props":1622,"children":1624},{"class":359,"line":1623},62,[1625,1630,1634,1639],{"type":321,"tag":357,"props":1626,"children":1627},{"style":432},[1628],{"type":327,"value":1629},"        Fixed",{"type":321,"tag":357,"props":1631,"children":1632},{"style":364},[1633],{"type":327,"value":828},{"type":321,"tag":357,"props":1635,"children":1636},{"style":381},[1637],{"type":327,"value":1638}," \"fixed\"",{"type":321,"tag":357,"props":1640,"children":1641},{"style":370},[1642],{"type":327,"value":964},{"type":321,"tag":357,"props":1644,"children":1646},{"class":359,"line":1645},63,[1647,1652,1656],{"type":321,"tag":357,"props":1648,"children":1649},{"style":432},[1650],{"type":327,"value":1651},"        Percentage",{"type":321,"tag":357,"props":1653,"children":1654},{"style":364},[1655],{"type":327,"value":828},{"type":321,"tag":357,"props":1657,"children":1658},{"style":381},[1659],{"type":327,"value":1660}," \"percentage\"\n",{"type":321,"tag":357,"props":1662,"children":1664},{"class":359,"line":1663},64,[1665],{"type":321,"tag":357,"props":1666,"children":1667},{"style":370},[1668],{"type":327,"value":530},{"type":321,"tag":357,"props":1670,"children":1672},{"class":359,"line":1671},65,[1673],{"type":321,"tag":357,"props":1674,"children":1675},{"emptyLinePlaceholder":391},[1676],{"type":327,"value":394},{"type":321,"tag":357,"props":1678,"children":1680},{"class":359,"line":1679},66,[1681,1685,1689],{"type":321,"tag":357,"props":1682,"children":1683},{"style":364},[1684],{"type":327,"value":1043},{"type":321,"tag":357,"props":1686,"children":1687},{"style":411},[1688],{"type":327,"value":1048},{"type":321,"tag":357,"props":1690,"children":1691},{"style":370},[1692],{"type":327,"value":440},{"type":321,"tag":357,"props":1694,"children":1696},{"class":359,"line":1695},67,[1697,1701,1705],{"type":321,"tag":357,"props":1698,"children":1699},{"style":411},[1700],{"type":327,"value":1061},{"type":321,"tag":357,"props":1702,"children":1703},{"style":364},[1704],{"type":327,"value":464},{"type":321,"tag":357,"props":1706,"children":1707},{"style":411},[1708],{"type":327,"value":1070},{"type":321,"tag":357,"props":1710,"children":1712},{"class":359,"line":1711},68,[1713],{"type":321,"tag":357,"props":1714,"children":1715},{"style":370},[1716],{"type":327,"value":530},{"type":321,"tag":357,"props":1718,"children":1720},{"class":359,"line":1719},69,[1721],{"type":321,"tag":357,"props":1722,"children":1723},{"emptyLinePlaceholder":391},[1724],{"type":327,"value":394},{"type":321,"tag":357,"props":1726,"children":1728},{"class":359,"line":1727},70,[1729,1733,1737,1742,1746,1750],{"type":321,"tag":357,"props":1730,"children":1731},{"style":364},[1732],{"type":327,"value":927},{"type":321,"tag":357,"props":1734,"children":1735},{"style":364},[1736],{"type":327,"value":1099},{"type":321,"tag":357,"props":1738,"children":1739},{"style":411},[1740],{"type":327,"value":1741}," Fixed",{"type":321,"tag":357,"props":1743,"children":1744},{"style":364},[1745],{"type":327,"value":419},{"type":321,"tag":357,"props":1747,"children":1748},{"style":432},[1749],{"type":327,"value":1048},{"type":321,"tag":357,"props":1751,"children":1752},{"style":370},[1753],{"type":327,"value":440},{"type":321,"tag":357,"props":1755,"children":1757},{"class":359,"line":1756},71,[1758,1762,1766,1770,1774],{"type":321,"tag":357,"props":1759,"children":1760},{"style":411},[1761],{"type":327,"value":1061},{"type":321,"tag":357,"props":1763,"children":1764},{"style":364},[1765],{"type":327,"value":464},{"type":321,"tag":357,"props":1767,"children":1768},{"style":411},[1769],{"type":327,"value":937},{"type":321,"tag":357,"props":1771,"children":1772},{"style":370},[1773],{"type":327,"value":429},{"type":321,"tag":357,"props":1775,"children":1776},{"style":411},[1777],{"type":327,"value":1778},"Fixed\n",{"type":321,"tag":357,"props":1780,"children":1782},{"class":359,"line":1781},72,[1783,1788,1792],{"type":321,"tag":357,"props":1784,"children":1785},{"style":411},[1786],{"type":327,"value":1787},"        currency",{"type":321,"tag":357,"props":1789,"children":1790},{"style":364},[1791],{"type":327,"value":464},{"type":321,"tag":357,"props":1793,"children":1794},{"style":432},[1795],{"type":327,"value":580},{"type":321,"tag":357,"props":1797,"children":1799},{"class":359,"line":1798},73,[1800,1804,1808],{"type":321,"tag":357,"props":1801,"children":1802},{"style":411},[1803],{"type":327,"value":1238},{"type":321,"tag":357,"props":1805,"children":1806},{"style":364},[1807],{"type":327,"value":627},{"type":321,"tag":357,"props":1809,"children":1810},{"style":432},[1811],{"type":327,"value":1229},{"type":321,"tag":357,"props":1813,"children":1815},{"class":359,"line":1814},74,[1816,1821,1825],{"type":321,"tag":357,"props":1817,"children":1818},{"style":411},[1819],{"type":327,"value":1820},"        flat",{"type":321,"tag":357,"props":1822,"children":1823},{"style":364},[1824],{"type":327,"value":627},{"type":321,"tag":357,"props":1826,"children":1827},{"style":432},[1828],{"type":327,"value":1229},{"type":321,"tag":357,"props":1830,"children":1832},{"class":359,"line":1831},75,[1833],{"type":321,"tag":357,"props":1834,"children":1835},{"style":370},[1836],{"type":327,"value":530},{"type":321,"tag":357,"props":1838,"children":1840},{"class":359,"line":1839},76,[1841],{"type":321,"tag":357,"props":1842,"children":1843},{"emptyLinePlaceholder":391},[1844],{"type":327,"value":394},{"type":321,"tag":357,"props":1846,"children":1848},{"class":359,"line":1847},77,[1849,1853,1857,1862,1866,1870],{"type":321,"tag":357,"props":1850,"children":1851},{"style":364},[1852],{"type":327,"value":927},{"type":321,"tag":357,"props":1854,"children":1855},{"style":364},[1856],{"type":327,"value":1099},{"type":321,"tag":357,"props":1858,"children":1859},{"style":411},[1860],{"type":327,"value":1861}," Percentage",{"type":321,"tag":357,"props":1863,"children":1864},{"style":364},[1865],{"type":327,"value":419},{"type":321,"tag":357,"props":1867,"children":1868},{"style":432},[1869],{"type":327,"value":1048},{"type":321,"tag":357,"props":1871,"children":1872},{"style":370},[1873],{"type":327,"value":440},{"type":321,"tag":357,"props":1875,"children":1877},{"class":359,"line":1876},78,[1878,1882,1886,1890,1894],{"type":321,"tag":357,"props":1879,"children":1880},{"style":411},[1881],{"type":327,"value":1061},{"type":321,"tag":357,"props":1883,"children":1884},{"style":364},[1885],{"type":327,"value":464},{"type":321,"tag":357,"props":1887,"children":1888},{"style":411},[1889],{"type":327,"value":937},{"type":321,"tag":357,"props":1891,"children":1892},{"style":370},[1893],{"type":327,"value":429},{"type":321,"tag":357,"props":1895,"children":1896},{"style":411},[1897],{"type":327,"value":1571},{"type":321,"tag":357,"props":1899,"children":1901},{"class":359,"line":1900},79,[1902,1907,1911],{"type":321,"tag":357,"props":1903,"children":1904},{"style":411},[1905],{"type":327,"value":1906},"        percent",{"type":321,"tag":357,"props":1908,"children":1909},{"style":364},[1910],{"type":327,"value":464},{"type":321,"tag":357,"props":1912,"children":1913},{"style":432},[1914],{"type":327,"value":1229},{"type":321,"tag":357,"props":1916,"children":1918},{"class":359,"line":1917},80,[1919,1923,1927],{"type":321,"tag":357,"props":1920,"children":1921},{"style":411},[1922],{"type":327,"value":1787},{"type":321,"tag":357,"props":1924,"children":1925},{"style":364},[1926],{"type":327,"value":627},{"type":321,"tag":357,"props":1928,"children":1929},{"style":432},[1930],{"type":327,"value":580},{"type":321,"tag":357,"props":1932,"children":1934},{"class":359,"line":1933},81,[1935],{"type":321,"tag":357,"props":1936,"children":1937},{"style":370},[1938],{"type":327,"value":530},{"type":321,"tag":357,"props":1940,"children":1942},{"class":359,"line":1941},82,[1943],{"type":321,"tag":357,"props":1944,"children":1945},{"style":370},[1946],{"type":327,"value":539},{"type":321,"tag":357,"props":1948,"children":1950},{"class":359,"line":1949},83,[1951],{"type":321,"tag":357,"props":1952,"children":1953},{"emptyLinePlaceholder":391},[1954],{"type":327,"value":394},{"type":321,"tag":357,"props":1956,"children":1958},{"class":359,"line":1957},84,[1959,1963,1967,1972],{"type":321,"tag":357,"props":1960,"children":1961},{"style":364},[1962],{"type":327,"value":403},{"type":321,"tag":357,"props":1964,"children":1965},{"style":364},[1966],{"type":327,"value":1099},{"type":321,"tag":357,"props":1968,"children":1969},{"style":411},[1970],{"type":327,"value":1971}," Redemptions",{"type":321,"tag":357,"props":1973,"children":1974},{"style":370},[1975],{"type":327,"value":440},{"type":321,"tag":357,"props":1977,"children":1979},{"class":359,"line":1978},85,[1980,1985,1989],{"type":321,"tag":357,"props":1981,"children":1982},{"style":411},[1983],{"type":327,"value":1984},"    max",{"type":321,"tag":357,"props":1986,"children":1987},{"style":364},[1988],{"type":327,"value":627},{"type":321,"tag":357,"props":1990,"children":1991},{"style":432},[1992],{"type":327,"value":1229},{"type":321,"tag":357,"props":1994,"children":1996},{"class":359,"line":1995},86,[1997,2002,2006],{"type":321,"tag":357,"props":1998,"children":1999},{"style":411},[2000],{"type":327,"value":2001},"    current",{"type":321,"tag":357,"props":2003,"children":2004},{"style":364},[2005],{"type":327,"value":627},{"type":321,"tag":357,"props":2007,"children":2008},{"style":432},[2009],{"type":327,"value":1229},{"type":321,"tag":357,"props":2011,"children":2013},{"class":359,"line":2012},87,[2014],{"type":321,"tag":357,"props":2015,"children":2016},{"style":370},[2017],{"type":327,"value":539},{"type":321,"tag":2019,"props":2020,"children":2021},"style",{},[2022],{"type":327,"value":2023},"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":397,"depth":397,"links":2025},[2026,2027],{"id":324,"depth":387,"text":328},{"id":336,"depth":387,"text":339},"markdown","content:99.integrations:2.models:4.coupon.md","content","99.integrations/2.models/4.coupon.md","99.integrations/2.models/4.coupon","md",{"loc":311},[2036,2040],{"_path":2037,"title":2038,"description":2039},"/integrations/models/subscription","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.",{"_path":2041,"title":2042,"description":2043},"/integrations/models/product","Product Model","Product represents a good or service that can be sold.",{"_path":332,"_dir":459,"_draft":313,"_partial":313,"_locale":314,"type":2045,"title":435,"properties":2046,"_id":2136,"_type":2137,"_source":2030,"_file":2138,"_stem":2139,"_extension":2137},"object",{"id":2047,"duration":2051,"value":2092,"name":2121,"code":2123,"redemptions":2126,"expiresAt":2133},{"type":2048,"severity":2049,"description":2050},"string","required","Unique identifier of the coupon",{"type":2052,"severity":2049,"description":2053,"oneOf":2054},"union","Duration of the coupon. See details below",[2055,2063,2077,2083],{"type":2045,"title":841,"description":2056,"properties":2057},"Coupon will be applied only once per subscription.",{"type":2058},{"type":2059,"severity":2049,"description":2060,"values":2061},"enum","Duration type",[2062],"'once'",{"type":2045,"title":859,"description":2064,"properties":2065},"Coupon will be applied to each billing cycle in specified duration.",{"type":2066,"amount":2069,"unit":2072},{"type":2059,"severity":2049,"description":2060,"values":2067},[2068],"'recurring'",{"type":2070,"severity":2049,"description":2071},"integer","Amount of `unit`. For example, if `unit` is `month`, then `amount` is the number of months.",{"type":2059,"severity":2049,"description":2073,"values":2074},"Duration unit.",[2075,2076],"'month'","'year'",{"type":2045,"title":876,"description":2078,"properties":2079},"Coupon will be applied to each billing cycle until the subscription is canceled.",{"type":2080},{"type":2059,"severity":2049,"description":2060,"values":2081},[2082],"'forever'",{"type":2045,"title":2084,"description":2085,"properties":2086},"Cycle Amount","Coupon will be applied to specified number of billing cycles.",{"type":2087,"cycles":2090},{"type":2059,"severity":2049,"description":2060,"values":2088},[2089],"'cycle-amount'",{"type":2070,"severity":2049,"description":2091},"Number of billing cycles the coupon will be applied.",{"type":2052,"severity":2049,"description":2093,"oneOf":2094},"Amount of the discount. See details below",[2095,2110],{"type":2045,"title":2096,"description":2097,"properties":2098},"Amount","Coupon will apply a fixed amount discount.",{"type":2099,"currency":2103,"unit":2105,"flat":2108},{"type":2059,"severity":2049,"description":2100,"values":2101},"Value type",[2102],"'amount'",{"type":2048,"severity":2049,"description":2104},"ISO currency code [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)",{"type":2070,"severity":2106,"description":2107},"optional","Amount of the discount per unit in cents",{"type":2070,"severity":2106,"description":2109},"Flat amount of the discount in cents",{"type":2045,"title":2111,"description":2112,"properties":2113},"Percentage","Coupon will apply a percentage discount.",{"type":2114,"percent":2117,"currency":2119},{"type":2059,"severity":2049,"description":2100,"values":2115},[2116],"'percent'",{"type":2070,"severity":2049,"description":2118},"Percentage of the discount `0 >= % \u003C= 100`",{"type":2048,"severity":2106,"description":2120},"ISO currency code [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). If specified, coupon can be applied only for this currency",{"type":2048,"severity":2106,"description":2122},"Customer-facing name of the coupon. If not provided, `code` will be used as name",{"type":2048,"severity":2124,"description":2125},"recommended","Unique code that can be redeemed for a discount.",{"type":2045,"description":2127,"properties":2128},"Redemption limits and counters",{"max":2129,"current":2131},{"type":2070,"description":2130},"Maximum number of redemptions allowed.",{"type":2070,"description":2132},"Current number of redemptions.",{"type":2134,"severity":2106,"description":2135},"Date","Date when the coupon expires. Leave empty for no expiration.","content:types:coupon:coupon.type.json","json","types/coupon/coupon.type.json","types/coupon/coupon.type",{"data":2141,"body":2142,"excerpt":-1,"toc":2149},{"title":314,"description":2050},{"type":318,"children":2143},[2144],{"type":321,"tag":2145,"props":2146,"children":2147},"p",{},[2148],{"type":327,"value":2050},{"title":314,"searchDepth":387,"depth":387,"links":2150},[],{"data":2152,"body":2153,"excerpt":-1,"toc":2159},{"title":314,"description":2053},{"type":318,"children":2154},[2155],{"type":321,"tag":2145,"props":2156,"children":2157},{},[2158],{"type":327,"value":2053},{"title":314,"searchDepth":387,"depth":387,"links":2160},[],{"data":2162,"body":2163,"excerpt":-1,"toc":2169},{"title":314,"description":2093},{"type":318,"children":2164},[2165],{"type":321,"tag":2145,"props":2166,"children":2167},{},[2168],{"type":327,"value":2093},{"title":314,"searchDepth":387,"depth":387,"links":2170},[],{"data":2172,"body":2174,"excerpt":-1,"toc":2188},{"title":314,"description":2173},"Customer-facing name of the coupon. If not provided, code will be used as name",{"type":318,"children":2175},[2176],{"type":321,"tag":2145,"props":2177,"children":2178},{},[2179,2181,2186],{"type":327,"value":2180},"Customer-facing name of the coupon. If not provided, ",{"type":321,"tag":353,"props":2182,"children":2184},{"className":2183},[],[2185],{"type":327,"value":353},{"type":327,"value":2187}," will be used as name",{"title":314,"searchDepth":387,"depth":387,"links":2189},[],{"data":2191,"body":2192,"excerpt":-1,"toc":2198},{"title":314,"description":2125},{"type":318,"children":2193},[2194],{"type":321,"tag":2145,"props":2195,"children":2196},{},[2197],{"type":327,"value":2125},{"title":314,"searchDepth":387,"depth":387,"links":2199},[],{"data":2201,"body":2202,"excerpt":-1,"toc":2208},{"title":314,"description":2127},{"type":318,"children":2203},[2204],{"type":321,"tag":2145,"props":2205,"children":2206},{},[2207],{"type":327,"value":2127},{"title":314,"searchDepth":387,"depth":387,"links":2209},[],{"data":2211,"body":2212,"excerpt":-1,"toc":2218},{"title":314,"description":2135},{"type":318,"children":2213},[2214],{"type":321,"tag":2145,"props":2215,"children":2216},{},[2217],{"type":327,"value":2135},{"title":314,"searchDepth":387,"depth":387,"links":2219},[],1775515592197]