From 6be5424133d65f65084ee6226bc715dfc3fa9c39 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Wed, 15 Jul 2020 13:57:46 -0700 Subject: [PATCH] Codegen for openapi df0ebe7 --- lib/Checkout/Session.php | 4 ++++ lib/PaymentIntent.php | 2 +- lib/Service/PaymentIntentService.php | 2 +- lib/Service/SetupIntentService.php | 4 ++-- lib/Service/SubscriptionItemService.php | 2 +- lib/Subscription.php | 2 +- lib/TaxRate.php | 2 +- lib/UsageRecord.php | 2 +- 8 files changed, 12 insertions(+), 8 deletions(-) diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php index 3c3916376..a284c14c3 100644 --- a/lib/Checkout/Session.php +++ b/lib/Checkout/Session.php @@ -22,9 +22,12 @@ * * @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|int $amount_subtotal Total of all items before discounts or taxes are applied. + * @property null|int $amount_total Total of all items after discounts and taxes are applied. * @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 $currency Three-letter ISO currency code, in lowercase. Must be a supported currency. * @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. * @property null|string $customer_email If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once a session is complete, use the customer attribute. * @property \Stripe\StripeObject[] $display_items The line items, plans, or SKUs purchased by the customer. Prefer using line_items. @@ -41,6 +44,7 @@ * @property null|string $submit_type Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button. submit_type can only be specified on Checkout Sessions in payment mode, but not Checkout Sessions in subscription or setup mode. * @property null|string|\Stripe\Subscription $subscription The ID of the subscription for Checkout Sessions in subscription mode. * @property string $success_url The URL the customer will be directed to after the payment or subscription creation is successful. + * @property null|\Stripe\StripeObject $total_details Tax and discount details for the computed total amount. */ class Session extends \Stripe\ApiResource { diff --git a/lib/PaymentIntent.php b/lib/PaymentIntent.php index b571a9e02..391353878 100644 --- a/lib/PaymentIntent.php +++ b/lib/PaymentIntent.php @@ -42,7 +42,7 @@ * @property null|string|\Stripe\PaymentMethod $payment_method ID of the payment method used in this PaymentIntent. * @property null|\Stripe\StripeObject $payment_method_options Payment-method-specific configuration for this PaymentIntent. * @property string[] $payment_method_types The list of payment method types (e.g. card) that this PaymentIntent is allowed to use. - * @property null|string $receipt_email Email address that the receipt for the resulting payment will be sent to. + * @property null|string $receipt_email Email address that the receipt for the resulting payment will be sent to. If receipt_email is specified for a payment in live mode, a receipt will be sent regardless of your email settings. * @property null|string|\Stripe\Review $review ID of the review associated with this PaymentIntent, if any. * @property null|string $setup_future_usage

Indicates that you intend to make future payments with this PaymentIntent's payment method.

Providing this parameter will attach the payment method to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be attached to a Customer after the transaction completes.

When processing card payments, Stripe also uses setup_future_usage to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.

* @property null|\Stripe\StripeObject $shipping Shipping information for this PaymentIntent. diff --git a/lib/Service/PaymentIntentService.php b/lib/Service/PaymentIntentService.php index 616631a4c..31e635def 100644 --- a/lib/Service/PaymentIntentService.php +++ b/lib/Service/PaymentIntentService.php @@ -22,7 +22,7 @@ public function all($params = null, $opts = null) /** * A PaymentIntent object can be canceled when it is in one of these statuses: * requires_payment_method, requires_capture, - * requires_confirmation, requires_action. + * requires_confirmation, or requires_action. * * Once canceled, no additional charges will be made by the PaymentIntent and any * operations on the PaymentIntent will fail with an error. For PaymentIntents with diff --git a/lib/Service/SetupIntentService.php b/lib/Service/SetupIntentService.php index d346db6f8..66fba0193 100644 --- a/lib/Service/SetupIntentService.php +++ b/lib/Service/SetupIntentService.php @@ -21,8 +21,8 @@ public function all($params = null, $opts = null) /** * A SetupIntent object can be canceled when it is in one of these statuses: - * requires_payment_method, requires_capture, - * requires_confirmation, requires_action. + * requires_payment_method, requires_confirmation, or + * requires_action. * * Once canceled, setup is abandoned and any operations on the SetupIntent will * fail with an error. diff --git a/lib/Service/SubscriptionItemService.php b/lib/Service/SubscriptionItemService.php index 06c30f3d7..ec6f93a6c 100644 --- a/lib/Service/SubscriptionItemService.php +++ b/lib/Service/SubscriptionItemService.php @@ -23,7 +23,7 @@ public function all($params = null, $opts = null) * For the specified subscription item, returns a list of summary objects. Each * object in the list provides usage information that’s been summarized from * multiple usage records and over a subscription billing period (e.g., 15 usage - * records in the billing plan’s month of September). + * records in the month of September). * * The list is sorted in reverse-chronological order (newest first). The first list * item represents the most current usage period that hasn’t ended yet. Since new diff --git a/lib/Subscription.php b/lib/Subscription.php index 71d294c9e..08ce470cc 100644 --- a/lib/Subscription.php +++ b/lib/Subscription.php @@ -28,7 +28,7 @@ * @property null|\Stripe\TaxRate[] $default_tax_rates The tax rates that will apply to any subscription item that does not have tax_rates set. Invoices created will have their default_tax_rates populated from the subscription. * @property null|\Stripe\Discount $discount Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis. * @property null|int $ended_at If the subscription has ended, the date the subscription ended. - * @property \Stripe\Collection $items List of subscription items, each with an attached plan. + * @property \Stripe\Collection $items List of subscription items, each with an attached price. * @property null|string|\Stripe\Invoice $latest_invoice The most recent invoice this subscription has generated. * @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 \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. diff --git a/lib/TaxRate.php b/lib/TaxRate.php index 97d1db078..f7a6dab05 100644 --- a/lib/TaxRate.php +++ b/lib/TaxRate.php @@ -15,7 +15,7 @@ * * @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 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 bool $active Defaults to true. When set to false, 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. * @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. diff --git a/lib/UsageRecord.php b/lib/UsageRecord.php index ef2a7f372..3a03e494d 100644 --- a/lib/UsageRecord.php +++ b/lib/UsageRecord.php @@ -4,7 +4,7 @@ /** * Usage records allow you to report customer usage and metrics to Stripe for - * metered billing of subscription plans. + * metered billing of subscription prices. * * Related guide: Metered