@@ -143,7 +143,7 @@ with Polar() as polar:
143143 customer_email = " <value>" ,
144144 customer_ip_address = " <value>" ,
145145 customer_billing_address = {
146- " country" : " Solomon Islands " ,
146+ " country" : " FR " ,
147147 },
148148 customer_tax_id = " <id>" ,
149149 payment_processor_metadata = {
@@ -534,7 +534,7 @@ with Polar() as polar:
534534 },
535535 " slug" : " <value>" ,
536536 " name" : " <value>" ,
537- " organization_id" : " <value> " ,
537+ " organization_id" : " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " ,
538538 " properties" : {
539539 " options" : [
540540 {
@@ -559,7 +559,7 @@ with Polar() as polar:
559559 },
560560 " slug" : " <value>" ,
561561 " name" : " <value>" ,
562- " organization_id" : " <value> " ,
562+ " organization_id" : " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " ,
563563 " properties" : {},
564564 " type" : " checkbox" ,
565565 },
@@ -577,7 +577,7 @@ with Polar() as polar:
577577 },
578578 " slug" : " <value>" ,
579579 " name" : " <value>" ,
580- " organization_id" : " <value> " ,
580+ " organization_id" : " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " ,
581581 " properties" : {
582582 " options" : [
583583 {
@@ -649,7 +649,7 @@ async def main():
649649 customer_email = " <value>" ,
650650 customer_ip_address = " <value>" ,
651651 customer_billing_address = {
652- " country" : " Solomon Islands " ,
652+ " country" : " FR " ,
653653 },
654654 customer_tax_id = " <id>" ,
655655 payment_processor_metadata = {
@@ -1041,7 +1041,7 @@ async def main():
10411041 },
10421042 " slug" : " <value>" ,
10431043 " name" : " <value>" ,
1044- " organization_id" : " <value> " ,
1044+ " organization_id" : " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " ,
10451045 " properties" : {
10461046 " options" : [
10471047 {
@@ -1066,7 +1066,7 @@ async def main():
10661066 },
10671067 " slug" : " <value>" ,
10681068 " name" : " <value>" ,
1069- " organization_id" : " <value> " ,
1069+ " organization_id" : " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " ,
10701070 " properties" : {},
10711071 " type" : " text" ,
10721072 },
@@ -1084,7 +1084,7 @@ async def main():
10841084 },
10851085 " slug" : " <value>" ,
10861086 " name" : " <value>" ,
1087- " organization_id" : " <value> " ,
1087+ " organization_id" : " 1dbfc517-0bbf-4301-9ba8-555ca42b9737 " ,
10881088 " properties" : {},
10891089 " type" : " text" ,
10901090 },
@@ -1235,6 +1235,8 @@ def webhook():
12351235* [ get_external] ( docs/sdks/customers/README.md#get_external ) - Get Customer by External ID
12361236* [ update_external] ( docs/sdks/customers/README.md#update_external ) - Update Customer by External ID
12371237* [ 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
12381240
12391241### [ discounts] ( docs/sdks/discounts/README.md )
12401242
@@ -1358,7 +1360,9 @@ with Polar(
13581360 access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
13591361) as polar:
13601362
1361- res = polar.external_organizations.list(,
1363+ res = polar.external_organizations.list(organization_id = [
1364+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1365+ ],
13621366 RetryConfig(" backoff" , BackoffStrategy(1 , 50 , 1.1 , 100 ), False ))
13631367
13641368 while res is not None :
@@ -1379,7 +1383,9 @@ with Polar(
13791383 access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
13801384) as polar:
13811385
1382- res = polar.external_organizations.list()
1386+ res = polar.external_organizations.list(organization_id = [
1387+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1388+ ])
13831389
13841390 while res is not None :
13851391 # Handle items
@@ -1422,7 +1428,9 @@ with Polar(
14221428 res = None
14231429 try :
14241430
1425- res = polar.external_organizations.list()
1431+ res = polar.external_organizations.list(organization_id = [
1432+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1433+ ])
14261434
14271435 while res is not None :
14281436 # Handle items
@@ -1461,7 +1469,9 @@ with Polar(
14611469 access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
14621470) as polar:
14631471
1464- res = polar.external_organizations.list()
1472+ res = polar.external_organizations.list(organization_id = [
1473+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1474+ ])
14651475
14661476 while res is not None :
14671477 # Handle items
@@ -1482,7 +1492,9 @@ with Polar(
14821492 access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
14831493) as polar:
14841494
1485- res = polar.external_organizations.list()
1495+ res = polar.external_organizations.list(organization_id = [
1496+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1497+ ])
14861498
14871499 while res is not None :
14881500 # Handle items
@@ -1593,7 +1605,9 @@ with Polar(
15931605 access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
15941606) as polar:
15951607
1596- res = polar.external_organizations.list()
1608+ res = polar.external_organizations.list(organization_id = [
1609+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1610+ ])
15971611
15981612 while res is not None :
15991613 # Handle items
@@ -1614,7 +1628,9 @@ with Polar() as polar:
16141628
16151629 res = polar.customer_portal.benefit_grants.list(security = polar_sdk.CustomerPortalBenefitGrantsListSecurity(
16161630 customer_session = " <YOUR_BEARER_TOKEN_HERE>" ,
1617- ))
1631+ ), organization_id = [
1632+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1633+ ])
16181634
16191635 while res is not None :
16201636 # Handle items
@@ -1682,7 +1698,9 @@ with Polar(
16821698 access_token = " <YOUR_BEARER_TOKEN_HERE>" ,
16831699) as polar:
16841700
1685- res = polar.external_organizations.list()
1701+ res = polar.external_organizations.list(organization_id = [
1702+ " 1dbfc517-0bbf-4301-9ba8-555ca42b9737" ,
1703+ ])
16861704
16871705 while res is not None :
16881706 # Handle items
0 commit comments