@@ -174,7 +174,7 @@ with Polar() as polar:
174
174
prices = [
175
175
polar_sdk.LegacyRecurringProductPriceFree(
176
176
created_at = parse_datetime(" 2023-09-13T08:36:46.434Z" ),
177
- modified_at = parse_datetime(" 2023-09-14T02:01:27.394Z " ),
177
+ modified_at = parse_datetime(" 2023-10-05T12:55:46.428Z " ),
178
178
id = " <value>" ,
179
179
is_archived = False ,
180
180
product_id = " <value>" ,
@@ -251,42 +251,37 @@ with Polar() as polar:
251
251
is_archived = False ,
252
252
organization_id = " <value>" ,
253
253
prices = [
254
- polar_sdk.ProductPriceCustom(
255
- created_at = parse_datetime(" 2025-03-15T14:26:53.109Z" ),
256
- modified_at = parse_datetime(" 2023-12-28T10:30:56.042Z" ),
257
- id = " <value>" ,
258
- is_archived = False ,
259
- product_id = " <value>" ,
260
- type = polar_sdk.ProductPriceType.ONE_TIME ,
261
- recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
262
- price_currency = " <value>" ,
263
- minimum_amount = 700309 ,
264
- maximum_amount = 631188 ,
265
- preset_amount = 968968 ,
266
- ),
267
254
polar_sdk.ProductPriceFixed(
268
- created_at = parse_datetime(" 2023 -05-07T21:58:39.365Z " ),
269
- modified_at = parse_datetime(" 2024-04-23T21:54:44.503Z " ),
255
+ created_at = parse_datetime(" 2024 -05-02T18:25:33.974Z " ),
256
+ modified_at = parse_datetime(" 2025-02-06T12:55:07.640Z " ),
270
257
id = " <value>" ,
271
258
is_archived = False ,
272
259
product_id = " <value>" ,
273
- type = polar_sdk.ProductPriceType.ONE_TIME ,
274
- recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
260
+ type = polar_sdk.ProductPriceType.RECURRING ,
261
+ recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
275
262
price_currency = " <value>" ,
276
- price_amount = 275553 ,
263
+ price_amount = 115799 ,
277
264
),
278
265
polar_sdk.LegacyRecurringProductPriceCustom(
279
- created_at = parse_datetime(" 2023-08-08T15:45:51.732Z " ),
280
- modified_at = parse_datetime(" 2024 -01-18T11:16:03.208Z " ),
266
+ created_at = parse_datetime(" 2025-07-31T12:54:47.590Z " ),
267
+ modified_at = parse_datetime(" 2023 -01-11T22:31:47.320Z " ),
281
268
id = " <value>" ,
282
- is_archived = False ,
269
+ is_archived = True ,
283
270
product_id = " <value>" ,
284
271
recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
285
272
price_currency = " <value>" ,
286
- minimum_amount = 49018 ,
287
- maximum_amount = 322400 ,
273
+ minimum_amount = 203013 ,
274
+ maximum_amount = None ,
288
275
preset_amount = 119260 ,
289
276
),
277
+ polar_sdk.LegacyRecurringProductPriceFree(
278
+ created_at = parse_datetime(" 2024-04-06T18:48:21.449Z" ),
279
+ modified_at = None ,
280
+ id = " <value>" ,
281
+ is_archived = True ,
282
+ product_id = " <value>" ,
283
+ recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
284
+ ),
290
285
],
291
286
benefits = [
292
287
polar_sdk.BenefitPublic(
@@ -313,12 +308,12 @@ with Polar() as polar:
313
308
medias = [],
314
309
),
315
310
product_price = polar_sdk.LegacyRecurringProductPriceFree(
316
- created_at = parse_datetime(" 2024-04-06T18:48:21.449Z " ),
317
- modified_at = parse_datetime(" 2023-02-22T08:13:16.795Z " ),
311
+ created_at = parse_datetime(" 2025-12-30T03:22:33.818Z " ),
312
+ modified_at = parse_datetime(" 2025-07-13T15:35:24.219Z " ),
318
313
id = " <value>" ,
319
314
is_archived = False ,
320
315
product_id = " <value>" ,
321
- recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
316
+ recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
322
317
),
323
318
discount = polar_sdk.CheckoutDiscountPercentageRepeatDuration(
324
319
duration = polar_sdk.DiscountDuration.REPEATING ,
@@ -460,18 +455,22 @@ async def main():
460
455
is_archived = True ,
461
456
organization_id = " <value>" ,
462
457
prices = [
463
- polar_sdk.ProductPriceCustom (
464
- created_at = parse_datetime(" 2025-11-30T03:33:51.498Z " ),
465
- modified_at = parse_datetime(" 2025-12-30T03:22:33.818Z " ),
458
+ polar_sdk.ProductPriceMeteredUnit (
459
+ created_at = parse_datetime(" 2023-12-22T12:14:26.730Z " ),
460
+ modified_at = parse_datetime(" 2023-08-19T20:45:43.750Z " ),
466
461
id = " <value>" ,
467
- is_archived = False ,
462
+ is_archived = True ,
468
463
product_id = " <value>" ,
469
464
type = polar_sdk.ProductPriceType.RECURRING ,
470
465
recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
471
466
price_currency = " <value>" ,
472
- minimum_amount = 707018 ,
473
- maximum_amount = 818126 ,
474
- preset_amount = 919230 ,
467
+ unit_amount = " <value>" ,
468
+ cap_amount = 217361 ,
469
+ meter_id = " <value>" ,
470
+ meter = polar_sdk.ProductPriceMeter(
471
+ id = " <value>" ,
472
+ name = " <value>" ,
473
+ ),
475
474
),
476
475
],
477
476
benefits = [],
@@ -544,46 +543,44 @@ async def main():
544
543
is_archived = False ,
545
544
organization_id = " <value>" ,
546
545
prices = [
547
- polar_sdk.ProductPriceFixed(
548
- created_at = parse_datetime(" 2025-07-23T17:21:51.405Z" ),
549
- modified_at = parse_datetime(" 2023-08-19T20:45:43.750Z" ),
550
- id = " <value>" ,
551
- is_archived = False ,
552
- product_id = " <value>" ,
553
- type = polar_sdk.ProductPriceType.ONE_TIME ,
554
- recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
555
- price_currency = " <value>" ,
556
- price_amount = 343341 ,
557
- ),
558
546
polar_sdk.ProductPriceMeteredUnit(
559
- created_at = parse_datetime(" 2023 -08-27T05:27:45.548Z " ),
560
- modified_at = parse_datetime(" 2024-10-10T19:54:32.262Z " ),
547
+ created_at = parse_datetime(" 2024 -08-14T07:06:25.139Z " ),
548
+ modified_at = parse_datetime(" 2025-03-27T15:59:30.223Z " ),
561
549
id = " <value>" ,
562
- is_archived = False ,
550
+ is_archived = True ,
563
551
product_id = " <value>" ,
564
552
type = polar_sdk.ProductPriceType.RECURRING ,
565
553
recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
566
554
price_currency = " <value>" ,
567
555
unit_amount = " <value>" ,
568
- cap_amount = 307323 ,
556
+ cap_amount = 1655 ,
569
557
meter_id = " <value>" ,
570
558
meter = polar_sdk.ProductPriceMeter(
571
559
id = " <value>" ,
572
560
name = " <value>" ,
573
561
),
574
562
),
575
- polar_sdk.ProductPriceCustom(
576
- created_at = parse_datetime(" 2024-11-01T10:50:02.209Z" ),
577
- modified_at = parse_datetime(" 2025-01-10T17:02:02.724Z" ),
563
+ polar_sdk.LegacyRecurringProductPriceCustom(
564
+ created_at = parse_datetime(" 2024-08-02T17:12:30.950Z" ),
565
+ modified_at = None ,
566
+ id = " <value>" ,
567
+ is_archived = False ,
568
+ product_id = " <value>" ,
569
+ recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
570
+ price_currency = " <value>" ,
571
+ minimum_amount = 503938 ,
572
+ maximum_amount = 590205 ,
573
+ preset_amount = 329003 ,
574
+ ),
575
+ polar_sdk.LegacyRecurringProductPriceFixed(
576
+ created_at = parse_datetime(" 2024-07-20T01:39:43.676Z" ),
577
+ modified_at = parse_datetime(" 2025-09-16T11:22:24.287Z" ),
578
578
id = " <value>" ,
579
579
is_archived = False ,
580
580
product_id = " <value>" ,
581
- type = polar_sdk.ProductPriceType.RECURRING ,
582
581
recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
583
582
price_currency = " <value>" ,
584
- minimum_amount = 1655 ,
585
- maximum_amount = 296598 ,
586
- preset_amount = 138362 ,
583
+ price_amount = 862607 ,
587
584
),
588
585
],
589
586
benefits = [
@@ -611,17 +608,17 @@ async def main():
611
608
medias = [],
612
609
),
613
610
product_price = polar_sdk.ProductPriceCustom(
614
- created_at = parse_datetime(" 2025-12-06T17:46:23.813Z " ),
615
- modified_at = parse_datetime(" 2024-05-28T21:42:41.690Z " ),
611
+ created_at = parse_datetime(" 2023-08-10T00:19:46.209Z " ),
612
+ modified_at = parse_datetime(" 2024-03-20T15:17:56.967Z " ),
616
613
id = " <value>" ,
617
614
is_archived = False ,
618
615
product_id = " <value>" ,
619
616
type = polar_sdk.ProductPriceType.ONE_TIME ,
620
617
recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
621
618
price_currency = " <value>" ,
622
- minimum_amount = 323388 ,
623
- maximum_amount = 590205 ,
624
- preset_amount = 785567 ,
619
+ minimum_amount = 861966 ,
620
+ maximum_amount = 196630 ,
621
+ preset_amount = None ,
625
622
),
626
623
discount = polar_sdk.CheckoutDiscountPercentageRepeatDuration(
627
624
duration = polar_sdk.DiscountDuration.REPEATING ,
@@ -954,7 +951,7 @@ with Polar(
954
951
access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
955
952
) as polar:
956
953
957
- res = polar.organizations.list(,
954
+ res = polar.organizations.list(page = 1 , limit = 10 ,
958
955
RetryConfig(" backoff" , BackoffStrategy(1 , 50 , 1.1 , 100 ), False ))
959
956
960
957
while res is not None :
@@ -975,7 +972,7 @@ with Polar(
975
972
access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
976
973
) as polar:
977
974
978
- res = polar.organizations.list()
975
+ res = polar.organizations.list(page = 1 , limit = 10 )
979
976
980
977
while res is not None :
981
978
# Handle items
@@ -1018,7 +1015,7 @@ with Polar(
1018
1015
res = None
1019
1016
try :
1020
1017
1021
- res = polar.organizations.list()
1018
+ res = polar.organizations.list(page = 1 , limit = 10 )
1022
1019
1023
1020
while res is not None :
1024
1021
# Handle items
@@ -1057,7 +1054,7 @@ with Polar(
1057
1054
access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
1058
1055
) as polar:
1059
1056
1060
- res = polar.organizations.list()
1057
+ res = polar.organizations.list(page = 1 , limit = 10 )
1061
1058
1062
1059
while res is not None :
1063
1060
# Handle items
@@ -1078,7 +1075,7 @@ with Polar(
1078
1075
access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
1079
1076
) as polar:
1080
1077
1081
- res = polar.organizations.list()
1078
+ res = polar.organizations.list(page = 1 , limit = 10 )
1082
1079
1083
1080
while res is not None :
1084
1081
# Handle items
@@ -1189,7 +1186,7 @@ with Polar(
1189
1186
access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
1190
1187
) as polar:
1191
1188
1192
- res = polar.organizations.list()
1189
+ res = polar.organizations.list(page = 1 , limit = 10 )
1193
1190
1194
1191
while res is not None :
1195
1192
# Handle items
@@ -1210,7 +1207,7 @@ with Polar() as polar:
1210
1207
1211
1208
res = polar.customer_portal.benefit_grants.list(security = polar_sdk.CustomerPortalBenefitGrantsListSecurity(
1212
1209
customer_session = " <YOUR_BEARER_TOKEN_HERE>" ,
1213
- ), organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " )
1210
+ ), organization_id = None , page = 1 , limit = 10 )
1214
1211
1215
1212
while res is not None :
1216
1213
# Handle items
@@ -1278,7 +1275,7 @@ with Polar(
1278
1275
access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
1279
1276
) as polar:
1280
1277
1281
- res = polar.organizations.list()
1278
+ res = polar.organizations.list(page = 1 , limit = 10 )
1282
1279
1283
1280
while res is not None :
1284
1281
# Handle items
0 commit comments