Calculation.php
7 months ago
CalculationLineItem.php
7 months ago
Registration.php
7 months ago
Settings.php
7 months ago
Transaction.php
7 months ago
TransactionLineItem.php
7 months ago
TransactionLineItem.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | |
| 5 | namespace AmeliaVendor\Stripe\Tax; |
| 6 | |
| 7 | /** |
| 8 | * @property string $id Unique identifier for the object. |
| 9 | * @property string $object String representing the object's type. Objects of the same type share the same value. |
| 10 | * @property int $amount The line item amount in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. If <code>tax_behavior=inclusive</code>, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount. |
| 11 | * @property int $amount_tax The amount of tax calculated for this line item, in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. |
| 12 | * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode. |
| 13 | * @property null|\AmeliaVendor\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format. |
| 14 | * @property null|string $product The ID of an existing <a href="https://stripe.com/docs/api/products/object">Product</a>. |
| 15 | * @property int $quantity The number of units of the item being purchased. For reversals, this is the quantity reversed. |
| 16 | * @property string $reference A custom identifier for this line item in the transaction. |
| 17 | * @property null|(object{original_line_item: string}&\AmeliaVendor\Stripe\StripeObject) $reversal If <code>type=reversal</code>, contains information about what was reversed. |
| 18 | * @property string $tax_behavior Specifies whether the <code>amount</code> includes taxes. If <code>tax_behavior=inclusive</code>, then the amount includes taxes. |
| 19 | * @property string $tax_code The <a href="https://stripe.com/docs/tax/tax-categories">tax code</a> ID used for this resource. |
| 20 | * @property string $type If <code>reversal</code>, this line item reverses an earlier transaction. |
| 21 | */ |
| 22 | class TransactionLineItem extends \AmeliaVendor\Stripe\ApiResource |
| 23 | { |
| 24 | const OBJECT_NAME = 'tax.transaction_line_item'; |
| 25 | |
| 26 | const TAX_BEHAVIOR_EXCLUSIVE = 'exclusive'; |
| 27 | const TAX_BEHAVIOR_INCLUSIVE = 'inclusive'; |
| 28 | |
| 29 | const TYPE_REVERSAL = 'reversal'; |
| 30 | const TYPE_TRANSACTION = 'transaction'; |
| 31 | } |
| 32 |