| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from typing import Dict, List |
| 4 |
from typing_extensions import Literal, NotRequired, TypedDict |
| 5 |
|
| 6 |
|
| 7 |
class ProductUpdateParams(TypedDict): |
| 8 |
active: NotRequired[bool] |
| 9 |
""" |
| 10 |
Whether the product is available for purchase. |
| 11 |
""" |
| 12 |
default_price: NotRequired[str] |
| 13 |
""" |
| 14 |
The ID of the [Price](https://docs.stripe.com/api/prices) object that is the default price for this product. |
| 15 |
""" |
| 16 |
description: NotRequired["Literal['']|str"] |
| 17 |
""" |
| 18 |
The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. |
| 19 |
""" |
| 20 |
expand: NotRequired[List[str]] |
| 21 |
""" |
| 22 |
Specifies which fields in the response should be expanded. |
| 23 |
""" |
| 24 |
images: NotRequired["Literal['']|List[str]"] |
| 25 |
""" |
| 26 |
A list of up to 8 URLs of images for this product, meant to be displayable to the customer. |
| 27 |
""" |
| 28 |
marketing_features: NotRequired[ |
| 29 |
"Literal['']|List[ProductUpdateParamsMarketingFeature]" |
| 30 |
] |
| 31 |
""" |
| 32 |
A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://docs.stripe.com/payments/checkout/pricing-table). |
| 33 |
""" |
| 34 |
metadata: NotRequired["Literal['']|Dict[str, str]"] |
| 35 |
""" |
| 36 |
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. |
| 37 |
""" |
| 38 |
name: NotRequired[str] |
| 39 |
""" |
| 40 |
The product's name, meant to be displayable to the customer. |
| 41 |
""" |
| 42 |
package_dimensions: NotRequired[ |
| 43 |
"Literal['']|ProductUpdateParamsPackageDimensions" |
| 44 |
] |
| 45 |
""" |
| 46 |
The dimensions of this product for shipping purposes. |
| 47 |
""" |
| 48 |
shippable: NotRequired[bool] |
| 49 |
""" |
| 50 |
Whether this product is shipped (i.e., physical goods). |
| 51 |
""" |
| 52 |
statement_descriptor: NotRequired[str] |
| 53 |
""" |
| 54 |
An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. |
| 55 |
|
| 56 |
This may be up to 22 characters. The statement description may not include `<`, `>`, `\\`, `"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. |
| 57 |
It must contain at least one letter. May only be set if `type=service`. Only used for subscription payments. |
| 58 |
""" |
| 59 |
tax_code: NotRequired["Literal['']|str"] |
| 60 |
""" |
| 61 |
A [tax code](https://docs.stripe.com/tax/tax-categories) ID. |
| 62 |
""" |
| 63 |
unit_label: NotRequired["Literal['']|str"] |
| 64 |
""" |
| 65 |
A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. May only be set if `type=service`. |
| 66 |
""" |
| 67 |
url: NotRequired["Literal['']|str"] |
| 68 |
""" |
| 69 |
A URL of a publicly-accessible webpage for this product. |
| 70 |
""" |
| 71 |
|
| 72 |
|
| 73 |
class ProductUpdateParamsMarketingFeature(TypedDict): |
| 74 |
name: str |
| 75 |
""" |
| 76 |
The marketing feature name. Up to 80 characters long. |
| 77 |
""" |
| 78 |
|
| 79 |
|
| 80 |
class ProductUpdateParamsPackageDimensions(TypedDict): |
| 81 |
height: float |
| 82 |
""" |
| 83 |
Height, in inches. Maximum precision is 2 decimal places. |
| 84 |
""" |
| 85 |
length: float |
| 86 |
""" |
| 87 |
Length, in inches. Maximum precision is 2 decimal places. |
| 88 |
""" |
| 89 |
weight: float |
| 90 |
""" |
| 91 |
Weight, in ounces. Maximum precision is 2 decimal places. |
| 92 |
""" |
| 93 |
width: float |
| 94 |
""" |
| 95 |
Width, in inches. Maximum precision is 2 decimal places. |
| 96 |
""" |