LineItem.php 1.3 KB

1234567891011121314151617181920212223242526
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe;
  4. /**
  5. * A line item.
  6. *
  7. * @property string $id Unique identifier for the object.
  8. * @property string $object String representing the object's type. Objects of the same type share the same value.
  9. * @property int $amount_discount Total discount amount applied. If no discounts were applied, defaults to 0.
  10. * @property int $amount_subtotal Total before any discounts or taxes are applied.
  11. * @property int $amount_tax Total tax amount applied. If no tax was applied, defaults to 0.
  12. * @property int $amount_total Total after discounts and taxes.
  13. * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
  14. * @property string $description An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.
  15. * @property null|\Stripe\StripeObject[] $discounts The discounts applied to the line item.
  16. * @property null|\Stripe\Price $price The price used to generate the line item.
  17. * @property null|int $quantity The quantity of products being purchased.
  18. * @property null|\Stripe\StripeObject[] $taxes The taxes applied to the line item.
  19. */
  20. class LineItem extends ApiResource
  21. {
  22. const OBJECT_NAME = 'item';
  23. }