TaxRate.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe;
  4. /**
  5. * Tax rates can be applied to <a
  6. * href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
  7. * href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and
  8. * <a
  9. * href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
  10. * Sessions</a> to collect tax.
  11. *
  12. * Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax
  13. * Rates</a>.
  14. *
  15. * @property string $id Unique identifier for the object.
  16. * @property string $object String representing the object's type. Objects of the same type share the same value.
  17. * @property bool $active Defaults to <code>true</code>. When set to <code>false</code>, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
  18. * @property null|string $country Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
  19. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
  20. * @property null|string $description An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
  21. * @property string $display_name The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
  22. * @property bool $inclusive This specifies if the tax rate is inclusive or exclusive.
  23. * @property null|string $jurisdiction The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
  24. * @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.
  25. * @property null|\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.
  26. * @property float $percentage This represents the tax rate percent out of 100.
  27. * @property null|string $state <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US">ISO 3166-2 subdivision code</a>, without country prefix. For example, &quot;NY&quot; for New York, United States.
  28. * @property null|string $tax_type The high-level tax type, such as <code>vat</code> or <code>sales_tax</code>.
  29. */
  30. class TaxRate extends ApiResource
  31. {
  32. const OBJECT_NAME = 'tax_rate';
  33. use ApiOperations\All;
  34. use ApiOperations\Create;
  35. use ApiOperations\Retrieve;
  36. use ApiOperations\Update;
  37. const TAX_TYPE_GST = 'gst';
  38. const TAX_TYPE_HST = 'hst';
  39. const TAX_TYPE_JCT = 'jct';
  40. const TAX_TYPE_PST = 'pst';
  41. const TAX_TYPE_QST = 'qst';
  42. const TAX_TYPE_RST = 'rst';
  43. const TAX_TYPE_SALES_TAX = 'sales_tax';
  44. const TAX_TYPE_VAT = 'vat';
  45. }