diff --git a/lib/Card.php b/lib/Card.php index be8da10e3..12953915b 100644 --- a/lib/Card.php +++ b/lib/Card.php @@ -37,7 +37,7 @@ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|string $name Cardholder name. * @property null|string|\Stripe\Recipient $recipient The recipient that this card belongs to. This attribute will not be in the card object if the card belongs to a customer or account instead. - * @property null|string $tokenization_method If the card number is tokenized, this is the method that was used. Can be amex_express_checkout, android_pay (includes Google Pay), apple_pay, masterpass, visa_checkout, or null. + * @property null|string $tokenization_method If the card number is tokenized, this is the method that was used. Can be android_pay (includes Google Pay), apple_pay, masterpass, visa_checkout, or null. */ class Card extends ApiResource { diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php index cec9f283b..3c3916376 100644 --- a/lib/Checkout/Session.php +++ b/lib/Checkout/Session.php @@ -22,7 +22,7 @@ * * @property string $id Unique identifier for the object. Used to pass to redirectToCheckout in Stripe.js. * @property string $object String representing the object's type. Objects of the same type share the same value. - * @property null|string $billing_address_collection The value (auto or required) for whether Checkout collected the customer's billing address. + * @property null|string $billing_address_collection Describes whether Checkout should collect the customer's billing address. * @property string $cancel_url The URL the customer will be directed to if they decide to cancel payment and return to your website. * @property null|string $client_reference_id A unique string to reference the Checkout Session. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the session with your internal systems. * @property null|string|\Stripe\Customer $customer The ID of the customer for this session. For Checkout Sessions in payment or subscription mode, Checkout will create a new customer object based on information provided during the session unless an existing customer was provided when the session was created. @@ -51,6 +51,9 @@ class Session extends \Stripe\ApiResource use \Stripe\ApiOperations\NestedResource; use \Stripe\ApiOperations\Retrieve; + const BILLING_ADDRESS_COLLECTION_AUTO = 'auto'; + const BILLING_ADDRESS_COLLECTION_REQUIRED = 'required'; + const SUBMIT_TYPE_AUTO = 'auto'; const SUBMIT_TYPE_BOOK = 'book'; const SUBMIT_TYPE_DONATE = 'donate'; diff --git a/lib/Customer.php b/lib/Customer.php index ffcd576db..66d13291a 100644 --- a/lib/Customer.php +++ b/lib/Customer.php @@ -33,7 +33,7 @@ * @property null|string[] $preferred_locales The customer's preferred locales (languages), ordered by preference. * @property null|\Stripe\StripeObject $shipping Mailing and shipping address for the customer. Appears on invoices emailed to this customer. * @property \Stripe\Collection $sources The customer's payment sources, if any. - * @property \Stripe\Collection $subscriptions The customer's current subscriptions, if any. + * @property null|\Stripe\Collection $subscriptions The customer's current subscriptions, if any. * @property null|string $tax_exempt Describes the customer's tax exemption status. One of none, exempt, or reverse. When set to reverse, invoice and receipt PDFs include the text "Reverse charge". * @property \Stripe\Collection $tax_ids The customer's tax IDs. */ diff --git a/lib/Event.php b/lib/Event.php index 25654b305..47c4a5876 100644 --- a/lib/Event.php +++ b/lib/Event.php @@ -24,7 +24,7 @@ * We also have a separate webhooks system for sending the * Event objects directly to an endpoint on your server. Webhooks are - * managed in your account + * managed in your account * settings, and our Using * Webhooks guide will help you get set up. * diff --git a/lib/Recipient.php b/lib/Recipient.php index 623900138..541826346 100644 --- a/lib/Recipient.php +++ b/lib/Recipient.php @@ -12,10 +12,7 @@ * href="https://stripe.com/docs/connect">Connect, specifically Connect's much * more powerful Account objects. * Stripe accounts that don't already use recipients can no longer begin doing so. - * Please use Account objects instead. If you are already using - * recipients, please see our migration - * guide for more information. + * Please use Account objects instead. * * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. diff --git a/lib/SubscriptionSchedule.php b/lib/SubscriptionSchedule.php index 50881ff5e..1ae1c7224 100644 --- a/lib/SubscriptionSchedule.php +++ b/lib/SubscriptionSchedule.php @@ -18,7 +18,7 @@ * @property null|\Stripe\StripeObject $current_phase Object representing the start and end dates for the current phase of the subscription schedule, if it is active. * @property string|\Stripe\Customer $customer ID of the customer who owns the subscription schedule. * @property \Stripe\StripeObject $default_settings - * @property string $end_behavior Behavior of the subscription schedule and underlying subscription when it ends. + * @property string $end_behavior Behavior of the subscription schedule and underlying subscription when it ends. Possible values are release and cancel. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property \Stripe\StripeObject[] $phases Configuration for the subscription schedule's phases. diff --git a/lib/TaxRate.php b/lib/TaxRate.php index 91b4d516a..97d1db078 100644 --- a/lib/TaxRate.php +++ b/lib/TaxRate.php @@ -3,14 +3,19 @@ namespace Stripe; /** - * Tax rates can be applied to invoices and subscriptions to collect tax. + * Tax rates can be applied to invoices, subscriptions and + * Checkout + * Sessions to collect tax. * * Related guide: Tax * Rates. * * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. - * @property bool $active Defaults to true. When set to false, this tax rate cannot be applied to objects in the API, but will still be applied to subscriptions and invoices that already have it set. + * @property bool $active Defaults to true. When set to false, this tax rate is considered archived and cannot be applied to new applications or Checkout Sessions, but will still be applied to subscriptions and invoices that already have it set. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @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. * @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.