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
Copy file name to clipboardexpand all lines: codeSamples.yaml
+34-4
Original file line number
Diff line number
Diff line change
@@ -99,18 +99,48 @@ actions:
99
99
- "lang": "python"
100
100
"label": "grants"
101
101
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.benefits.grants(id=\"<value>\")\n\nif res is not None:\n while True:\n # handle items\n\n res = res.next()\n if res is None:\n break"
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.custom.list()\n\nif res is not None:\n while True:\n # handle items\n\n res = res.next()\n if res is None:\n break"
|`description`|*str*|:heavy_check_mark:| The description of the benefit. Will be displayed on products having this benefit. |
11
11
|`is_tax_applicable`|*bool*|:heavy_check_mark:| Whether the benefit is taxable. |
12
-
|`properties`|[models.BenefitCustomProperties](../models/benefitcustomproperties.md)|:heavy_check_mark:| Properties for a benefit of type `custom`.|
12
+
|`properties`|[models.BenefitCustomCreateProperties](../models/benefitcustomcreateproperties.md)|:heavy_check_mark:| Properties for creating a benefit of type `custom`. |
|`organization_id`|*OptionalNullable[str]*|:heavy_minus_sign:| The ID of the organization owning the benefit. **Required unless you use an organization token.**|
|`product_price_id`|*OptionalNullable[str]*|:heavy_minus_sign:| ID of the product price to checkout. Must correspond to a price linked to the same product. |
|`confirmation_token_id`|*OptionalNullable[str]*|:heavy_minus_sign:| ID of the Stripe confirmation token. Required for fixed prices and custom prices. |
0 commit comments