CalculationLineItem.php 1.7 KB

1234567891011121314151617181920212223242526
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe\Tax;
  4. /**
  5. * @property string $id Unique identifier for the object.
  6. * @property string $object String representing the object's type. Objects of the same type share the same value.
  7. * @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.
  8. * @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>.
  9. * @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.
  10. * @property null|string $product The ID of an existing <a href="https://stripe.com/docs/api/products/object">Product</a>.
  11. * @property int $quantity The number of units of the item being purchased. For reversals, this is the quantity reversed.
  12. * @property null|string $reference A custom identifier for this line item.
  13. * @property string $tax_behavior Specifies whether the <code>amount</code> includes taxes. If <code>tax_behavior=inclusive</code>, then the amount includes taxes.
  14. * @property null|\Stripe\StripeObject[] $tax_breakdown Detailed account of taxes relevant to this line item.
  15. * @property string $tax_code The <a href="https://stripe.com/docs/tax/tax-categories">tax code</a> ID used for this resource.
  16. */
  17. class CalculationLineItem extends \Stripe\ApiResource
  18. {
  19. const OBJECT_NAME = 'tax.calculation_line_item';
  20. const TAX_BEHAVIOR_EXCLUSIVE = 'exclusive';
  21. const TAX_BEHAVIOR_INCLUSIVE = 'inclusive';
  22. }