@@ -502,8 +502,7 @@ with Polar() as polar:
502
502
recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
503
503
price_currency = " <value>" ,
504
504
unit_amount = 199664 ,
505
- included_units = 440790 ,
506
- cap_amount = 856200 ,
505
+ cap_amount = 440790 ,
507
506
meter_id = " <value>" ,
508
507
meter = polar_sdk.ProductPriceMeter(
509
508
id = " <value>" ,
@@ -522,17 +521,17 @@ with Polar() as polar:
522
521
attached_custom_fields = [
523
522
polar_sdk.AttachedCustomField(
524
523
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 " ),
528
527
id = " <value>" ,
529
528
metadata = {
530
- " key" : False ,
529
+ " key" : 993705 ,
531
530
},
532
531
slug = " <value>" ,
533
532
name = " <value>" ,
534
533
organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
535
- properties = polar_sdk.CustomFieldCheckboxProperties (),
534
+ properties = polar_sdk.CustomFieldTextProperties (),
536
535
),
537
536
order = 169862 ,
538
537
required = True ,
@@ -763,26 +762,20 @@ async def main():
763
762
recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
764
763
price_currency = " <value>" ,
765
764
unit_amount = 482040 ,
766
- included_units = 134 ,
767
- cap_amount = 383315 ,
765
+ cap_amount = 134 ,
768
766
meter_id = " <value>" ,
769
767
meter = polar_sdk.ProductPriceMeter(
770
768
id = " <value>" ,
771
769
name = " <value>" ,
772
770
),
773
771
),
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 " ),
777
775
id = " <value>" ,
778
776
is_archived = False ,
779
777
product_id = " <value>" ,
780
- type = polar_sdk.ProductPriceType.RECURRING ,
781
778
recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
782
- price_currency = " <value>" ,
783
- minimum_amount = 647154 ,
784
- maximum_amount = 948682 ,
785
- preset_amount = 780456 ,
786
779
),
787
780
],
788
781
benefits = [
@@ -865,34 +858,35 @@ async def main():
865
858
is_archived = False ,
866
859
organization_id = " <value>" ,
867
860
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 " ),
871
864
id = " <value>" ,
872
865
is_archived = False ,
873
866
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 ,
879
869
),
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 " ),
883
873
id = " <value>" ,
884
874
is_archived = False ,
885
875
product_id = " <value>" ,
886
- type = polar_sdk.ProductPriceType.RECURRING ,
887
876
recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
877
+ price_currency = " <value>" ,
878
+ minimum_amount = 569122 ,
879
+ maximum_amount = 978486 ,
880
+ preset_amount = 847995 ,
888
881
),
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 " ),
892
885
id = " <value>" ,
893
886
is_archived = False ,
894
887
product_id = " <value>" ,
895
- recurring_interval = polar_sdk.SubscriptionRecurringInterval.YEAR ,
888
+ type = polar_sdk.ProductPriceType.RECURRING ,
889
+ recurring_interval = polar_sdk.SubscriptionRecurringInterval.MONTH ,
896
890
),
897
891
],
898
892
benefits = [
@@ -986,13 +980,22 @@ async def main():
986
980
),
987
981
],
988
982
),
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 " ),
992
986
id = " <value>" ,
993
987
is_archived = False ,
994
988
product_id = " <value>" ,
989
+ type = polar_sdk.ProductPriceType.ONE_TIME ,
995
990
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
+ ),
996
999
),
997
1000
discount = polar_sdk.CheckoutDiscountPercentageOnceForeverDuration(
998
1001
duration = polar_sdk.DiscountDuration.REPEATING ,
@@ -1007,11 +1010,11 @@ async def main():
1007
1010
polar_sdk.AttachedCustomField(
1008
1011
custom_field_id = " <value>" ,
1009
1012
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 " ),
1012
1015
id = " <value>" ,
1013
1016
metadata = {
1014
- " key" : 473941 ,
1017
+ " key" : 545650 ,
1015
1018
},
1016
1019
slug = " <value>" ,
1017
1020
name = " <value>" ,
@@ -1023,41 +1026,34 @@ async def main():
1023
1026
),
1024
1027
polar_sdk.AttachedCustomField(
1025
1028
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 " ),
1029
1032
id = " <value>" ,
1030
1033
metadata = {
1031
- " key" : 143857 ,
1034
+ " key" : 637515 ,
1032
1035
},
1033
1036
slug = " <value>" ,
1034
1037
name = " <value>" ,
1035
1038
organization_id = " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1036
- properties = polar_sdk.CustomFieldTextProperties (),
1039
+ properties = polar_sdk.CustomFieldNumberProperties (),
1037
1040
),
1038
1041
order = 918364 ,
1039
1042
required = True ,
1040
1043
),
1041
1044
polar_sdk.AttachedCustomField(
1042
1045
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 " ),
1046
1049
id = " <value>" ,
1047
1050
metadata = {
1048
- " key" : False ,
1051
+ " key" : " <value> " ,
1049
1052
},
1050
1053
slug = " <value>" ,
1051
1054
name = " <value>" ,
1052
1055
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(),
1061
1057
),
1062
1058
order = 187532 ,
1063
1059
required = True ,
0 commit comments