You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
res = polar.organizations.list_organizations(page=1, limit=10)
546
546
547
547
while res isnotNone:
548
548
# Handle items
@@ -578,7 +578,7 @@ with Polar(
578
578
res =None
579
579
try:
580
580
581
-
res = polar.organizations.list(page=1, limit=10)
581
+
res = polar.organizations.list_organizations(page=1, limit=10)
582
582
583
583
while res isnotNone:
584
584
# Handle items
@@ -604,7 +604,7 @@ with Polar(
604
604
*[`PolarError`](./src/polar_sdk/models/polarerror.py): The base class for HTTP error responses.
605
605
*[`HTTPValidationError`](./src/polar_sdk/models/httpvalidationerror.py): Validation Error. Status code `422`. *
606
606
607
-
<details><summary>Less common errors (25)</summary>
607
+
<details><summary>Less common errors (26)</summary>
608
608
609
609
<br />
610
610
@@ -629,6 +629,7 @@ with Polar(
629
629
*[`MissingInvoiceBillingDetails`](./src/polar_sdk/models/missinginvoicebillingdetails.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 183 methods.*
630
630
*[`NotPaidOrder`](./src/polar_sdk/models/notpaidorder.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 183 methods.*
631
631
*[`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 183 methods.*
632
+
*[`PaymentMethodSetupFailed`](./src/polar_sdk/models/paymentmethodsetupfailed.py): The card was declined while setting up the payment method. Status code `400`. Applicable to 1 of 183 methods.*
632
633
*[`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 183 methods.*
633
634
*[`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 183 methods.*
634
635
*[`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 183 methods.*
@@ -665,7 +666,7 @@ with Polar(
665
666
access_token="<YOUR_BEARER_TOKEN_HERE>",
666
667
) as polar:
667
668
668
-
res = polar.organizations.list(page=1, limit=10)
669
+
res = polar.organizations.list_organizations(page=1, limit=10)
669
670
670
671
while res isnotNone:
671
672
# Handle items
@@ -686,7 +687,7 @@ with Polar(
686
687
access_token="<YOUR_BEARER_TOKEN_HERE>",
687
688
) as polar:
688
689
689
-
res = polar.organizations.list(page=1, limit=10)
690
+
res = polar.organizations.list_organizations(page=1, limit=10)
690
691
691
692
while res isnotNone:
692
693
# Handle items
@@ -797,7 +798,7 @@ with Polar(
797
798
access_token="<YOUR_BEARER_TOKEN_HERE>",
798
799
) as polar:
799
800
800
-
res = polar.organizations.list(page=1, limit=10)
801
+
res = polar.organizations.list_organizations(page=1, limit=10)
801
802
802
803
while res isnotNone:
803
804
# Handle items
@@ -886,7 +887,7 @@ with Polar(
886
887
access_token="<YOUR_BEARER_TOKEN_HERE>",
887
888
) as polar:
888
889
889
-
res = polar.organizations.list(page=1, limit=10)
890
+
res = polar.organizations.list_organizations(page=1, limit=10)
Copy file name to clipboardExpand all lines: codeSamples.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -944,7 +944,7 @@ actions:
944
944
"x-codeSamples":
945
945
- "lang": "python"
946
946
"label": "Python (SDK)"
947
-
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.organizations.list(page=1, limit=10)\n\n while res is not None:\n # Handle items\n\n res = res.next()"
947
+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.organizations.list_organizations(page=1, limit=10)\n\n while res is not None:\n # Handle items\n\n res = res.next()"
0 commit comments