Session.php 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe\BillingPortal;
  4. /**
  5. * A session describes the instantiation of the customer portal for a particular
  6. * customer. By visiting the session's URL, the customer can manage their
  7. * subscriptions and billing details. For security reasons, sessions are
  8. * short-lived and will expire if the customer does not visit the URL. Create
  9. * sessions on-demand when customers intend to manage their subscriptions and
  10. * billing details.
  11. *
  12. * Integration guide: <a
  13. * href="https://stripe.com/docs/billing/subscriptions/integrating-customer-portal">Billing
  14. * customer portal</a>.
  15. *
  16. * @property string $id Unique identifier for the object.
  17. * @property string $object String representing the object's type. Objects of the same type share the same value.
  18. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
  19. * @property string $customer The ID of the customer for this session.
  20. * @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.
  21. * @property string $return_url The URL to which Stripe should send customers when they click on the link to return to your website.
  22. * @property string $url The short-lived URL of the session giving customers access to the customer portal.
  23. */
  24. class Session extends \Stripe\ApiResource
  25. {
  26. const OBJECT_NAME = 'billing_portal.session';
  27. use \Stripe\ApiOperations\Create;
  28. }