|
7 | 7 | /** |
8 | 8 | * @property string $id Unique identifier for the object. |
9 | 9 | * @property string $object String representing the object's type. Objects of the same type share the same value. |
10 | | - * @property null|int $discount_amount The amount an item was discounted for. Positive integer. |
| 10 | + * @property null|int $discount_amount <p>The discount applied on this line item represented in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. An integer greater than 0.</p><p>This field is mutually exclusive with the <code>amount_details[discount_amount]</code> field.</p> |
11 | 11 | * @property null|(object{card?: (object{commodity_code: null|string}&StripeObject), card_present?: (object{commodity_code: null|string}&StripeObject), klarna?: (object{image_url: null|string, product_url: null|string, reference: null|string, subscription_reference: null|string}&StripeObject), paypal?: (object{category?: string, description?: string, sold_by?: string}&StripeObject)}&StripeObject) $payment_method_options Payment method-specific information for line items. |
12 | | - * @property null|string $product_code Unique identifier of the product. At most 12 characters long. |
13 | | - * @property string $product_name Name of the product. At most 100 characters long. |
14 | | - * @property int $quantity Number of items of the product. Positive integer. |
| 12 | + * @property null|string $product_code The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. |
| 13 | + * @property string $product_name <p>The product name of the line item. Required for L3 rates. At most 1024 characters long.</p><p>For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.</p> |
| 14 | + * @property int $quantity The quantity of items. Required for L3 rates. An integer greater than 0. |
15 | 15 | * @property null|(object{total_tax_amount: int}&StripeObject) $tax Contains information about the tax on the item. |
16 | | - * @property int $unit_cost Cost of the product. Non-negative integer. |
17 | | - * @property null|string $unit_of_measure A unit of measure for the line item, such as gallons, feet, meters, etc. |
| 16 | + * @property int $unit_cost The unit cost of the line item represented in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. Required for L3 rates. An integer greater than or equal to 0. |
| 17 | + * @property null|string $unit_of_measure A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long. |
18 | 18 | */ |
19 | 19 | class PaymentIntentAmountDetailsLineItem extends ApiResource |
20 | 20 | { |
|
0 commit comments