@@ -239,7 +239,7 @@ with Polar() as polar:
239239 created_at = dateutil.parser.isoparse(" 2025-11-18T07:12:26.749Z" ),
240240 modified_at = dateutil.parser.isoparse(" 2024-08-14T14:29:29.201Z" ),
241241 metadata = {
242- " key" : False ,
242+ " key" : 648726 ,
243243 },
244244 type = polar_sdk.BenefitType.GITHUB_REPOSITORY ,
245245 description = " phew empty flawed worth radiant anti of blissfully" ,
@@ -253,7 +253,7 @@ with Polar() as polar:
253253 modified_at = dateutil.parser.isoparse(" 2024-06-27T20:20:27.400Z" ),
254254 metadata = {
255255 " key" : 8517.45 ,
256- " key1" : 5003.72 ,
256+ " key1" : " <value> " ,
257257 },
258258 type = polar_sdk.BenefitType.LICENSE_KEYS ,
259259 description = " ack neatly jagged as weekly drat nor why" ,
@@ -296,22 +296,14 @@ with Polar() as polar:
296296 ),
297297 ],
298298 ),
299- product_price = polar_sdk.ProductPriceMeteredUnit (
300- created_at = dateutil.parser.isoparse(" 2025-06-18T23:55:22.042Z " ),
301- modified_at = dateutil.parser.isoparse(" 2025-07-31T13:25:31.669Z " ),
299+ product_price = polar_sdk.ProductPriceFree (
300+ created_at = dateutil.parser.isoparse(" 2024-07-02T09:46:29.338Z " ),
301+ modified_at = dateutil.parser.isoparse(" 2025-01-24T18:08:49.597Z " ),
302302 id = " <value>" ,
303303 is_archived = False ,
304304 product_id = " <value>" ,
305- type = polar_sdk.ProductPriceType.ONE_TIME ,
306- recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
307- price_currency = " <value>" ,
308- unit_amount = " <value>" ,
309- cap_amount = 626642 ,
310- meter_id = " <value>" ,
311- meter = polar_sdk.ProductPriceMeter(
312- id = " <value>" ,
313- name = " <value>" ,
314- ),
305+ type = polar_sdk.ProductPriceType.RECURRING ,
306+ recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
315307 ),
316308 discount = polar_sdk.CheckoutDiscountPercentageRepeatDuration(
317309 duration = polar_sdk.DiscountDuration.FOREVER ,
@@ -326,58 +318,51 @@ with Polar() as polar:
326318 attached_custom_fields = [
327319 polar_sdk.AttachedCustomField(
328320 custom_field_id = " <value>" ,
329- custom_field = polar_sdk.CustomFieldDate (
330- created_at = dateutil.parser.isoparse(" 2024-02-07T04:30:48.802Z " ),
331- modified_at = dateutil.parser.isoparse(" 2025-06-25T22:47:14.264Z " ),
321+ custom_field = polar_sdk.CustomFieldText (
322+ created_at = dateutil.parser.isoparse(" 2023-11-12T09:40:10.044Z " ),
323+ modified_at = dateutil.parser.isoparse(" 2023-08-29T09:50:00.241Z " ),
332324 id = " <value>" ,
333325 metadata = {
334- " key" : 4995.26 ,
326+ " key" : 3852.18 ,
335327 },
336328 slug = " <value>" ,
337329 name = " <value>" ,
338330 organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
339- properties = polar_sdk.CustomFieldDateProperties (),
331+ properties = polar_sdk.CustomFieldTextProperties (),
340332 ),
341333 order = 192934 ,
342334 required = True ,
343335 ),
344336 polar_sdk.AttachedCustomField(
345337 custom_field_id = " <value>" ,
346- custom_field = polar_sdk.CustomFieldCheckbox (
347- created_at = dateutil.parser.isoparse(" 2024-08-14T19:11:10.463Z " ),
348- modified_at = dateutil.parser.isoparse(" 2023-04-15T12:36:50.681Z " ),
338+ custom_field = polar_sdk.CustomFieldDate (
339+ created_at = dateutil.parser.isoparse(" 2025-06-25T22:47:14.264Z " ),
340+ modified_at = dateutil.parser.isoparse(" 2025-01-27T19:10:37.564Z " ),
349341 id = " <value>" ,
350342 metadata = {
351- " key" : " <value> " ,
343+ " key" : 18677 ,
352344 },
353345 slug = " <value>" ,
354346 name = " <value>" ,
355347 organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
356- properties = polar_sdk.CustomFieldCheckboxProperties (),
348+ properties = polar_sdk.CustomFieldDateProperties (),
357349 ),
358350 order = 597839 ,
359351 required = False ,
360352 ),
361353 polar_sdk.AttachedCustomField(
362354 custom_field_id = " <value>" ,
363- custom_field = polar_sdk.CustomFieldSelect (
364- created_at = dateutil.parser.isoparse(" 2025-03-22T08:44:11.595Z " ),
365- modified_at = dateutil.parser.isoparse(" 2024-09-02T09 :05:14.886Z " ),
355+ custom_field = polar_sdk.CustomFieldNumber (
356+ created_at = dateutil.parser.isoparse(" 2023-04-15T12:36:50.681Z " ),
357+ modified_at = dateutil.parser.isoparse(" 2023-04-02T00 :05:42.586Z " ),
366358 id = " <value>" ,
367359 metadata = {
368- " key" : False ,
360+ " key" : 7402.96 ,
369361 },
370362 slug = " <value>" ,
371363 name = " <value>" ,
372364 organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
373- properties = polar_sdk.CustomFieldSelectProperties(
374- options = [
375- polar_sdk.CustomFieldSelectOption(
376- value = " <value>" ,
377- label = " <value>" ,
378- ),
379- ],
380- ),
365+ properties = polar_sdk.CustomFieldNumberProperties(),
381366 ),
382367 order = 660585 ,
383368 required = False ,
@@ -463,24 +448,30 @@ async def main():
463448 is_archived = False ,
464449 organization_id = " <value>" ,
465450 prices = [
466- polar_sdk.ProductPriceFixed (
467- created_at = dateutil.parser.isoparse(" 2024-12-24T07:52:43.518Z " ),
468- modified_at = dateutil.parser.isoparse(" 2023-04-26T22:34:57.487Z " ),
451+ polar_sdk.ProductPriceMeteredUnit (
452+ created_at = dateutil.parser.isoparse(" 2024-12-13T18:25:33.693Z " ),
453+ modified_at = dateutil.parser.isoparse(" 2023-01-09T04:38:53.436Z " ),
469454 id = " <value>" ,
470455 is_archived = False ,
471456 product_id = " <value>" ,
472- type = polar_sdk.ProductPriceType.ONE_TIME ,
457+ type = polar_sdk.ProductPriceType.RECURRING ,
473458 recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
474459 price_currency = " <value>" ,
475- price_amount = 856200 ,
460+ unit_amount = " <value>" ,
461+ cap_amount = 199664 ,
462+ meter_id = " <value>" ,
463+ meter = polar_sdk.ProductPriceMeter(
464+ id = " <value>" ,
465+ name = " <value>" ,
466+ ),
476467 ),
477468 polar_sdk.LegacyRecurringProductPriceFree(
478- created_at = dateutil.parser.isoparse(" 2024-11-27T14:29:40.329Z " ),
479- modified_at = dateutil.parser.isoparse(" 2025-12-25T02:24:08.035Z " ),
469+ created_at = dateutil.parser.isoparse(" 2023-01-25T05:44:56.791Z " ),
470+ modified_at = dateutil.parser.isoparse(" 2025-05-25T15:20:50.694Z " ),
480471 id = " <value>" ,
481472 is_archived = False ,
482473 product_id = " <value>" ,
483- recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
474+ recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
484475 ),
485476 ],
486477 benefits = [
@@ -527,7 +518,7 @@ async def main():
527518 created_at = dateutil.parser.isoparse(" 2025-11-18T07:12:26.749Z" ),
528519 modified_at = dateutil.parser.isoparse(" 2024-08-14T14:29:29.201Z" ),
529520 metadata = {
530- " key" : 7454.42 ,
521+ " key" : 648726 ,
531522 },
532523 type = polar_sdk.BenefitType.GITHUB_REPOSITORY ,
533524 description = " phew empty flawed worth radiant anti of blissfully" ,
@@ -585,17 +576,17 @@ async def main():
585576 ],
586577 ),
587578 product_price = polar_sdk.ProductPriceCustom(
588- created_at = dateutil.parser.isoparse(" 2025-03-10T15:40:27.607Z " ),
589- modified_at = dateutil.parser.isoparse(" 2025-09-19T22:43:39.176Z " ),
579+ created_at = dateutil.parser.isoparse(" 2024-12-18T06:26:25.293Z " ),
580+ modified_at = dateutil.parser.isoparse(" 2025-03-28T00:06:24.086Z " ),
590581 id = " <value>" ,
591582 is_archived = False ,
592583 product_id = " <value>" ,
593- type = polar_sdk.ProductPriceType.RECURRING ,
584+ type = polar_sdk.ProductPriceType.ONE_TIME ,
594585 recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
595586 price_currency = " <value>" ,
596- minimum_amount = 774323 ,
597- maximum_amount = 538461 ,
598- preset_amount = 729540 ,
587+ minimum_amount = 476477 ,
588+ maximum_amount = 729611 ,
589+ preset_amount = 905974 ,
599590 ),
600591 discount = polar_sdk.CheckoutDiscountPercentageRepeatDuration(
601592 duration = polar_sdk.DiscountDuration.FOREVER ,
@@ -608,6 +599,23 @@ async def main():
608599 ),
609600 subscription_id = " <value>" ,
610601 attached_custom_fields = [
602+ polar_sdk.AttachedCustomField(
603+ custom_field_id = " <value>" ,
604+ custom_field = polar_sdk.CustomFieldNumber(
605+ created_at = dateutil.parser.isoparse(" 2025-10-29T00:32:24.235Z" ),
606+ modified_at = dateutil.parser.isoparse(" 2025-04-28T15:46:25.145Z" ),
607+ id = " <value>" ,
608+ metadata = {
609+ " key" : 7295.4 ,
610+ },
611+ slug = " <value>" ,
612+ name = " <value>" ,
613+ organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
614+ properties = polar_sdk.CustomFieldNumberProperties(),
615+ ),
616+ order = 192934 ,
617+ required = True ,
618+ ),
611619 polar_sdk.AttachedCustomField(
612620 custom_field_id = " <value>" ,
613621 custom_field = polar_sdk.CustomFieldSelect(
@@ -629,8 +637,8 @@ async def main():
629637 ],
630638 ),
631639 ),
632- order = 192934 ,
633- required = True ,
640+ order = 597839 ,
641+ required = False ,
634642 ),
635643 polar_sdk.AttachedCustomField(
636644 custom_field_id = " <value>" ,
@@ -646,30 +654,6 @@ async def main():
646654 organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
647655 properties = polar_sdk.CustomFieldDateProperties(),
648656 ),
649- order = 597839 ,
650- required = False ,
651- ),
652- polar_sdk.AttachedCustomField(
653- custom_field_id = " <value>" ,
654- custom_field = polar_sdk.CustomFieldSelect(
655- created_at = dateutil.parser.isoparse(" 2025-11-05T18:06:37.266Z" ),
656- modified_at = dateutil.parser.isoparse(" 2025-05-05T09:05:51.688Z" ),
657- id = " <value>" ,
658- metadata = {
659- " key" : " <value>" ,
660- },
661- slug = " <value>" ,
662- name = " <value>" ,
663- organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
664- properties = polar_sdk.CustomFieldSelectProperties(
665- options = [
666- polar_sdk.CustomFieldSelectOption(
667- value = " <value>" ,
668- label = " <value>" ,
669- ),
670- ],
671- ),
672- ),
673657 order = 660585 ,
674658 required = False ,
675659 ),
0 commit comments