@@ -239,7 +239,7 @@ with Polar() as polar:
239
239
created_at = dateutil.parser.isoparse(" 2025-11-18T07:12:26.749Z" ),
240
240
modified_at = dateutil.parser.isoparse(" 2024-08-14T14:29:29.201Z" ),
241
241
metadata = {
242
- " key" : False ,
242
+ " key" : 648726 ,
243
243
},
244
244
type = polar_sdk.BenefitType.GITHUB_REPOSITORY ,
245
245
description = " phew empty flawed worth radiant anti of blissfully" ,
@@ -253,7 +253,7 @@ with Polar() as polar:
253
253
modified_at = dateutil.parser.isoparse(" 2024-06-27T20:20:27.400Z" ),
254
254
metadata = {
255
255
" key" : 8517.45 ,
256
- " key1" : 5003.72 ,
256
+ " key1" : " <value> " ,
257
257
},
258
258
type = polar_sdk.BenefitType.LICENSE_KEYS ,
259
259
description = " ack neatly jagged as weekly drat nor why" ,
@@ -296,22 +296,14 @@ with Polar() as polar:
296
296
),
297
297
],
298
298
),
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 " ),
302
302
id = " <value>" ,
303
303
is_archived = False ,
304
304
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 ,
315
307
),
316
308
discount = polar_sdk.CheckoutDiscountPercentageRepeatDuration(
317
309
duration = polar_sdk.DiscountDuration.FOREVER ,
@@ -326,58 +318,51 @@ with Polar() as polar:
326
318
attached_custom_fields = [
327
319
polar_sdk.AttachedCustomField(
328
320
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 " ),
332
324
id = " <value>" ,
333
325
metadata = {
334
- " key" : 4995.26 ,
326
+ " key" : 3852.18 ,
335
327
},
336
328
slug = " <value>" ,
337
329
name = " <value>" ,
338
330
organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
339
- properties = polar_sdk.CustomFieldDateProperties (),
331
+ properties = polar_sdk.CustomFieldTextProperties (),
340
332
),
341
333
order = 192934 ,
342
334
required = True ,
343
335
),
344
336
polar_sdk.AttachedCustomField(
345
337
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 " ),
349
341
id = " <value>" ,
350
342
metadata = {
351
- " key" : " <value> " ,
343
+ " key" : 18677 ,
352
344
},
353
345
slug = " <value>" ,
354
346
name = " <value>" ,
355
347
organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
356
- properties = polar_sdk.CustomFieldCheckboxProperties (),
348
+ properties = polar_sdk.CustomFieldDateProperties (),
357
349
),
358
350
order = 597839 ,
359
351
required = False ,
360
352
),
361
353
polar_sdk.AttachedCustomField(
362
354
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 " ),
366
358
id = " <value>" ,
367
359
metadata = {
368
- " key" : False ,
360
+ " key" : 7402.96 ,
369
361
},
370
362
slug = " <value>" ,
371
363
name = " <value>" ,
372
364
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(),
381
366
),
382
367
order = 660585 ,
383
368
required = False ,
@@ -463,24 +448,30 @@ async def main():
463
448
is_archived = False ,
464
449
organization_id = " <value>" ,
465
450
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 " ),
469
454
id = " <value>" ,
470
455
is_archived = False ,
471
456
product_id = " <value>" ,
472
- type = polar_sdk.ProductPriceType.ONE_TIME ,
457
+ type = polar_sdk.ProductPriceType.RECURRING ,
473
458
recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
474
459
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
+ ),
476
467
),
477
468
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 " ),
480
471
id = " <value>" ,
481
472
is_archived = False ,
482
473
product_id = " <value>" ,
483
- recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
474
+ recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
484
475
),
485
476
],
486
477
benefits = [
@@ -527,7 +518,7 @@ async def main():
527
518
created_at = dateutil.parser.isoparse(" 2025-11-18T07:12:26.749Z" ),
528
519
modified_at = dateutil.parser.isoparse(" 2024-08-14T14:29:29.201Z" ),
529
520
metadata = {
530
- " key" : 7454.42 ,
521
+ " key" : 648726 ,
531
522
},
532
523
type = polar_sdk.BenefitType.GITHUB_REPOSITORY ,
533
524
description = " phew empty flawed worth radiant anti of blissfully" ,
@@ -585,17 +576,17 @@ async def main():
585
576
],
586
577
),
587
578
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 " ),
590
581
id = " <value>" ,
591
582
is_archived = False ,
592
583
product_id = " <value>" ,
593
- type = polar_sdk.ProductPriceType.RECURRING ,
584
+ type = polar_sdk.ProductPriceType.ONE_TIME ,
594
585
recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
595
586
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 ,
599
590
),
600
591
discount = polar_sdk.CheckoutDiscountPercentageRepeatDuration(
601
592
duration = polar_sdk.DiscountDuration.FOREVER ,
@@ -608,6 +599,23 @@ async def main():
608
599
),
609
600
subscription_id = " <value>" ,
610
601
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
+ ),
611
619
polar_sdk.AttachedCustomField(
612
620
custom_field_id = " <value>" ,
613
621
custom_field = polar_sdk.CustomFieldSelect(
@@ -629,8 +637,8 @@ async def main():
629
637
],
630
638
),
631
639
),
632
- order = 192934 ,
633
- required = True ,
640
+ order = 597839 ,
641
+ required = False ,
634
642
),
635
643
polar_sdk.AttachedCustomField(
636
644
custom_field_id = " <value>" ,
@@ -646,30 +654,6 @@ async def main():
646
654
organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
647
655
properties = polar_sdk.CustomFieldDateProperties(),
648
656
),
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
- ),
673
657
order = 660585 ,
674
658
required = False ,
675
659
),
0 commit comments