@@ -143,7 +143,7 @@ with Polar() as polar:
143
143
customer_email = " <value>" ,
144
144
customer_ip_address = " <value>" ,
145
145
customer_billing_address = {
146
- " country" : " Solomon Islands " ,
146
+ " country" : " FR " ,
147
147
},
148
148
customer_tax_id = " <id>" ,
149
149
payment_processor_metadata = {
@@ -534,7 +534,7 @@ with Polar() as polar:
534
534
},
535
535
" slug" : " <value>" ,
536
536
" name" : " <value>" ,
537
- " organization_id" : " <value> " ,
537
+ " organization_id" : " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " ,
538
538
" properties" : {
539
539
" options" : [
540
540
{
@@ -559,7 +559,7 @@ with Polar() as polar:
559
559
},
560
560
" slug" : " <value>" ,
561
561
" name" : " <value>" ,
562
- " organization_id" : " <value> " ,
562
+ " organization_id" : " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " ,
563
563
" properties" : {},
564
564
" type" : " checkbox" ,
565
565
},
@@ -577,7 +577,7 @@ with Polar() as polar:
577
577
},
578
578
" slug" : " <value>" ,
579
579
" name" : " <value>" ,
580
- " organization_id" : " <value> " ,
580
+ " organization_id" : " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " ,
581
581
" properties" : {
582
582
" options" : [
583
583
{
@@ -649,7 +649,7 @@ async def main():
649
649
customer_email = " <value>" ,
650
650
customer_ip_address = " <value>" ,
651
651
customer_billing_address = {
652
- " country" : " Solomon Islands " ,
652
+ " country" : " FR " ,
653
653
},
654
654
customer_tax_id = " <id>" ,
655
655
payment_processor_metadata = {
@@ -1041,7 +1041,7 @@ async def main():
1041
1041
},
1042
1042
" slug" : " <value>" ,
1043
1043
" name" : " <value>" ,
1044
- " organization_id" : " <value> " ,
1044
+ " organization_id" : " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " ,
1045
1045
" properties" : {
1046
1046
" options" : [
1047
1047
{
@@ -1066,7 +1066,7 @@ async def main():
1066
1066
},
1067
1067
" slug" : " <value>" ,
1068
1068
" name" : " <value>" ,
1069
- " organization_id" : " <value> " ,
1069
+ " organization_id" : " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " ,
1070
1070
" properties" : {},
1071
1071
" type" : " text" ,
1072
1072
},
@@ -1084,7 +1084,7 @@ async def main():
1084
1084
},
1085
1085
" slug" : " <value>" ,
1086
1086
" name" : " <value>" ,
1087
- " organization_id" : " <value> " ,
1087
+ " organization_id" : " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " ,
1088
1088
" properties" : {},
1089
1089
" type" : " text" ,
1090
1090
},
@@ -1235,6 +1235,8 @@ def webhook():
1235
1235
* [ get_external] ( docs/sdks/customers/README.md#get_external ) - Get Customer by External ID
1236
1236
* [ update_external] ( docs/sdks/customers/README.md#update_external ) - Update Customer by External ID
1237
1237
* [ delete_external] ( docs/sdks/customers/README.md#delete_external ) - Delete Customer by External ID
1238
+ * [ get_state] ( docs/sdks/customers/README.md#get_state ) - Get Customer State
1239
+ * [ get_state_external] ( docs/sdks/customers/README.md#get_state_external ) - Get Customer State by External ID
1238
1240
1239
1241
### [ discounts] ( docs/sdks/discounts/README.md )
1240
1242
@@ -1358,7 +1360,9 @@ with Polar(
1358
1360
access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
1359
1361
) as polar:
1360
1362
1361
- res = polar.external_organizations.list(,
1363
+ res = polar.external_organizations.list(organization_id = [
1364
+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1365
+ ],
1362
1366
RetryConfig(" backoff" , BackoffStrategy(1 , 50 , 1.1 , 100 ), False ))
1363
1367
1364
1368
while res is not None :
@@ -1379,7 +1383,9 @@ with Polar(
1379
1383
access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
1380
1384
) as polar:
1381
1385
1382
- res = polar.external_organizations.list()
1386
+ res = polar.external_organizations.list(organization_id = [
1387
+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1388
+ ])
1383
1389
1384
1390
while res is not None :
1385
1391
# Handle items
@@ -1422,7 +1428,9 @@ with Polar(
1422
1428
res = None
1423
1429
try :
1424
1430
1425
- res = polar.external_organizations.list()
1431
+ res = polar.external_organizations.list(organization_id = [
1432
+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1433
+ ])
1426
1434
1427
1435
while res is not None :
1428
1436
# Handle items
@@ -1461,7 +1469,9 @@ with Polar(
1461
1469
access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
1462
1470
) as polar:
1463
1471
1464
- res = polar.external_organizations.list()
1472
+ res = polar.external_organizations.list(organization_id = [
1473
+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1474
+ ])
1465
1475
1466
1476
while res is not None :
1467
1477
# Handle items
@@ -1482,7 +1492,9 @@ with Polar(
1482
1492
access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
1483
1493
) as polar:
1484
1494
1485
- res = polar.external_organizations.list()
1495
+ res = polar.external_organizations.list(organization_id = [
1496
+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1497
+ ])
1486
1498
1487
1499
while res is not None :
1488
1500
# Handle items
@@ -1593,7 +1605,9 @@ with Polar(
1593
1605
access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
1594
1606
) as polar:
1595
1607
1596
- res = polar.external_organizations.list()
1608
+ res = polar.external_organizations.list(organization_id = [
1609
+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1610
+ ])
1597
1611
1598
1612
while res is not None :
1599
1613
# Handle items
@@ -1614,7 +1628,9 @@ with Polar() as polar:
1614
1628
1615
1629
res = polar.customer_portal.benefit_grants.list(security = polar_sdk.CustomerPortalBenefitGrantsListSecurity(
1616
1630
customer_session = " <YOUR_BEARER_TOKEN_HERE>" ,
1617
- ))
1631
+ ), organization_id = [
1632
+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1633
+ ])
1618
1634
1619
1635
while res is not None :
1620
1636
# Handle items
@@ -1682,7 +1698,9 @@ with Polar(
1682
1698
access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
1683
1699
) as polar:
1684
1700
1685
- res = polar.external_organizations.list()
1701
+ res = polar.external_organizations.list(organization_id = [
1702
+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1703
+ ])
1686
1704
1687
1705
while res is not None :
1688
1706
# Handle items
0 commit comments