@@ -502,8 +502,7 @@ with Polar() as polar:
502502 recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
503503 price_currency = " <value>" ,
504504 unit_amount = 199664 ,
505- included_units = 440790 ,
506- cap_amount = 856200 ,
505+ cap_amount = 440790 ,
507506 meter_id = " <value>" ,
508507 meter = polar_sdk.ProductPriceMeter(
509508 id = " <value>" ,
@@ -522,17 +521,17 @@ with Polar() as polar:
522521 attached_custom_fields = [
523522 polar_sdk.AttachedCustomField(
524523 custom_field_id = " <value>" ,
525- custom_field = polar_sdk.CustomFieldCheckbox (
526- created_at = dateutil.parser.isoparse(" 2025-05-25T15:20:50.694Z " ),
527- modified_at = dateutil.parser.isoparse(" 2024-11-27T14:29:40.329Z " ),
524+ custom_field = polar_sdk.CustomFieldText (
525+ created_at = dateutil.parser.isoparse(" 2023-01-25T05:44:56.791Z " ),
526+ modified_at = dateutil.parser.isoparse(" 2025-05-25T15:20:50.694Z " ),
528527 id = " <value>" ,
529528 metadata = {
530- " key" : False ,
529+ " key" : 993705 ,
531530 },
532531 slug = " <value>" ,
533532 name = " <value>" ,
534533 organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
535- properties = polar_sdk.CustomFieldCheckboxProperties (),
534+ properties = polar_sdk.CustomFieldTextProperties (),
536535 ),
537536 order = 169862 ,
538537 required = True ,
@@ -763,26 +762,20 @@ async def main():
763762 recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
764763 price_currency = " <value>" ,
765764 unit_amount = 482040 ,
766- included_units = 134 ,
767- cap_amount = 383315 ,
765+ cap_amount = 134 ,
768766 meter_id = " <value>" ,
769767 meter = polar_sdk.ProductPriceMeter(
770768 id = " <value>" ,
771769 name = " <value>" ,
772770 ),
773771 ),
774- polar_sdk.ProductPriceCustom (
775- created_at = dateutil.parser.isoparse(" 2023-10-09T19:13:38.530Z " ),
776- modified_at = dateutil.parser.isoparse(" 2025-03-10T05:19:02.590Z " ),
772+ polar_sdk.LegacyRecurringProductPriceFree (
773+ created_at = dateutil.parser.isoparse(" 2023-10-21T11:52:11.842Z " ),
774+ modified_at = dateutil.parser.isoparse(" 2023-10-09T19:13:38.530Z " ),
777775 id = " <value>" ,
778776 is_archived = False ,
779777 product_id = " <value>" ,
780- type = polar_sdk.ProductPriceType.RECURRING ,
781778 recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
782- price_currency = " <value>" ,
783- minimum_amount = 647154 ,
784- maximum_amount = 948682 ,
785- preset_amount = 780456 ,
786779 ),
787780 ],
788781 benefits = [
@@ -865,34 +858,35 @@ async def main():
865858 is_archived = False ,
866859 organization_id = " <value>" ,
867860 prices = [
868- polar_sdk.LegacyRecurringProductPriceCustom (
869- created_at = dateutil.parser.isoparse(" 2023 -12-31T19:37:54.401Z " ),
870- modified_at = dateutil.parser.isoparse(" 2023 -11-12T05:54:16.026Z " ),
861+ polar_sdk.ProductPriceFree (
862+ created_at = dateutil.parser.isoparse(" 2024 -12-10T06:44:06.426Z " ),
863+ modified_at = dateutil.parser.isoparse(" 2025 -11-05T18:06:37.266Z " ),
871864 id = " <value>" ,
872865 is_archived = False ,
873866 product_id = " <value>" ,
874- recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
875- price_currency = " <value>" ,
876- minimum_amount = 513402 ,
877- maximum_amount = 569122 ,
878- preset_amount = 978486 ,
867+ type = polar_sdk.ProductPriceType.RECURRING ,
868+ recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
879869 ),
880- polar_sdk.ProductPriceFree (
881- created_at = dateutil.parser.isoparse(" 2025-01-09T13:42:03.592Z " ),
882- modified_at = dateutil.parser.isoparse(" 2023-06-01T05:58:41.763Z " ),
870+ polar_sdk.LegacyRecurringProductPriceCustom (
871+ created_at = dateutil.parser.isoparse(" 2023-11-12T05:54:16.026Z " ),
872+ modified_at = dateutil.parser.isoparse(" 2025-04-10T00:12:46.713Z " ),
883873 id = " <value>" ,
884874 is_archived = False ,
885875 product_id = " <value>" ,
886- type = polar_sdk.ProductPriceType.RECURRING ,
887876 recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
877+ price_currency = " <value>" ,
878+ minimum_amount = 569122 ,
879+ maximum_amount = 978486 ,
880+ preset_amount = 847995 ,
888881 ),
889- polar_sdk.LegacyRecurringProductPriceFree (
890- created_at = dateutil.parser.isoparse(" 2025-12-22T08:06:55.176Z " ),
891- modified_at = dateutil.parser.isoparse(" 2024-06-16T08:01:15.524Z " ),
882+ polar_sdk.ProductPriceFree (
883+ created_at = dateutil.parser.isoparse(" 2023-06-01T05:58:41.763Z " ),
884+ modified_at = dateutil.parser.isoparse(" 2025-08-22T02:17:20.661Z " ),
892885 id = " <value>" ,
893886 is_archived = False ,
894887 product_id = " <value>" ,
895- recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
888+ type = polar_sdk.ProductPriceType.RECURRING ,
889+ recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
896890 ),
897891 ],
898892 benefits = [
@@ -986,13 +980,22 @@ async def main():
986980 ),
987981 ],
988982 ),
989- product_price = polar_sdk.LegacyRecurringProductPriceFree (
990- created_at = dateutil.parser.isoparse(" 2023-07-01T09:35:23.526Z " ),
991- modified_at = dateutil.parser.isoparse(" 2023-09-05T11:14:58.018Z " ),
983+ product_price = polar_sdk.ProductPriceMeteredUnit (
984+ created_at = dateutil.parser.isoparse(" 2024-06-16T08:01:15.524Z " ),
985+ modified_at = dateutil.parser.isoparse(" 2025-06-29T02:23:28.661Z " ),
992986 id = " <value>" ,
993987 is_archived = False ,
994988 product_id = " <value>" ,
989+ type = polar_sdk.ProductPriceType.ONE_TIME ,
995990 recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
991+ price_currency = " <value>" ,
992+ unit_amount = 165510 ,
993+ cap_amount = 225792 ,
994+ meter_id = " <value>" ,
995+ meter = polar_sdk.ProductPriceMeter(
996+ id = " <value>" ,
997+ name = " <value>" ,
998+ ),
996999 ),
9971000 discount = polar_sdk.CheckoutDiscountPercentageOnceForeverDuration(
9981001 duration = polar_sdk.DiscountDuration.REPEATING ,
@@ -1007,11 +1010,11 @@ async def main():
10071010 polar_sdk.AttachedCustomField(
10081011 custom_field_id = " <value>" ,
10091012 custom_field = polar_sdk.CustomFieldText(
1010- created_at = dateutil.parser.isoparse(" 2024-12-03T12:38:50.277Z " ),
1011- modified_at = dateutil.parser.isoparse(" 2024-05-21T13:41:47.986Z " ),
1013+ created_at = dateutil.parser.isoparse(" 2025-08-21T23:33:05.774Z " ),
1014+ modified_at = dateutil.parser.isoparse(" 2024-12-03T12:38:50.277Z " ),
10121015 id = " <value>" ,
10131016 metadata = {
1014- " key" : 473941 ,
1017+ " key" : 545650 ,
10151018 },
10161019 slug = " <value>" ,
10171020 name = " <value>" ,
@@ -1023,41 +1026,34 @@ async def main():
10231026 ),
10241027 polar_sdk.AttachedCustomField(
10251028 custom_field_id = " <value>" ,
1026- custom_field = polar_sdk.CustomFieldText (
1027- created_at = dateutil.parser.isoparse(" 2023-01-30T18:58:55.355Z " ),
1028- modified_at = dateutil.parser.isoparse(" 2024-12-15T18:35:30.312Z " ),
1029+ custom_field = polar_sdk.CustomFieldNumber (
1030+ created_at = dateutil.parser.isoparse(" 2025-10-01T00:10:58.922Z " ),
1031+ modified_at = dateutil.parser.isoparse(" 2023-01-30T18:58:55.355Z " ),
10291032 id = " <value>" ,
10301033 metadata = {
1031- " key" : 143857 ,
1034+ " key" : 637515 ,
10321035 },
10331036 slug = " <value>" ,
10341037 name = " <value>" ,
10351038 organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1036- properties = polar_sdk.CustomFieldTextProperties (),
1039+ properties = polar_sdk.CustomFieldNumberProperties (),
10371040 ),
10381041 order = 918364 ,
10391042 required = True ,
10401043 ),
10411044 polar_sdk.AttachedCustomField(
10421045 custom_field_id = " <value>" ,
1043- custom_field = polar_sdk.CustomFieldSelect (
1044- created_at = dateutil.parser.isoparse(" 2024-10-18T15:45:53.088Z " ),
1045- modified_at = dateutil.parser.isoparse(" 2023-08-08T05:58:49.836Z " ),
1046+ custom_field = polar_sdk.CustomFieldCheckbox (
1047+ created_at = dateutil.parser.isoparse(" 2024-12-10T04:39:21.164Z " ),
1048+ modified_at = dateutil.parser.isoparse(" 2024-10-18T15:45:53.088Z " ),
10461049 id = " <value>" ,
10471050 metadata = {
1048- " key" : False ,
1051+ " key" : " <value> " ,
10491052 },
10501053 slug = " <value>" ,
10511054 name = " <value>" ,
10521055 organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1053- properties = polar_sdk.CustomFieldSelectProperties(
1054- options = [
1055- polar_sdk.CustomFieldSelectOption(
1056- value = " <value>" ,
1057- label = " <value>" ,
1058- ),
1059- ],
1060- ),
1056+ properties = polar_sdk.CustomFieldCheckboxProperties(),
10611057 ),
10621058 order = 187532 ,
10631059 required = True ,
0 commit comments