[{"data":1,"prerenderedAt":2982},["ShallowReactive",2],{"navigation":3,"/integrations/models/price":310,"/integrations/models/price-surround":2759,"/types/price/price.type":2768,"74ly3G4aVH":2836,"FLSbyNSFwI":2846,"q7lmiFQ9wN":2868,"nzUiAzZx57":2878,"N2voRn593T":2913,"7nxKohJhiC":2937,"pC2tKjvxhD":2947,"/types/price/duration.type":2958,"RpouEoOHHs":2972},[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":2752,"_id":2753,"_source":2754,"_file":2755,"_stem":2756,"_extension":2757,"sitemap":2758},"/integrations/models/price","models",false,"","Price Model","A price (also known as plan) defines the cost, currency and billing cycle of product or service.",{"type":318,"children":319,"toc":2747},"root",[320,329,344,366,372,377,383,2741],{"type":321,"tag":322,"props":323,"children":325},"element","h2",{"id":324},"type",[326],{"type":327,"value":328},"text","Type",{"type":321,"tag":330,"props":331,"children":332},"p",{},[333,335,342],{"type":327,"value":334},"Depending on your app's architecture, prices can belong to a ",{"type":321,"tag":336,"props":337,"children":339},"a",{"href":338},"/integrations/models/product",[340],{"type":327,"value":341},"Product",{"type":327,"value":343}," or be standalone entities.\nIn both cases, you can start by implementing a standalone Price model, and later refactor it to add products support.",{"type":321,"tag":330,"props":345,"children":346},{},[347,349,355,357,364],{"type":327,"value":348},"If you implement a product-based price, you will need to create ",{"type":321,"tag":336,"props":350,"children":352},{"href":351},"/integrations/controllers/products",[353],{"type":327,"value":354},"a Products controller",{"type":327,"value":356}," and set the ",{"type":321,"tag":358,"props":359,"children":361},"code",{"className":360},[],[362],{"type":327,"value":363},"productId",{"type":327,"value":365}," property on the price.",{"type":321,"tag":322,"props":367,"children":369},{"id":368},"properties",[370],{"type":327,"value":371},"Properties",{"type":321,"tag":373,"props":374,"children":376},"field-schema",{"schema":375},"/types/price/price.type",[],{"type":321,"tag":322,"props":378,"children":380},{"id":379},"code-example",[381],{"type":327,"value":382},"Code Example",{"type":321,"tag":384,"props":385,"children":386},"code-group",{},[387,608,1580],{"type":321,"tag":388,"props":389,"children":394},"pre",{"className":390,"code":391,"filename":392,"language":393,"meta":314,"style":314},"language-typescript shiki shiki-themes github-light-default github-light-default github-dark-default","import { Integrator } from '@churnkey/sdk'\n// export class Price extends Integrator.Price.Product {\nexport class Price extends Integrator.Price.Standalone {\n    constructor(price: YourPrice) {\n        super(\n            {\n                id: price.id,\n                ... // map other properties\n            }\n        )\n    }\n}\n","Typescript (SDK)","typescript",[395],{"type":321,"tag":358,"props":396,"children":397},{"__ignoreMap":314},[398,427,437,492,526,540,549,558,572,581,590,599],{"type":321,"tag":399,"props":400,"children":403},"span",{"class":401,"line":402},"line",1,[404,410,416,421],{"type":321,"tag":399,"props":405,"children":407},{"style":406},"--shiki-light:#CF222E;--shiki-default:#CF222E;--shiki-dark:#FF7B72",[408],{"type":327,"value":409},"import",{"type":321,"tag":399,"props":411,"children":413},{"style":412},"--shiki-light:#1F2328;--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[414],{"type":327,"value":415}," { Integrator } ",{"type":321,"tag":399,"props":417,"children":418},{"style":406},[419],{"type":327,"value":420},"from",{"type":321,"tag":399,"props":422,"children":424},{"style":423},"--shiki-light:#0A3069;--shiki-default:#0A3069;--shiki-dark:#A5D6FF",[425],{"type":327,"value":426}," '@churnkey/sdk'\n",{"type":321,"tag":399,"props":428,"children":430},{"class":401,"line":429},2,[431],{"type":321,"tag":399,"props":432,"children":434},{"style":433},"--shiki-light:#6E7781;--shiki-default:#6E7781;--shiki-dark:#8B949E",[435],{"type":327,"value":436},"// export class Price extends Integrator.Price.Product {\n",{"type":321,"tag":399,"props":438,"children":440},{"class":401,"line":439},3,[441,446,451,457,462,467,472,477,481,487],{"type":321,"tag":399,"props":442,"children":443},{"style":406},[444],{"type":327,"value":445},"export",{"type":321,"tag":399,"props":447,"children":448},{"style":406},[449],{"type":327,"value":450}," class",{"type":321,"tag":399,"props":452,"children":454},{"style":453},"--shiki-light:#953800;--shiki-default:#953800;--shiki-dark:#FFA657",[455],{"type":327,"value":456}," Price",{"type":321,"tag":399,"props":458,"children":459},{"style":406},[460],{"type":327,"value":461}," extends",{"type":321,"tag":399,"props":463,"children":464},{"style":453},[465],{"type":327,"value":466}," Integrator",{"type":321,"tag":399,"props":468,"children":469},{"style":412},[470],{"type":327,"value":471},".",{"type":321,"tag":399,"props":473,"children":474},{"style":453},[475],{"type":327,"value":476},"Price",{"type":321,"tag":399,"props":478,"children":479},{"style":412},[480],{"type":327,"value":471},{"type":321,"tag":399,"props":482,"children":484},{"style":483},"--shiki-light:#0550AE;--shiki-default:#0550AE;--shiki-dark:#79C0FF",[485],{"type":327,"value":486},"Standalone",{"type":321,"tag":399,"props":488,"children":489},{"style":412},[490],{"type":327,"value":491}," {\n",{"type":321,"tag":399,"props":493,"children":495},{"class":401,"line":494},4,[496,501,506,511,516,521],{"type":321,"tag":399,"props":497,"children":498},{"style":406},[499],{"type":327,"value":500},"    constructor",{"type":321,"tag":399,"props":502,"children":503},{"style":412},[504],{"type":327,"value":505},"(",{"type":321,"tag":399,"props":507,"children":508},{"style":453},[509],{"type":327,"value":510},"price",{"type":321,"tag":399,"props":512,"children":513},{"style":406},[514],{"type":327,"value":515},":",{"type":321,"tag":399,"props":517,"children":518},{"style":453},[519],{"type":327,"value":520}," YourPrice",{"type":321,"tag":399,"props":522,"children":523},{"style":412},[524],{"type":327,"value":525},") {\n",{"type":321,"tag":399,"props":527,"children":529},{"class":401,"line":528},5,[530,535],{"type":321,"tag":399,"props":531,"children":532},{"style":483},[533],{"type":327,"value":534},"        super",{"type":321,"tag":399,"props":536,"children":537},{"style":412},[538],{"type":327,"value":539},"(\n",{"type":321,"tag":399,"props":541,"children":543},{"class":401,"line":542},6,[544],{"type":321,"tag":399,"props":545,"children":546},{"style":412},[547],{"type":327,"value":548},"            {\n",{"type":321,"tag":399,"props":550,"children":552},{"class":401,"line":551},7,[553],{"type":321,"tag":399,"props":554,"children":555},{"style":412},[556],{"type":327,"value":557},"                id: price.id,\n",{"type":321,"tag":399,"props":559,"children":561},{"class":401,"line":560},8,[562,567],{"type":321,"tag":399,"props":563,"children":564},{"style":406},[565],{"type":327,"value":566},"                ...",{"type":321,"tag":399,"props":568,"children":569},{"style":433},[570],{"type":327,"value":571}," // map other properties\n",{"type":321,"tag":399,"props":573,"children":575},{"class":401,"line":574},9,[576],{"type":321,"tag":399,"props":577,"children":578},{"style":412},[579],{"type":327,"value":580},"            }\n",{"type":321,"tag":399,"props":582,"children":584},{"class":401,"line":583},10,[585],{"type":321,"tag":399,"props":586,"children":587},{"style":412},[588],{"type":327,"value":589},"        )\n",{"type":321,"tag":399,"props":591,"children":593},{"class":401,"line":592},11,[594],{"type":321,"tag":399,"props":595,"children":596},{"style":412},[597],{"type":327,"value":598},"    }\n",{"type":321,"tag":399,"props":600,"children":602},{"class":401,"line":601},12,[603],{"type":321,"tag":399,"props":604,"children":605},{"style":412},[606],{"type":327,"value":607},"}\n",{"type":321,"tag":388,"props":609,"children":612},{"className":390,"code":610,"filename":611,"language":393,"meta":314,"style":314},"interface Price {\n    id: string\n    type: Type\n    duration: Duration\n    amount: Amount\n    productId?: string\n    name?: string\n    description?: string\n}\n\nexport function Price(price: YourPrice): Price {\n    return {\n        id: price.id,\n        ... // map other properties\n    }\n}\n\nenum Type {\n    Standalone = \"standalone\",\n    Product = \"product\"\n}\n\ninterface Duration {\n    amount: number\n    unit: Unit\n}\n\nenum Unit {\n    Month = \"month\",\n    Year = \"year\"\n}\n\ntype Amount = FixedAmount | TieredAmount\n\ninterface FixedAmount {\n    model: Model.Fixed\n    currency: string\n    unit?: number\n    flat?: number\n}\n\ninterface TieredAmount {\n    model: Model.Tiered\n    currency: string\n    mode: Mode\n    tiers: Tier[]\n}\n\n\nenum Model {\n    Fixed = \"fixed\",\n    Tiered = \"tiered\"\n}\n\nenum Mode {\n    Graduated = \"graduated\",\n    Total = \"total\"\n}\n\ninterface Tier {\n    unit?: number\n    flat?: number\n    upTo?: number\n}\n","Typescript",[613],{"type":321,"tag":358,"props":614,"children":615},{"__ignoreMap":314},[616,632,649,666,683,700,717,733,749,756,765,815,827,836,849,857,865,873,891,915,933,941,949,966,983,1001,1009,1017,1034,1056,1074,1082,1090,1122,1130,1146,1173,1190,1206,1223,1231,1239,1256,1281,1297,1315,1338,1346,1354,1362,1378,1400,1418,1426,1434,1451,1473,1491,1499,1507,1523,1539,1555,1572],{"type":321,"tag":399,"props":617,"children":618},{"class":401,"line":402},[619,624,628],{"type":321,"tag":399,"props":620,"children":621},{"style":406},[622],{"type":327,"value":623},"interface",{"type":321,"tag":399,"props":625,"children":626},{"style":453},[627],{"type":327,"value":456},{"type":321,"tag":399,"props":629,"children":630},{"style":412},[631],{"type":327,"value":491},{"type":321,"tag":399,"props":633,"children":634},{"class":401,"line":429},[635,640,644],{"type":321,"tag":399,"props":636,"children":637},{"style":453},[638],{"type":327,"value":639},"    id",{"type":321,"tag":399,"props":641,"children":642},{"style":406},[643],{"type":327,"value":515},{"type":321,"tag":399,"props":645,"children":646},{"style":483},[647],{"type":327,"value":648}," string\n",{"type":321,"tag":399,"props":650,"children":651},{"class":401,"line":439},[652,657,661],{"type":321,"tag":399,"props":653,"children":654},{"style":453},[655],{"type":327,"value":656},"    type",{"type":321,"tag":399,"props":658,"children":659},{"style":406},[660],{"type":327,"value":515},{"type":321,"tag":399,"props":662,"children":663},{"style":453},[664],{"type":327,"value":665}," Type\n",{"type":321,"tag":399,"props":667,"children":668},{"class":401,"line":494},[669,674,678],{"type":321,"tag":399,"props":670,"children":671},{"style":453},[672],{"type":327,"value":673},"    duration",{"type":321,"tag":399,"props":675,"children":676},{"style":406},[677],{"type":327,"value":515},{"type":321,"tag":399,"props":679,"children":680},{"style":453},[681],{"type":327,"value":682}," Duration\n",{"type":321,"tag":399,"props":684,"children":685},{"class":401,"line":528},[686,691,695],{"type":321,"tag":399,"props":687,"children":688},{"style":453},[689],{"type":327,"value":690},"    amount",{"type":321,"tag":399,"props":692,"children":693},{"style":406},[694],{"type":327,"value":515},{"type":321,"tag":399,"props":696,"children":697},{"style":453},[698],{"type":327,"value":699}," Amount\n",{"type":321,"tag":399,"props":701,"children":702},{"class":401,"line":542},[703,708,713],{"type":321,"tag":399,"props":704,"children":705},{"style":453},[706],{"type":327,"value":707},"    productId",{"type":321,"tag":399,"props":709,"children":710},{"style":406},[711],{"type":327,"value":712},"?:",{"type":321,"tag":399,"props":714,"children":715},{"style":483},[716],{"type":327,"value":648},{"type":321,"tag":399,"props":718,"children":719},{"class":401,"line":551},[720,725,729],{"type":321,"tag":399,"props":721,"children":722},{"style":453},[723],{"type":327,"value":724},"    name",{"type":321,"tag":399,"props":726,"children":727},{"style":406},[728],{"type":327,"value":712},{"type":321,"tag":399,"props":730,"children":731},{"style":483},[732],{"type":327,"value":648},{"type":321,"tag":399,"props":734,"children":735},{"class":401,"line":560},[736,741,745],{"type":321,"tag":399,"props":737,"children":738},{"style":453},[739],{"type":327,"value":740},"    description",{"type":321,"tag":399,"props":742,"children":743},{"style":406},[744],{"type":327,"value":712},{"type":321,"tag":399,"props":746,"children":747},{"style":483},[748],{"type":327,"value":648},{"type":321,"tag":399,"props":750,"children":751},{"class":401,"line":574},[752],{"type":321,"tag":399,"props":753,"children":754},{"style":412},[755],{"type":327,"value":607},{"type":321,"tag":399,"props":757,"children":758},{"class":401,"line":583},[759],{"type":321,"tag":399,"props":760,"children":762},{"emptyLinePlaceholder":761},true,[763],{"type":327,"value":764},"\n",{"type":321,"tag":399,"props":766,"children":767},{"class":401,"line":592},[768,772,777,782,786,790,794,798,803,807,811],{"type":321,"tag":399,"props":769,"children":770},{"style":406},[771],{"type":327,"value":445},{"type":321,"tag":399,"props":773,"children":774},{"style":406},[775],{"type":327,"value":776}," function",{"type":321,"tag":399,"props":778,"children":780},{"style":779},"--shiki-light:#8250DF;--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[781],{"type":327,"value":456},{"type":321,"tag":399,"props":783,"children":784},{"style":412},[785],{"type":327,"value":505},{"type":321,"tag":399,"props":787,"children":788},{"style":453},[789],{"type":327,"value":510},{"type":321,"tag":399,"props":791,"children":792},{"style":406},[793],{"type":327,"value":515},{"type":321,"tag":399,"props":795,"children":796},{"style":453},[797],{"type":327,"value":520},{"type":321,"tag":399,"props":799,"children":800},{"style":412},[801],{"type":327,"value":802},")",{"type":321,"tag":399,"props":804,"children":805},{"style":406},[806],{"type":327,"value":515},{"type":321,"tag":399,"props":808,"children":809},{"style":453},[810],{"type":327,"value":456},{"type":321,"tag":399,"props":812,"children":813},{"style":412},[814],{"type":327,"value":491},{"type":321,"tag":399,"props":816,"children":817},{"class":401,"line":601},[818,823],{"type":321,"tag":399,"props":819,"children":820},{"style":406},[821],{"type":327,"value":822},"    return",{"type":321,"tag":399,"props":824,"children":825},{"style":412},[826],{"type":327,"value":491},{"type":321,"tag":399,"props":828,"children":830},{"class":401,"line":829},13,[831],{"type":321,"tag":399,"props":832,"children":833},{"style":412},[834],{"type":327,"value":835},"        id: price.id,\n",{"type":321,"tag":399,"props":837,"children":839},{"class":401,"line":838},14,[840,845],{"type":321,"tag":399,"props":841,"children":842},{"style":406},[843],{"type":327,"value":844},"        ...",{"type":321,"tag":399,"props":846,"children":847},{"style":433},[848],{"type":327,"value":571},{"type":321,"tag":399,"props":850,"children":852},{"class":401,"line":851},15,[853],{"type":321,"tag":399,"props":854,"children":855},{"style":412},[856],{"type":327,"value":598},{"type":321,"tag":399,"props":858,"children":860},{"class":401,"line":859},16,[861],{"type":321,"tag":399,"props":862,"children":863},{"style":412},[864],{"type":327,"value":607},{"type":321,"tag":399,"props":866,"children":868},{"class":401,"line":867},17,[869],{"type":321,"tag":399,"props":870,"children":871},{"emptyLinePlaceholder":761},[872],{"type":327,"value":764},{"type":321,"tag":399,"props":874,"children":876},{"class":401,"line":875},18,[877,882,887],{"type":321,"tag":399,"props":878,"children":879},{"style":406},[880],{"type":327,"value":881},"enum",{"type":321,"tag":399,"props":883,"children":884},{"style":453},[885],{"type":327,"value":886}," Type",{"type":321,"tag":399,"props":888,"children":889},{"style":412},[890],{"type":327,"value":491},{"type":321,"tag":399,"props":892,"children":894},{"class":401,"line":893},19,[895,900,905,910],{"type":321,"tag":399,"props":896,"children":897},{"style":483},[898],{"type":327,"value":899},"    Standalone",{"type":321,"tag":399,"props":901,"children":902},{"style":406},[903],{"type":327,"value":904}," =",{"type":321,"tag":399,"props":906,"children":907},{"style":423},[908],{"type":327,"value":909}," \"standalone\"",{"type":321,"tag":399,"props":911,"children":912},{"style":412},[913],{"type":327,"value":914},",\n",{"type":321,"tag":399,"props":916,"children":918},{"class":401,"line":917},20,[919,924,928],{"type":321,"tag":399,"props":920,"children":921},{"style":483},[922],{"type":327,"value":923},"    Product",{"type":321,"tag":399,"props":925,"children":926},{"style":406},[927],{"type":327,"value":904},{"type":321,"tag":399,"props":929,"children":930},{"style":423},[931],{"type":327,"value":932}," \"product\"\n",{"type":321,"tag":399,"props":934,"children":936},{"class":401,"line":935},21,[937],{"type":321,"tag":399,"props":938,"children":939},{"style":412},[940],{"type":327,"value":607},{"type":321,"tag":399,"props":942,"children":944},{"class":401,"line":943},22,[945],{"type":321,"tag":399,"props":946,"children":947},{"emptyLinePlaceholder":761},[948],{"type":327,"value":764},{"type":321,"tag":399,"props":950,"children":952},{"class":401,"line":951},23,[953,957,962],{"type":321,"tag":399,"props":954,"children":955},{"style":406},[956],{"type":327,"value":623},{"type":321,"tag":399,"props":958,"children":959},{"style":453},[960],{"type":327,"value":961}," Duration",{"type":321,"tag":399,"props":963,"children":964},{"style":412},[965],{"type":327,"value":491},{"type":321,"tag":399,"props":967,"children":969},{"class":401,"line":968},24,[970,974,978],{"type":321,"tag":399,"props":971,"children":972},{"style":453},[973],{"type":327,"value":690},{"type":321,"tag":399,"props":975,"children":976},{"style":406},[977],{"type":327,"value":515},{"type":321,"tag":399,"props":979,"children":980},{"style":483},[981],{"type":327,"value":982}," number\n",{"type":321,"tag":399,"props":984,"children":986},{"class":401,"line":985},25,[987,992,996],{"type":321,"tag":399,"props":988,"children":989},{"style":453},[990],{"type":327,"value":991},"    unit",{"type":321,"tag":399,"props":993,"children":994},{"style":406},[995],{"type":327,"value":515},{"type":321,"tag":399,"props":997,"children":998},{"style":453},[999],{"type":327,"value":1000}," Unit\n",{"type":321,"tag":399,"props":1002,"children":1004},{"class":401,"line":1003},26,[1005],{"type":321,"tag":399,"props":1006,"children":1007},{"style":412},[1008],{"type":327,"value":607},{"type":321,"tag":399,"props":1010,"children":1012},{"class":401,"line":1011},27,[1013],{"type":321,"tag":399,"props":1014,"children":1015},{"emptyLinePlaceholder":761},[1016],{"type":327,"value":764},{"type":321,"tag":399,"props":1018,"children":1020},{"class":401,"line":1019},28,[1021,1025,1030],{"type":321,"tag":399,"props":1022,"children":1023},{"style":406},[1024],{"type":327,"value":881},{"type":321,"tag":399,"props":1026,"children":1027},{"style":453},[1028],{"type":327,"value":1029}," Unit",{"type":321,"tag":399,"props":1031,"children":1032},{"style":412},[1033],{"type":327,"value":491},{"type":321,"tag":399,"props":1035,"children":1037},{"class":401,"line":1036},29,[1038,1043,1047,1052],{"type":321,"tag":399,"props":1039,"children":1040},{"style":483},[1041],{"type":327,"value":1042},"    Month",{"type":321,"tag":399,"props":1044,"children":1045},{"style":406},[1046],{"type":327,"value":904},{"type":321,"tag":399,"props":1048,"children":1049},{"style":423},[1050],{"type":327,"value":1051}," \"month\"",{"type":321,"tag":399,"props":1053,"children":1054},{"style":412},[1055],{"type":327,"value":914},{"type":321,"tag":399,"props":1057,"children":1059},{"class":401,"line":1058},30,[1060,1065,1069],{"type":321,"tag":399,"props":1061,"children":1062},{"style":483},[1063],{"type":327,"value":1064},"    Year",{"type":321,"tag":399,"props":1066,"children":1067},{"style":406},[1068],{"type":327,"value":904},{"type":321,"tag":399,"props":1070,"children":1071},{"style":423},[1072],{"type":327,"value":1073}," \"year\"\n",{"type":321,"tag":399,"props":1075,"children":1077},{"class":401,"line":1076},31,[1078],{"type":321,"tag":399,"props":1079,"children":1080},{"style":412},[1081],{"type":327,"value":607},{"type":321,"tag":399,"props":1083,"children":1085},{"class":401,"line":1084},32,[1086],{"type":321,"tag":399,"props":1087,"children":1088},{"emptyLinePlaceholder":761},[1089],{"type":327,"value":764},{"type":321,"tag":399,"props":1091,"children":1093},{"class":401,"line":1092},33,[1094,1098,1103,1107,1112,1117],{"type":321,"tag":399,"props":1095,"children":1096},{"style":406},[1097],{"type":327,"value":324},{"type":321,"tag":399,"props":1099,"children":1100},{"style":453},[1101],{"type":327,"value":1102}," Amount",{"type":321,"tag":399,"props":1104,"children":1105},{"style":406},[1106],{"type":327,"value":904},{"type":321,"tag":399,"props":1108,"children":1109},{"style":453},[1110],{"type":327,"value":1111}," FixedAmount",{"type":321,"tag":399,"props":1113,"children":1114},{"style":406},[1115],{"type":327,"value":1116}," |",{"type":321,"tag":399,"props":1118,"children":1119},{"style":453},[1120],{"type":327,"value":1121}," TieredAmount\n",{"type":321,"tag":399,"props":1123,"children":1125},{"class":401,"line":1124},34,[1126],{"type":321,"tag":399,"props":1127,"children":1128},{"emptyLinePlaceholder":761},[1129],{"type":327,"value":764},{"type":321,"tag":399,"props":1131,"children":1133},{"class":401,"line":1132},35,[1134,1138,1142],{"type":321,"tag":399,"props":1135,"children":1136},{"style":406},[1137],{"type":327,"value":623},{"type":321,"tag":399,"props":1139,"children":1140},{"style":453},[1141],{"type":327,"value":1111},{"type":321,"tag":399,"props":1143,"children":1144},{"style":412},[1145],{"type":327,"value":491},{"type":321,"tag":399,"props":1147,"children":1149},{"class":401,"line":1148},36,[1150,1155,1159,1164,1168],{"type":321,"tag":399,"props":1151,"children":1152},{"style":453},[1153],{"type":327,"value":1154},"    model",{"type":321,"tag":399,"props":1156,"children":1157},{"style":406},[1158],{"type":327,"value":515},{"type":321,"tag":399,"props":1160,"children":1161},{"style":453},[1162],{"type":327,"value":1163}," Model",{"type":321,"tag":399,"props":1165,"children":1166},{"style":412},[1167],{"type":327,"value":471},{"type":321,"tag":399,"props":1169,"children":1170},{"style":453},[1171],{"type":327,"value":1172},"Fixed\n",{"type":321,"tag":399,"props":1174,"children":1176},{"class":401,"line":1175},37,[1177,1182,1186],{"type":321,"tag":399,"props":1178,"children":1179},{"style":453},[1180],{"type":327,"value":1181},"    currency",{"type":321,"tag":399,"props":1183,"children":1184},{"style":406},[1185],{"type":327,"value":515},{"type":321,"tag":399,"props":1187,"children":1188},{"style":483},[1189],{"type":327,"value":648},{"type":321,"tag":399,"props":1191,"children":1193},{"class":401,"line":1192},38,[1194,1198,1202],{"type":321,"tag":399,"props":1195,"children":1196},{"style":453},[1197],{"type":327,"value":991},{"type":321,"tag":399,"props":1199,"children":1200},{"style":406},[1201],{"type":327,"value":712},{"type":321,"tag":399,"props":1203,"children":1204},{"style":483},[1205],{"type":327,"value":982},{"type":321,"tag":399,"props":1207,"children":1209},{"class":401,"line":1208},39,[1210,1215,1219],{"type":321,"tag":399,"props":1211,"children":1212},{"style":453},[1213],{"type":327,"value":1214},"    flat",{"type":321,"tag":399,"props":1216,"children":1217},{"style":406},[1218],{"type":327,"value":712},{"type":321,"tag":399,"props":1220,"children":1221},{"style":483},[1222],{"type":327,"value":982},{"type":321,"tag":399,"props":1224,"children":1226},{"class":401,"line":1225},40,[1227],{"type":321,"tag":399,"props":1228,"children":1229},{"style":412},[1230],{"type":327,"value":607},{"type":321,"tag":399,"props":1232,"children":1234},{"class":401,"line":1233},41,[1235],{"type":321,"tag":399,"props":1236,"children":1237},{"emptyLinePlaceholder":761},[1238],{"type":327,"value":764},{"type":321,"tag":399,"props":1240,"children":1242},{"class":401,"line":1241},42,[1243,1247,1252],{"type":321,"tag":399,"props":1244,"children":1245},{"style":406},[1246],{"type":327,"value":623},{"type":321,"tag":399,"props":1248,"children":1249},{"style":453},[1250],{"type":327,"value":1251}," TieredAmount",{"type":321,"tag":399,"props":1253,"children":1254},{"style":412},[1255],{"type":327,"value":491},{"type":321,"tag":399,"props":1257,"children":1259},{"class":401,"line":1258},43,[1260,1264,1268,1272,1276],{"type":321,"tag":399,"props":1261,"children":1262},{"style":453},[1263],{"type":327,"value":1154},{"type":321,"tag":399,"props":1265,"children":1266},{"style":406},[1267],{"type":327,"value":515},{"type":321,"tag":399,"props":1269,"children":1270},{"style":453},[1271],{"type":327,"value":1163},{"type":321,"tag":399,"props":1273,"children":1274},{"style":412},[1275],{"type":327,"value":471},{"type":321,"tag":399,"props":1277,"children":1278},{"style":453},[1279],{"type":327,"value":1280},"Tiered\n",{"type":321,"tag":399,"props":1282,"children":1284},{"class":401,"line":1283},44,[1285,1289,1293],{"type":321,"tag":399,"props":1286,"children":1287},{"style":453},[1288],{"type":327,"value":1181},{"type":321,"tag":399,"props":1290,"children":1291},{"style":406},[1292],{"type":327,"value":515},{"type":321,"tag":399,"props":1294,"children":1295},{"style":483},[1296],{"type":327,"value":648},{"type":321,"tag":399,"props":1298,"children":1300},{"class":401,"line":1299},45,[1301,1306,1310],{"type":321,"tag":399,"props":1302,"children":1303},{"style":453},[1304],{"type":327,"value":1305},"    mode",{"type":321,"tag":399,"props":1307,"children":1308},{"style":406},[1309],{"type":327,"value":515},{"type":321,"tag":399,"props":1311,"children":1312},{"style":453},[1313],{"type":327,"value":1314}," Mode\n",{"type":321,"tag":399,"props":1316,"children":1318},{"class":401,"line":1317},46,[1319,1324,1328,1333],{"type":321,"tag":399,"props":1320,"children":1321},{"style":453},[1322],{"type":327,"value":1323},"    tiers",{"type":321,"tag":399,"props":1325,"children":1326},{"style":406},[1327],{"type":327,"value":515},{"type":321,"tag":399,"props":1329,"children":1330},{"style":453},[1331],{"type":327,"value":1332}," Tier",{"type":321,"tag":399,"props":1334,"children":1335},{"style":412},[1336],{"type":327,"value":1337},"[]\n",{"type":321,"tag":399,"props":1339,"children":1341},{"class":401,"line":1340},47,[1342],{"type":321,"tag":399,"props":1343,"children":1344},{"style":412},[1345],{"type":327,"value":607},{"type":321,"tag":399,"props":1347,"children":1349},{"class":401,"line":1348},48,[1350],{"type":321,"tag":399,"props":1351,"children":1352},{"emptyLinePlaceholder":761},[1353],{"type":327,"value":764},{"type":321,"tag":399,"props":1355,"children":1357},{"class":401,"line":1356},49,[1358],{"type":321,"tag":399,"props":1359,"children":1360},{"emptyLinePlaceholder":761},[1361],{"type":327,"value":764},{"type":321,"tag":399,"props":1363,"children":1365},{"class":401,"line":1364},50,[1366,1370,1374],{"type":321,"tag":399,"props":1367,"children":1368},{"style":406},[1369],{"type":327,"value":881},{"type":321,"tag":399,"props":1371,"children":1372},{"style":453},[1373],{"type":327,"value":1163},{"type":321,"tag":399,"props":1375,"children":1376},{"style":412},[1377],{"type":327,"value":491},{"type":321,"tag":399,"props":1379,"children":1381},{"class":401,"line":1380},51,[1382,1387,1391,1396],{"type":321,"tag":399,"props":1383,"children":1384},{"style":483},[1385],{"type":327,"value":1386},"    Fixed",{"type":321,"tag":399,"props":1388,"children":1389},{"style":406},[1390],{"type":327,"value":904},{"type":321,"tag":399,"props":1392,"children":1393},{"style":423},[1394],{"type":327,"value":1395}," \"fixed\"",{"type":321,"tag":399,"props":1397,"children":1398},{"style":412},[1399],{"type":327,"value":914},{"type":321,"tag":399,"props":1401,"children":1403},{"class":401,"line":1402},52,[1404,1409,1413],{"type":321,"tag":399,"props":1405,"children":1406},{"style":483},[1407],{"type":327,"value":1408},"    Tiered",{"type":321,"tag":399,"props":1410,"children":1411},{"style":406},[1412],{"type":327,"value":904},{"type":321,"tag":399,"props":1414,"children":1415},{"style":423},[1416],{"type":327,"value":1417}," \"tiered\"\n",{"type":321,"tag":399,"props":1419,"children":1421},{"class":401,"line":1420},53,[1422],{"type":321,"tag":399,"props":1423,"children":1424},{"style":412},[1425],{"type":327,"value":607},{"type":321,"tag":399,"props":1427,"children":1429},{"class":401,"line":1428},54,[1430],{"type":321,"tag":399,"props":1431,"children":1432},{"emptyLinePlaceholder":761},[1433],{"type":327,"value":764},{"type":321,"tag":399,"props":1435,"children":1437},{"class":401,"line":1436},55,[1438,1442,1447],{"type":321,"tag":399,"props":1439,"children":1440},{"style":406},[1441],{"type":327,"value":881},{"type":321,"tag":399,"props":1443,"children":1444},{"style":453},[1445],{"type":327,"value":1446}," Mode",{"type":321,"tag":399,"props":1448,"children":1449},{"style":412},[1450],{"type":327,"value":491},{"type":321,"tag":399,"props":1452,"children":1454},{"class":401,"line":1453},56,[1455,1460,1464,1469],{"type":321,"tag":399,"props":1456,"children":1457},{"style":483},[1458],{"type":327,"value":1459},"    Graduated",{"type":321,"tag":399,"props":1461,"children":1462},{"style":406},[1463],{"type":327,"value":904},{"type":321,"tag":399,"props":1465,"children":1466},{"style":423},[1467],{"type":327,"value":1468}," \"graduated\"",{"type":321,"tag":399,"props":1470,"children":1471},{"style":412},[1472],{"type":327,"value":914},{"type":321,"tag":399,"props":1474,"children":1476},{"class":401,"line":1475},57,[1477,1482,1486],{"type":321,"tag":399,"props":1478,"children":1479},{"style":483},[1480],{"type":327,"value":1481},"    Total",{"type":321,"tag":399,"props":1483,"children":1484},{"style":406},[1485],{"type":327,"value":904},{"type":321,"tag":399,"props":1487,"children":1488},{"style":423},[1489],{"type":327,"value":1490}," \"total\"\n",{"type":321,"tag":399,"props":1492,"children":1494},{"class":401,"line":1493},58,[1495],{"type":321,"tag":399,"props":1496,"children":1497},{"style":412},[1498],{"type":327,"value":607},{"type":321,"tag":399,"props":1500,"children":1502},{"class":401,"line":1501},59,[1503],{"type":321,"tag":399,"props":1504,"children":1505},{"emptyLinePlaceholder":761},[1506],{"type":327,"value":764},{"type":321,"tag":399,"props":1508,"children":1510},{"class":401,"line":1509},60,[1511,1515,1519],{"type":321,"tag":399,"props":1512,"children":1513},{"style":406},[1514],{"type":327,"value":623},{"type":321,"tag":399,"props":1516,"children":1517},{"style":453},[1518],{"type":327,"value":1332},{"type":321,"tag":399,"props":1520,"children":1521},{"style":412},[1522],{"type":327,"value":491},{"type":321,"tag":399,"props":1524,"children":1526},{"class":401,"line":1525},61,[1527,1531,1535],{"type":321,"tag":399,"props":1528,"children":1529},{"style":453},[1530],{"type":327,"value":991},{"type":321,"tag":399,"props":1532,"children":1533},{"style":406},[1534],{"type":327,"value":712},{"type":321,"tag":399,"props":1536,"children":1537},{"style":483},[1538],{"type":327,"value":982},{"type":321,"tag":399,"props":1540,"children":1542},{"class":401,"line":1541},62,[1543,1547,1551],{"type":321,"tag":399,"props":1544,"children":1545},{"style":453},[1546],{"type":327,"value":1214},{"type":321,"tag":399,"props":1548,"children":1549},{"style":406},[1550],{"type":327,"value":712},{"type":321,"tag":399,"props":1552,"children":1553},{"style":483},[1554],{"type":327,"value":982},{"type":321,"tag":399,"props":1556,"children":1558},{"class":401,"line":1557},63,[1559,1564,1568],{"type":321,"tag":399,"props":1560,"children":1561},{"style":453},[1562],{"type":327,"value":1563},"    upTo",{"type":321,"tag":399,"props":1565,"children":1566},{"style":406},[1567],{"type":327,"value":712},{"type":321,"tag":399,"props":1569,"children":1570},{"style":483},[1571],{"type":327,"value":982},{"type":321,"tag":399,"props":1573,"children":1575},{"class":401,"line":1574},64,[1576],{"type":321,"tag":399,"props":1577,"children":1578},{"style":412},[1579],{"type":327,"value":607},{"type":321,"tag":388,"props":1581,"children":1586},{"className":1582,"code":1583,"filename":1584,"language":1585,"meta":314,"style":314},"language-go shiki shiki-themes github-light-default github-light-default github-dark-default","package models\n\ntype Price struct {\n    ID        string            `json:\"id\"`\n    Type      Type              `json:\"type\"`\n    Duration  Duration          `json:\"duration\"`\n    Amount    Amount            `json:\"amount\"`\n    ProductID *string           `json:\"productId\"`\n    Name      *string           `json:\"name\"`\n    Description *string         `json:\"description\"`\n}\n\ntype Type string\nconst (\n    Standalone Type = \"standalone\"\n    Product Type = \"product\"\n)\n\ntype Duration struct {\n    Amount int `json:\"amount\"`\n    Unit   Unit `json:\"unit\"`\n}\n\ntype Unit string\nconst (\n    Month Unit = \"month\"\n    Year Unit = \"year\"\n)\n\ntype Amount interface {\n    PricingModel() Model\n}\n\ntype FixedAmount struct {\n    Model    Model  `json:\"model\"`\n    Currency string `json:\"currency\"`\n    Unit     *int   `json:\"unit\"`\n    Flat     *int   `json:\"flat\"`\n}\n\nfunc (FixedAmount) PricingModel() Model {\n    return Fixed\n}\n\ntype TieredAmount struct {\n    Model Model `json:\"model\"`\n    Currency string `json:\"currency\"`\n    Mode Mode `json:\"mode\"`\n    Tiers []Tier `json:\"tiers\"`\n}\n\nfunc (TieredAmount) PricingModel() Model {\n    return Tiered\n}\n\ntype Model string\nconst (\n    Fixed Model = \"fixed\"\n    Tiered Model = \"tiered\"\n)\n\ntype Mode string\nconst (\n    Graduated Mode = \"graduated\"\n    Total Mode = \"total\"\n)\n\ntype Tier struct {\n    Unit  *int `json:\"unit\"`\n    Flat  *int `json:\"flat\"`\n    UpTo  *int `json:\"upTo\"`\n}\n\nfunc Price(price YourPrice) Price {\n    return Price{\n        ID: price.ID,\n        ... // map other properties\n    }\n}\n\n","Go","go",[1587],{"type":321,"tag":358,"props":1588,"children":1589},{"__ignoreMap":314},[1590,1603,1610,1630,1648,1665,1683,1701,1723,1744,1765,1772,1779,1794,1807,1828,1848,1856,1863,1882,1900,1918,1925,1932,1947,1958,1979,1999,2006,2013,2033,2051,2058,2065,2084,2102,2119,2137,2154,2161,2168,2208,2220,2227,2234,2253,2270,2285,2303,2321,2328,2335,2371,2383,2390,2397,2412,2423,2444,2464,2471,2478,2493,2504,2525,2546,2554,2562,2582,2599,2617,2635,2643,2651,2687,2704,2713,2725,2733],{"type":321,"tag":399,"props":1591,"children":1592},{"class":401,"line":402},[1593,1598],{"type":321,"tag":399,"props":1594,"children":1595},{"style":406},[1596],{"type":327,"value":1597},"package",{"type":321,"tag":399,"props":1599,"children":1600},{"style":453},[1601],{"type":327,"value":1602}," models\n",{"type":321,"tag":399,"props":1604,"children":1605},{"class":401,"line":429},[1606],{"type":321,"tag":399,"props":1607,"children":1608},{"emptyLinePlaceholder":761},[1609],{"type":327,"value":764},{"type":321,"tag":399,"props":1611,"children":1612},{"class":401,"line":439},[1613,1617,1621,1626],{"type":321,"tag":399,"props":1614,"children":1615},{"style":406},[1616],{"type":327,"value":324},{"type":321,"tag":399,"props":1618,"children":1619},{"style":453},[1620],{"type":327,"value":456},{"type":321,"tag":399,"props":1622,"children":1623},{"style":406},[1624],{"type":327,"value":1625}," struct",{"type":321,"tag":399,"props":1627,"children":1628},{"style":412},[1629],{"type":327,"value":491},{"type":321,"tag":399,"props":1631,"children":1632},{"class":401,"line":494},[1633,1638,1643],{"type":321,"tag":399,"props":1634,"children":1635},{"style":412},[1636],{"type":327,"value":1637},"    ID        ",{"type":321,"tag":399,"props":1639,"children":1640},{"style":406},[1641],{"type":327,"value":1642},"string",{"type":321,"tag":399,"props":1644,"children":1645},{"style":423},[1646],{"type":327,"value":1647},"            `json:\"id\"`\n",{"type":321,"tag":399,"props":1649,"children":1650},{"class":401,"line":528},[1651,1656,1660],{"type":321,"tag":399,"props":1652,"children":1653},{"style":412},[1654],{"type":327,"value":1655},"    Type      ",{"type":321,"tag":399,"props":1657,"children":1658},{"style":453},[1659],{"type":327,"value":328},{"type":321,"tag":399,"props":1661,"children":1662},{"style":423},[1663],{"type":327,"value":1664},"              `json:\"type\"`\n",{"type":321,"tag":399,"props":1666,"children":1667},{"class":401,"line":542},[1668,1673,1678],{"type":321,"tag":399,"props":1669,"children":1670},{"style":412},[1671],{"type":327,"value":1672},"    Duration  ",{"type":321,"tag":399,"props":1674,"children":1675},{"style":453},[1676],{"type":327,"value":1677},"Duration",{"type":321,"tag":399,"props":1679,"children":1680},{"style":423},[1681],{"type":327,"value":1682},"          `json:\"duration\"`\n",{"type":321,"tag":399,"props":1684,"children":1685},{"class":401,"line":551},[1686,1691,1696],{"type":321,"tag":399,"props":1687,"children":1688},{"style":412},[1689],{"type":327,"value":1690},"    Amount    ",{"type":321,"tag":399,"props":1692,"children":1693},{"style":453},[1694],{"type":327,"value":1695},"Amount",{"type":321,"tag":399,"props":1697,"children":1698},{"style":423},[1699],{"type":327,"value":1700},"            `json:\"amount\"`\n",{"type":321,"tag":399,"props":1702,"children":1703},{"class":401,"line":560},[1704,1709,1714,1718],{"type":321,"tag":399,"props":1705,"children":1706},{"style":412},[1707],{"type":327,"value":1708},"    ProductID ",{"type":321,"tag":399,"props":1710,"children":1711},{"style":406},[1712],{"type":327,"value":1713},"*",{"type":321,"tag":399,"props":1715,"children":1716},{"style":406},[1717],{"type":327,"value":1642},{"type":321,"tag":399,"props":1719,"children":1720},{"style":423},[1721],{"type":327,"value":1722},"           `json:\"productId\"`\n",{"type":321,"tag":399,"props":1724,"children":1725},{"class":401,"line":574},[1726,1731,1735,1739],{"type":321,"tag":399,"props":1727,"children":1728},{"style":412},[1729],{"type":327,"value":1730},"    Name      ",{"type":321,"tag":399,"props":1732,"children":1733},{"style":406},[1734],{"type":327,"value":1713},{"type":321,"tag":399,"props":1736,"children":1737},{"style":406},[1738],{"type":327,"value":1642},{"type":321,"tag":399,"props":1740,"children":1741},{"style":423},[1742],{"type":327,"value":1743},"           `json:\"name\"`\n",{"type":321,"tag":399,"props":1745,"children":1746},{"class":401,"line":583},[1747,1752,1756,1760],{"type":321,"tag":399,"props":1748,"children":1749},{"style":412},[1750],{"type":327,"value":1751},"    Description ",{"type":321,"tag":399,"props":1753,"children":1754},{"style":406},[1755],{"type":327,"value":1713},{"type":321,"tag":399,"props":1757,"children":1758},{"style":406},[1759],{"type":327,"value":1642},{"type":321,"tag":399,"props":1761,"children":1762},{"style":423},[1763],{"type":327,"value":1764},"         `json:\"description\"`\n",{"type":321,"tag":399,"props":1766,"children":1767},{"class":401,"line":592},[1768],{"type":321,"tag":399,"props":1769,"children":1770},{"style":412},[1771],{"type":327,"value":607},{"type":321,"tag":399,"props":1773,"children":1774},{"class":401,"line":601},[1775],{"type":321,"tag":399,"props":1776,"children":1777},{"emptyLinePlaceholder":761},[1778],{"type":327,"value":764},{"type":321,"tag":399,"props":1780,"children":1781},{"class":401,"line":829},[1782,1786,1790],{"type":321,"tag":399,"props":1783,"children":1784},{"style":406},[1785],{"type":327,"value":324},{"type":321,"tag":399,"props":1787,"children":1788},{"style":453},[1789],{"type":327,"value":886},{"type":321,"tag":399,"props":1791,"children":1792},{"style":406},[1793],{"type":327,"value":648},{"type":321,"tag":399,"props":1795,"children":1796},{"class":401,"line":838},[1797,1802],{"type":321,"tag":399,"props":1798,"children":1799},{"style":406},[1800],{"type":327,"value":1801},"const",{"type":321,"tag":399,"props":1803,"children":1804},{"style":412},[1805],{"type":327,"value":1806}," (\n",{"type":321,"tag":399,"props":1808,"children":1809},{"class":401,"line":851},[1810,1815,1819,1823],{"type":321,"tag":399,"props":1811,"children":1812},{"style":412},[1813],{"type":327,"value":1814},"    Standalone ",{"type":321,"tag":399,"props":1816,"children":1817},{"style":453},[1818],{"type":327,"value":328},{"type":321,"tag":399,"props":1820,"children":1821},{"style":406},[1822],{"type":327,"value":904},{"type":321,"tag":399,"props":1824,"children":1825},{"style":423},[1826],{"type":327,"value":1827}," \"standalone\"\n",{"type":321,"tag":399,"props":1829,"children":1830},{"class":401,"line":859},[1831,1836,1840,1844],{"type":321,"tag":399,"props":1832,"children":1833},{"style":412},[1834],{"type":327,"value":1835},"    Product ",{"type":321,"tag":399,"props":1837,"children":1838},{"style":453},[1839],{"type":327,"value":328},{"type":321,"tag":399,"props":1841,"children":1842},{"style":406},[1843],{"type":327,"value":904},{"type":321,"tag":399,"props":1845,"children":1846},{"style":423},[1847],{"type":327,"value":932},{"type":321,"tag":399,"props":1849,"children":1850},{"class":401,"line":867},[1851],{"type":321,"tag":399,"props":1852,"children":1853},{"style":412},[1854],{"type":327,"value":1855},")\n",{"type":321,"tag":399,"props":1857,"children":1858},{"class":401,"line":875},[1859],{"type":321,"tag":399,"props":1860,"children":1861},{"emptyLinePlaceholder":761},[1862],{"type":327,"value":764},{"type":321,"tag":399,"props":1864,"children":1865},{"class":401,"line":893},[1866,1870,1874,1878],{"type":321,"tag":399,"props":1867,"children":1868},{"style":406},[1869],{"type":327,"value":324},{"type":321,"tag":399,"props":1871,"children":1872},{"style":453},[1873],{"type":327,"value":961},{"type":321,"tag":399,"props":1875,"children":1876},{"style":406},[1877],{"type":327,"value":1625},{"type":321,"tag":399,"props":1879,"children":1880},{"style":412},[1881],{"type":327,"value":491},{"type":321,"tag":399,"props":1883,"children":1884},{"class":401,"line":917},[1885,1890,1895],{"type":321,"tag":399,"props":1886,"children":1887},{"style":412},[1888],{"type":327,"value":1889},"    Amount ",{"type":321,"tag":399,"props":1891,"children":1892},{"style":406},[1893],{"type":327,"value":1894},"int",{"type":321,"tag":399,"props":1896,"children":1897},{"style":423},[1898],{"type":327,"value":1899}," `json:\"amount\"`\n",{"type":321,"tag":399,"props":1901,"children":1902},{"class":401,"line":935},[1903,1908,1913],{"type":321,"tag":399,"props":1904,"children":1905},{"style":412},[1906],{"type":327,"value":1907},"    Unit   ",{"type":321,"tag":399,"props":1909,"children":1910},{"style":453},[1911],{"type":327,"value":1912},"Unit",{"type":321,"tag":399,"props":1914,"children":1915},{"style":423},[1916],{"type":327,"value":1917}," `json:\"unit\"`\n",{"type":321,"tag":399,"props":1919,"children":1920},{"class":401,"line":943},[1921],{"type":321,"tag":399,"props":1922,"children":1923},{"style":412},[1924],{"type":327,"value":607},{"type":321,"tag":399,"props":1926,"children":1927},{"class":401,"line":951},[1928],{"type":321,"tag":399,"props":1929,"children":1930},{"emptyLinePlaceholder":761},[1931],{"type":327,"value":764},{"type":321,"tag":399,"props":1933,"children":1934},{"class":401,"line":968},[1935,1939,1943],{"type":321,"tag":399,"props":1936,"children":1937},{"style":406},[1938],{"type":327,"value":324},{"type":321,"tag":399,"props":1940,"children":1941},{"style":453},[1942],{"type":327,"value":1029},{"type":321,"tag":399,"props":1944,"children":1945},{"style":406},[1946],{"type":327,"value":648},{"type":321,"tag":399,"props":1948,"children":1949},{"class":401,"line":985},[1950,1954],{"type":321,"tag":399,"props":1951,"children":1952},{"style":406},[1953],{"type":327,"value":1801},{"type":321,"tag":399,"props":1955,"children":1956},{"style":412},[1957],{"type":327,"value":1806},{"type":321,"tag":399,"props":1959,"children":1960},{"class":401,"line":1003},[1961,1966,1970,1974],{"type":321,"tag":399,"props":1962,"children":1963},{"style":412},[1964],{"type":327,"value":1965},"    Month ",{"type":321,"tag":399,"props":1967,"children":1968},{"style":453},[1969],{"type":327,"value":1912},{"type":321,"tag":399,"props":1971,"children":1972},{"style":406},[1973],{"type":327,"value":904},{"type":321,"tag":399,"props":1975,"children":1976},{"style":423},[1977],{"type":327,"value":1978}," \"month\"\n",{"type":321,"tag":399,"props":1980,"children":1981},{"class":401,"line":1011},[1982,1987,1991,1995],{"type":321,"tag":399,"props":1983,"children":1984},{"style":412},[1985],{"type":327,"value":1986},"    Year ",{"type":321,"tag":399,"props":1988,"children":1989},{"style":453},[1990],{"type":327,"value":1912},{"type":321,"tag":399,"props":1992,"children":1993},{"style":406},[1994],{"type":327,"value":904},{"type":321,"tag":399,"props":1996,"children":1997},{"style":423},[1998],{"type":327,"value":1073},{"type":321,"tag":399,"props":2000,"children":2001},{"class":401,"line":1019},[2002],{"type":321,"tag":399,"props":2003,"children":2004},{"style":412},[2005],{"type":327,"value":1855},{"type":321,"tag":399,"props":2007,"children":2008},{"class":401,"line":1036},[2009],{"type":321,"tag":399,"props":2010,"children":2011},{"emptyLinePlaceholder":761},[2012],{"type":327,"value":764},{"type":321,"tag":399,"props":2014,"children":2015},{"class":401,"line":1058},[2016,2020,2024,2029],{"type":321,"tag":399,"props":2017,"children":2018},{"style":406},[2019],{"type":327,"value":324},{"type":321,"tag":399,"props":2021,"children":2022},{"style":453},[2023],{"type":327,"value":1102},{"type":321,"tag":399,"props":2025,"children":2026},{"style":406},[2027],{"type":327,"value":2028}," interface",{"type":321,"tag":399,"props":2030,"children":2031},{"style":412},[2032],{"type":327,"value":491},{"type":321,"tag":399,"props":2034,"children":2035},{"class":401,"line":1076},[2036,2041,2046],{"type":321,"tag":399,"props":2037,"children":2038},{"style":779},[2039],{"type":327,"value":2040},"    PricingModel",{"type":321,"tag":399,"props":2042,"children":2043},{"style":412},[2044],{"type":327,"value":2045},"() ",{"type":321,"tag":399,"props":2047,"children":2048},{"style":453},[2049],{"type":327,"value":2050},"Model\n",{"type":321,"tag":399,"props":2052,"children":2053},{"class":401,"line":1084},[2054],{"type":321,"tag":399,"props":2055,"children":2056},{"style":412},[2057],{"type":327,"value":607},{"type":321,"tag":399,"props":2059,"children":2060},{"class":401,"line":1092},[2061],{"type":321,"tag":399,"props":2062,"children":2063},{"emptyLinePlaceholder":761},[2064],{"type":327,"value":764},{"type":321,"tag":399,"props":2066,"children":2067},{"class":401,"line":1124},[2068,2072,2076,2080],{"type":321,"tag":399,"props":2069,"children":2070},{"style":406},[2071],{"type":327,"value":324},{"type":321,"tag":399,"props":2073,"children":2074},{"style":453},[2075],{"type":327,"value":1111},{"type":321,"tag":399,"props":2077,"children":2078},{"style":406},[2079],{"type":327,"value":1625},{"type":321,"tag":399,"props":2081,"children":2082},{"style":412},[2083],{"type":327,"value":491},{"type":321,"tag":399,"props":2085,"children":2086},{"class":401,"line":1132},[2087,2092,2097],{"type":321,"tag":399,"props":2088,"children":2089},{"style":412},[2090],{"type":327,"value":2091},"    Model    ",{"type":321,"tag":399,"props":2093,"children":2094},{"style":453},[2095],{"type":327,"value":2096},"Model",{"type":321,"tag":399,"props":2098,"children":2099},{"style":423},[2100],{"type":327,"value":2101},"  `json:\"model\"`\n",{"type":321,"tag":399,"props":2103,"children":2104},{"class":401,"line":1148},[2105,2110,2114],{"type":321,"tag":399,"props":2106,"children":2107},{"style":412},[2108],{"type":327,"value":2109},"    Currency ",{"type":321,"tag":399,"props":2111,"children":2112},{"style":406},[2113],{"type":327,"value":1642},{"type":321,"tag":399,"props":2115,"children":2116},{"style":423},[2117],{"type":327,"value":2118}," `json:\"currency\"`\n",{"type":321,"tag":399,"props":2120,"children":2121},{"class":401,"line":1175},[2122,2127,2132],{"type":321,"tag":399,"props":2123,"children":2124},{"style":412},[2125],{"type":327,"value":2126},"    Unit     ",{"type":321,"tag":399,"props":2128,"children":2129},{"style":406},[2130],{"type":327,"value":2131},"*int",{"type":321,"tag":399,"props":2133,"children":2134},{"style":423},[2135],{"type":327,"value":2136},"   `json:\"unit\"`\n",{"type":321,"tag":399,"props":2138,"children":2139},{"class":401,"line":1192},[2140,2145,2149],{"type":321,"tag":399,"props":2141,"children":2142},{"style":412},[2143],{"type":327,"value":2144},"    Flat     ",{"type":321,"tag":399,"props":2146,"children":2147},{"style":406},[2148],{"type":327,"value":2131},{"type":321,"tag":399,"props":2150,"children":2151},{"style":423},[2152],{"type":327,"value":2153},"   `json:\"flat\"`\n",{"type":321,"tag":399,"props":2155,"children":2156},{"class":401,"line":1208},[2157],{"type":321,"tag":399,"props":2158,"children":2159},{"style":412},[2160],{"type":327,"value":607},{"type":321,"tag":399,"props":2162,"children":2163},{"class":401,"line":1225},[2164],{"type":321,"tag":399,"props":2165,"children":2166},{"emptyLinePlaceholder":761},[2167],{"type":327,"value":764},{"type":321,"tag":399,"props":2169,"children":2170},{"class":401,"line":1233},[2171,2176,2181,2186,2191,2196,2200,2204],{"type":321,"tag":399,"props":2172,"children":2173},{"style":406},[2174],{"type":327,"value":2175},"func",{"type":321,"tag":399,"props":2177,"children":2178},{"style":412},[2179],{"type":327,"value":2180}," (",{"type":321,"tag":399,"props":2182,"children":2183},{"style":453},[2184],{"type":327,"value":2185},"FixedAmount",{"type":321,"tag":399,"props":2187,"children":2188},{"style":412},[2189],{"type":327,"value":2190},") ",{"type":321,"tag":399,"props":2192,"children":2193},{"style":779},[2194],{"type":327,"value":2195},"PricingModel",{"type":321,"tag":399,"props":2197,"children":2198},{"style":412},[2199],{"type":327,"value":2045},{"type":321,"tag":399,"props":2201,"children":2202},{"style":453},[2203],{"type":327,"value":2096},{"type":321,"tag":399,"props":2205,"children":2206},{"style":412},[2207],{"type":327,"value":491},{"type":321,"tag":399,"props":2209,"children":2210},{"class":401,"line":1241},[2211,2215],{"type":321,"tag":399,"props":2212,"children":2213},{"style":406},[2214],{"type":327,"value":822},{"type":321,"tag":399,"props":2216,"children":2217},{"style":412},[2218],{"type":327,"value":2219}," Fixed\n",{"type":321,"tag":399,"props":2221,"children":2222},{"class":401,"line":1258},[2223],{"type":321,"tag":399,"props":2224,"children":2225},{"style":412},[2226],{"type":327,"value":607},{"type":321,"tag":399,"props":2228,"children":2229},{"class":401,"line":1283},[2230],{"type":321,"tag":399,"props":2231,"children":2232},{"emptyLinePlaceholder":761},[2233],{"type":327,"value":764},{"type":321,"tag":399,"props":2235,"children":2236},{"class":401,"line":1299},[2237,2241,2245,2249],{"type":321,"tag":399,"props":2238,"children":2239},{"style":406},[2240],{"type":327,"value":324},{"type":321,"tag":399,"props":2242,"children":2243},{"style":453},[2244],{"type":327,"value":1251},{"type":321,"tag":399,"props":2246,"children":2247},{"style":406},[2248],{"type":327,"value":1625},{"type":321,"tag":399,"props":2250,"children":2251},{"style":412},[2252],{"type":327,"value":491},{"type":321,"tag":399,"props":2254,"children":2255},{"class":401,"line":1317},[2256,2261,2265],{"type":321,"tag":399,"props":2257,"children":2258},{"style":412},[2259],{"type":327,"value":2260},"    Model ",{"type":321,"tag":399,"props":2262,"children":2263},{"style":453},[2264],{"type":327,"value":2096},{"type":321,"tag":399,"props":2266,"children":2267},{"style":423},[2268],{"type":327,"value":2269}," `json:\"model\"`\n",{"type":321,"tag":399,"props":2271,"children":2272},{"class":401,"line":1340},[2273,2277,2281],{"type":321,"tag":399,"props":2274,"children":2275},{"style":412},[2276],{"type":327,"value":2109},{"type":321,"tag":399,"props":2278,"children":2279},{"style":406},[2280],{"type":327,"value":1642},{"type":321,"tag":399,"props":2282,"children":2283},{"style":423},[2284],{"type":327,"value":2118},{"type":321,"tag":399,"props":2286,"children":2287},{"class":401,"line":1348},[2288,2293,2298],{"type":321,"tag":399,"props":2289,"children":2290},{"style":412},[2291],{"type":327,"value":2292},"    Mode ",{"type":321,"tag":399,"props":2294,"children":2295},{"style":453},[2296],{"type":327,"value":2297},"Mode",{"type":321,"tag":399,"props":2299,"children":2300},{"style":423},[2301],{"type":327,"value":2302}," `json:\"mode\"`\n",{"type":321,"tag":399,"props":2304,"children":2305},{"class":401,"line":1356},[2306,2311,2316],{"type":321,"tag":399,"props":2307,"children":2308},{"style":412},[2309],{"type":327,"value":2310},"    Tiers []",{"type":321,"tag":399,"props":2312,"children":2313},{"style":453},[2314],{"type":327,"value":2315},"Tier",{"type":321,"tag":399,"props":2317,"children":2318},{"style":423},[2319],{"type":327,"value":2320}," `json:\"tiers\"`\n",{"type":321,"tag":399,"props":2322,"children":2323},{"class":401,"line":1364},[2324],{"type":321,"tag":399,"props":2325,"children":2326},{"style":412},[2327],{"type":327,"value":607},{"type":321,"tag":399,"props":2329,"children":2330},{"class":401,"line":1380},[2331],{"type":321,"tag":399,"props":2332,"children":2333},{"emptyLinePlaceholder":761},[2334],{"type":327,"value":764},{"type":321,"tag":399,"props":2336,"children":2337},{"class":401,"line":1402},[2338,2342,2346,2351,2355,2359,2363,2367],{"type":321,"tag":399,"props":2339,"children":2340},{"style":406},[2341],{"type":327,"value":2175},{"type":321,"tag":399,"props":2343,"children":2344},{"style":412},[2345],{"type":327,"value":2180},{"type":321,"tag":399,"props":2347,"children":2348},{"style":453},[2349],{"type":327,"value":2350},"TieredAmount",{"type":321,"tag":399,"props":2352,"children":2353},{"style":412},[2354],{"type":327,"value":2190},{"type":321,"tag":399,"props":2356,"children":2357},{"style":779},[2358],{"type":327,"value":2195},{"type":321,"tag":399,"props":2360,"children":2361},{"style":412},[2362],{"type":327,"value":2045},{"type":321,"tag":399,"props":2364,"children":2365},{"style":453},[2366],{"type":327,"value":2096},{"type":321,"tag":399,"props":2368,"children":2369},{"style":412},[2370],{"type":327,"value":491},{"type":321,"tag":399,"props":2372,"children":2373},{"class":401,"line":1420},[2374,2378],{"type":321,"tag":399,"props":2375,"children":2376},{"style":406},[2377],{"type":327,"value":822},{"type":321,"tag":399,"props":2379,"children":2380},{"style":412},[2381],{"type":327,"value":2382}," Tiered\n",{"type":321,"tag":399,"props":2384,"children":2385},{"class":401,"line":1428},[2386],{"type":321,"tag":399,"props":2387,"children":2388},{"style":412},[2389],{"type":327,"value":607},{"type":321,"tag":399,"props":2391,"children":2392},{"class":401,"line":1436},[2393],{"type":321,"tag":399,"props":2394,"children":2395},{"emptyLinePlaceholder":761},[2396],{"type":327,"value":764},{"type":321,"tag":399,"props":2398,"children":2399},{"class":401,"line":1453},[2400,2404,2408],{"type":321,"tag":399,"props":2401,"children":2402},{"style":406},[2403],{"type":327,"value":324},{"type":321,"tag":399,"props":2405,"children":2406},{"style":453},[2407],{"type":327,"value":1163},{"type":321,"tag":399,"props":2409,"children":2410},{"style":406},[2411],{"type":327,"value":648},{"type":321,"tag":399,"props":2413,"children":2414},{"class":401,"line":1475},[2415,2419],{"type":321,"tag":399,"props":2416,"children":2417},{"style":406},[2418],{"type":327,"value":1801},{"type":321,"tag":399,"props":2420,"children":2421},{"style":412},[2422],{"type":327,"value":1806},{"type":321,"tag":399,"props":2424,"children":2425},{"class":401,"line":1493},[2426,2431,2435,2439],{"type":321,"tag":399,"props":2427,"children":2428},{"style":412},[2429],{"type":327,"value":2430},"    Fixed ",{"type":321,"tag":399,"props":2432,"children":2433},{"style":453},[2434],{"type":327,"value":2096},{"type":321,"tag":399,"props":2436,"children":2437},{"style":406},[2438],{"type":327,"value":904},{"type":321,"tag":399,"props":2440,"children":2441},{"style":423},[2442],{"type":327,"value":2443}," \"fixed\"\n",{"type":321,"tag":399,"props":2445,"children":2446},{"class":401,"line":1501},[2447,2452,2456,2460],{"type":321,"tag":399,"props":2448,"children":2449},{"style":412},[2450],{"type":327,"value":2451},"    Tiered ",{"type":321,"tag":399,"props":2453,"children":2454},{"style":453},[2455],{"type":327,"value":2096},{"type":321,"tag":399,"props":2457,"children":2458},{"style":406},[2459],{"type":327,"value":904},{"type":321,"tag":399,"props":2461,"children":2462},{"style":423},[2463],{"type":327,"value":1417},{"type":321,"tag":399,"props":2465,"children":2466},{"class":401,"line":1509},[2467],{"type":321,"tag":399,"props":2468,"children":2469},{"style":412},[2470],{"type":327,"value":1855},{"type":321,"tag":399,"props":2472,"children":2473},{"class":401,"line":1525},[2474],{"type":321,"tag":399,"props":2475,"children":2476},{"emptyLinePlaceholder":761},[2477],{"type":327,"value":764},{"type":321,"tag":399,"props":2479,"children":2480},{"class":401,"line":1541},[2481,2485,2489],{"type":321,"tag":399,"props":2482,"children":2483},{"style":406},[2484],{"type":327,"value":324},{"type":321,"tag":399,"props":2486,"children":2487},{"style":453},[2488],{"type":327,"value":1446},{"type":321,"tag":399,"props":2490,"children":2491},{"style":406},[2492],{"type":327,"value":648},{"type":321,"tag":399,"props":2494,"children":2495},{"class":401,"line":1557},[2496,2500],{"type":321,"tag":399,"props":2497,"children":2498},{"style":406},[2499],{"type":327,"value":1801},{"type":321,"tag":399,"props":2501,"children":2502},{"style":412},[2503],{"type":327,"value":1806},{"type":321,"tag":399,"props":2505,"children":2506},{"class":401,"line":1574},[2507,2512,2516,2520],{"type":321,"tag":399,"props":2508,"children":2509},{"style":412},[2510],{"type":327,"value":2511},"    Graduated ",{"type":321,"tag":399,"props":2513,"children":2514},{"style":453},[2515],{"type":327,"value":2297},{"type":321,"tag":399,"props":2517,"children":2518},{"style":406},[2519],{"type":327,"value":904},{"type":321,"tag":399,"props":2521,"children":2522},{"style":423},[2523],{"type":327,"value":2524}," \"graduated\"\n",{"type":321,"tag":399,"props":2526,"children":2528},{"class":401,"line":2527},65,[2529,2534,2538,2542],{"type":321,"tag":399,"props":2530,"children":2531},{"style":412},[2532],{"type":327,"value":2533},"    Total ",{"type":321,"tag":399,"props":2535,"children":2536},{"style":453},[2537],{"type":327,"value":2297},{"type":321,"tag":399,"props":2539,"children":2540},{"style":406},[2541],{"type":327,"value":904},{"type":321,"tag":399,"props":2543,"children":2544},{"style":423},[2545],{"type":327,"value":1490},{"type":321,"tag":399,"props":2547,"children":2549},{"class":401,"line":2548},66,[2550],{"type":321,"tag":399,"props":2551,"children":2552},{"style":412},[2553],{"type":327,"value":1855},{"type":321,"tag":399,"props":2555,"children":2557},{"class":401,"line":2556},67,[2558],{"type":321,"tag":399,"props":2559,"children":2560},{"emptyLinePlaceholder":761},[2561],{"type":327,"value":764},{"type":321,"tag":399,"props":2563,"children":2565},{"class":401,"line":2564},68,[2566,2570,2574,2578],{"type":321,"tag":399,"props":2567,"children":2568},{"style":406},[2569],{"type":327,"value":324},{"type":321,"tag":399,"props":2571,"children":2572},{"style":453},[2573],{"type":327,"value":1332},{"type":321,"tag":399,"props":2575,"children":2576},{"style":406},[2577],{"type":327,"value":1625},{"type":321,"tag":399,"props":2579,"children":2580},{"style":412},[2581],{"type":327,"value":491},{"type":321,"tag":399,"props":2583,"children":2585},{"class":401,"line":2584},69,[2586,2591,2595],{"type":321,"tag":399,"props":2587,"children":2588},{"style":412},[2589],{"type":327,"value":2590},"    Unit  ",{"type":321,"tag":399,"props":2592,"children":2593},{"style":406},[2594],{"type":327,"value":2131},{"type":321,"tag":399,"props":2596,"children":2597},{"style":423},[2598],{"type":327,"value":1917},{"type":321,"tag":399,"props":2600,"children":2602},{"class":401,"line":2601},70,[2603,2608,2612],{"type":321,"tag":399,"props":2604,"children":2605},{"style":412},[2606],{"type":327,"value":2607},"    Flat  ",{"type":321,"tag":399,"props":2609,"children":2610},{"style":406},[2611],{"type":327,"value":2131},{"type":321,"tag":399,"props":2613,"children":2614},{"style":423},[2615],{"type":327,"value":2616}," `json:\"flat\"`\n",{"type":321,"tag":399,"props":2618,"children":2620},{"class":401,"line":2619},71,[2621,2626,2630],{"type":321,"tag":399,"props":2622,"children":2623},{"style":412},[2624],{"type":327,"value":2625},"    UpTo  ",{"type":321,"tag":399,"props":2627,"children":2628},{"style":406},[2629],{"type":327,"value":2131},{"type":321,"tag":399,"props":2631,"children":2632},{"style":423},[2633],{"type":327,"value":2634}," `json:\"upTo\"`\n",{"type":321,"tag":399,"props":2636,"children":2638},{"class":401,"line":2637},72,[2639],{"type":321,"tag":399,"props":2640,"children":2641},{"style":412},[2642],{"type":327,"value":607},{"type":321,"tag":399,"props":2644,"children":2646},{"class":401,"line":2645},73,[2647],{"type":321,"tag":399,"props":2648,"children":2649},{"emptyLinePlaceholder":761},[2650],{"type":327,"value":764},{"type":321,"tag":399,"props":2652,"children":2654},{"class":401,"line":2653},74,[2655,2659,2663,2667,2671,2675,2679,2683],{"type":321,"tag":399,"props":2656,"children":2657},{"style":406},[2658],{"type":327,"value":2175},{"type":321,"tag":399,"props":2660,"children":2661},{"style":779},[2662],{"type":327,"value":456},{"type":321,"tag":399,"props":2664,"children":2665},{"style":412},[2666],{"type":327,"value":505},{"type":321,"tag":399,"props":2668,"children":2669},{"style":453},[2670],{"type":327,"value":510},{"type":321,"tag":399,"props":2672,"children":2673},{"style":453},[2674],{"type":327,"value":520},{"type":321,"tag":399,"props":2676,"children":2677},{"style":412},[2678],{"type":327,"value":2190},{"type":321,"tag":399,"props":2680,"children":2681},{"style":453},[2682],{"type":327,"value":476},{"type":321,"tag":399,"props":2684,"children":2685},{"style":412},[2686],{"type":327,"value":491},{"type":321,"tag":399,"props":2688,"children":2690},{"class":401,"line":2689},75,[2691,2695,2699],{"type":321,"tag":399,"props":2692,"children":2693},{"style":406},[2694],{"type":327,"value":822},{"type":321,"tag":399,"props":2696,"children":2697},{"style":453},[2698],{"type":327,"value":456},{"type":321,"tag":399,"props":2700,"children":2701},{"style":412},[2702],{"type":327,"value":2703},"{\n",{"type":321,"tag":399,"props":2705,"children":2707},{"class":401,"line":2706},76,[2708],{"type":321,"tag":399,"props":2709,"children":2710},{"style":412},[2711],{"type":327,"value":2712},"        ID: price.ID,\n",{"type":321,"tag":399,"props":2714,"children":2716},{"class":401,"line":2715},77,[2717,2721],{"type":321,"tag":399,"props":2718,"children":2719},{"style":406},[2720],{"type":327,"value":844},{"type":321,"tag":399,"props":2722,"children":2723},{"style":433},[2724],{"type":327,"value":571},{"type":321,"tag":399,"props":2726,"children":2728},{"class":401,"line":2727},78,[2729],{"type":321,"tag":399,"props":2730,"children":2731},{"style":412},[2732],{"type":327,"value":598},{"type":321,"tag":399,"props":2734,"children":2736},{"class":401,"line":2735},79,[2737],{"type":321,"tag":399,"props":2738,"children":2739},{"style":412},[2740],{"type":327,"value":607},{"type":321,"tag":2742,"props":2743,"children":2744},"style",{},[2745],{"type":327,"value":2746},"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":439,"depth":439,"links":2748},[2749,2750,2751],{"id":324,"depth":429,"text":328},{"id":368,"depth":429,"text":371},{"id":379,"depth":429,"text":382},"markdown","content:99.integrations:2.models:2.price.md","content","99.integrations/2.models/2.price.md","99.integrations/2.models/2.price","md",{"loc":311},[2760,2764],{"_path":2761,"title":2762,"description":2763},"/integrations/models/customer","Customer Model","A customer is a user who is being billed for a subscription. This model includes information about the customer, such as their name, email, address, etc.",{"_path":2765,"title":2766,"description":2767},"/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":375,"_dir":510,"_draft":313,"_partial":313,"_locale":314,"type":2769,"properties":2770,"_id":2831,"_type":2832,"title":2833,"_source":2754,"_file":2834,"_stem":2835,"_extension":2832},"object",{"id":2771,"type":2774,"duration":2779,"amount":2782,"productId":2824,"name":2827,"description":2829},{"type":1642,"severity":2772,"description":2773},"required","The unique identifier of the price",{"type":881,"severity":2772,"description":2775,"values":2776},"The type of the price. All prices should have the same type.",[2777,2778],"'standalone'","'product'",{"severity":2772,"description":2780,"ref":2781},"Describes the billing cycle of the price","/types/price/duration.type.json",{"type":2783,"severity":2772,"description":2784,"oneOf":2785},"union","Describes the price amount. There are two types of amounts: `tiered` and `fixed`. Some apps support both types, but most common pricing model is `fixed`. All numeric values are in cents (or equivalent minor currency unit), e.g. $1.10 is represented as 110.",[2786,2802],{"title":2787,"description":2788,"type":2769,"properties":2789},"Fixed","The price is fixed and doesn't depend on the quantity of items",{"model":2790,"currency":2794,"unit":2796,"flat":2800},{"type":881,"severity":2772,"description":2791,"values":2792},"The pricing model",[2793],"'fixed'",{"type":1642,"severity":2772,"description":2795},"The currency of the price. Use the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency codes, e.g. `USD` for US Dollar, `EUR` for Euro, etc.",{"type":2797,"severity":2798,"description":2799},"integer","optional","Price per unit in cents, affected by `subscription.item.quantity`",{"type":2797,"severity":2798,"description":2801},"Flat price in cents, not affected by `subscription.item.quantity`",{"title":2803,"type":2769,"description":2804,"properties":2805},"Tiered","The price depends on the quantity of items",{"model":2806,"currency":2809,"mode":2810,"tiers":2815},{"type":881,"severity":2772,"description":2791,"values":2807},[2808],"'tiered'",{"type":1642,"severity":2772,"description":2795},{"type":881,"severity":2772,"description":2811,"values":2812},"The pricing mode.\n::collapsible{name='example'}\n  Imagine you have a following tiered pricing:\n* 1-10 units: $1.00\n* 11-20 units: $0.90\n\nAnd you have 15 units in the subscription. The total cost will be calculated as follows based on the `mode`:\n- `graduated`: Price is determined by distributing the quantity over the tiers. In this case, the price will be $1.00 for the first 10 units and $0.90 for the remaining 5 units.\n- `total`: Price is determined by the total quantity. In this case, the price will be $0.90 for all 15 units.\n\n::",[2813,2814],"'graduated'","'total'",{"type":2816,"severity":2772,"description":2817,"items":2818},"array","Array of tiered prices",{"type":2769,"properties":2819},{"unit":2820,"flat":2821,"upTo":2822},{"type":2797,"severity":2798,"description":2799},{"type":2797,"severity":2798,"description":2801},{"type":2797,"severity":2798,"description":2823},"Maximum quantity for this tier. If not set, the tier is considered last",{"type":1642,"severity":2825,"description":2826},"recommended"," ID of the product this price belongs to. `type` should be set to `'product'`",{"type":1642,"severity":2825,"description":2828},"Customer-facing name of the price. If not provided, a name will be generated based on the amount and duration",{"type":1642,"severity":2798,"description":2830}," Internal description of the price, hidden from the customers","content:types:price:price.type.json","json","PriceType","types/price/price.type.json","types/price/price.type",{"data":2837,"body":2838,"excerpt":-1,"toc":2844},{"title":314,"description":2773},{"type":318,"children":2839},[2840],{"type":321,"tag":330,"props":2841,"children":2842},{},[2843],{"type":327,"value":2773},{"title":314,"searchDepth":429,"depth":429,"links":2845},[],{"data":2847,"body":2849,"excerpt":-1,"toc":2866},{"title":314,"description":2848},"'standalone' 'product'",{"type":318,"children":2850},[2851],{"type":321,"tag":330,"props":2852,"children":2853},{},[2854,2859,2861],{"type":321,"tag":358,"props":2855,"children":2857},{"className":2856},[],[2858],{"type":327,"value":2777},{"type":327,"value":2860}," ",{"type":321,"tag":358,"props":2862,"children":2864},{"className":2863},[],[2865],{"type":327,"value":2778},{"title":314,"searchDepth":429,"depth":429,"links":2867},[],{"data":2869,"body":2870,"excerpt":-1,"toc":2876},{"title":314,"description":2775},{"type":318,"children":2871},[2872],{"type":321,"tag":330,"props":2873,"children":2874},{},[2875],{"type":327,"value":2775},{"title":314,"searchDepth":429,"depth":429,"links":2877},[],{"data":2879,"body":2881,"excerpt":-1,"toc":2911},{"title":314,"description":2880},"Describes the price amount. There are two types of amounts: tiered and fixed. Some apps support both types, but most common pricing model is fixed. All numeric values are in cents (or equivalent minor currency unit), e.g. $1.10 is represented as 110.",{"type":318,"children":2882},[2883],{"type":321,"tag":330,"props":2884,"children":2885},{},[2886,2888,2894,2896,2902,2904,2909],{"type":327,"value":2887},"Describes the price amount. There are two types of amounts: ",{"type":321,"tag":358,"props":2889,"children":2891},{"className":2890},[],[2892],{"type":327,"value":2893},"tiered",{"type":327,"value":2895}," and ",{"type":321,"tag":358,"props":2897,"children":2899},{"className":2898},[],[2900],{"type":327,"value":2901},"fixed",{"type":327,"value":2903},". Some apps support both types, but most common pricing model is ",{"type":321,"tag":358,"props":2905,"children":2907},{"className":2906},[],[2908],{"type":327,"value":2901},{"type":327,"value":2910},". All numeric values are in cents (or equivalent minor currency unit), e.g. $1.10 is represented as 110.",{"title":314,"searchDepth":429,"depth":429,"links":2912},[],{"data":2914,"body":2916,"excerpt":-1,"toc":2935},{"title":314,"description":2915},"ID of the product this price belongs to. type should be set to 'product'",{"type":318,"children":2917},[2918],{"type":321,"tag":330,"props":2919,"children":2920},{},[2921,2923,2928,2930],{"type":327,"value":2922},"ID of the product this price belongs to. ",{"type":321,"tag":358,"props":2924,"children":2926},{"className":2925},[],[2927],{"type":327,"value":324},{"type":327,"value":2929}," should be set to ",{"type":321,"tag":358,"props":2931,"children":2933},{"className":2932},[],[2934],{"type":327,"value":2778},{"title":314,"searchDepth":429,"depth":429,"links":2936},[],{"data":2938,"body":2939,"excerpt":-1,"toc":2945},{"title":314,"description":2828},{"type":318,"children":2940},[2941],{"type":321,"tag":330,"props":2942,"children":2943},{},[2944],{"type":327,"value":2828},{"title":314,"searchDepth":429,"depth":429,"links":2946},[],{"data":2948,"body":2950,"excerpt":-1,"toc":2956},{"title":314,"description":2949},"Internal description of the price, hidden from the customers",{"type":318,"children":2951},[2952],{"type":321,"tag":330,"props":2953,"children":2954},{},[2955],{"type":327,"value":2949},{"title":314,"searchDepth":429,"depth":429,"links":2957},[],{"_path":2959,"_dir":510,"_draft":313,"_partial":313,"_locale":314,"type":2769,"properties":2960,"_id":2968,"_type":2832,"title":2969,"_source":2754,"_file":2970,"_stem":2971,"_extension":2832},"/types/price/duration.type",{"amount":2961,"unit":2963},{"type":2797,"severity":2772,"description":2962},"Amount of `unit`. For example, if `unit` is `month`, then `amount` is the number of months.",{"type":881,"severity":2772,"description":2964,"values":2965},"Duration unit.",[2966,2967],"'month'","'year'","content:types:price:duration.type.json","DurationType","types/price/duration.type.json","types/price/duration.type",{"data":2973,"body":2974,"excerpt":-1,"toc":2980},{"title":314,"description":2780},{"type":318,"children":2975},[2976],{"type":321,"tag":330,"props":2977,"children":2978},{},[2979],{"type":327,"value":2780},{"title":314,"searchDepth":429,"depth":429,"links":2981},[],1775515592113]