diff --git a/CHANGELOG.md b/CHANGELOG.md index 0003185e5..61bedc89f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,21 @@ ## 10.13.0-beta.1 - 2023-03-30 * [#1469](https://github.com/stripe/stripe-php/pull/1469) Update generated code - * Add support for new value `ioss` on enum `Tax.Registration.type` + * Add support for new value `ioss` on enum `Tax.Registration.type` + +## 10.12.1 - 2023-04-04 +* [#1473](https://github.com/stripe/stripe-php/pull/1473) Update generated code + * Add back `deleted` from `Invoice.status`. + +## 10.12.0 - 2023-03-30 +* [#1470](https://github.com/stripe/stripe-php/pull/1470) Update generated code + * Remove support for `create` method on resource `Tax.Transaction` + * This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `createFromCalculation` method. + * Remove support for value `deleted` from enum `Invoice.status` + * This is not a breaking change, as the value was never returned or accepted as input. +* [#1468](https://github.com/stripe/stripe-php/pull/1468) Trigger workflow for tags +* [#1467](https://github.com/stripe/stripe-php/pull/1467) Update generated code (new) + * Release specs are identical. ## 10.12.0-beta.1 - 2023-03-23 * [#1459](https://github.com/stripe/stripe-php/pull/1459) Update generated code for beta (new) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 91bb63fb5..0e2fd6c97 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v285 \ No newline at end of file +v294 \ No newline at end of file diff --git a/lib/AccountSession.php b/lib/AccountSession.php index cc388bacb..d70056475 100644 --- a/lib/AccountSession.php +++ b/lib/AccountSession.php @@ -6,19 +6,19 @@ /** * An AccountSession allows a Connect platform to grant access to a connected - * account in Connect embedded UIs. + * account in Connect embedded components. * * We recommend that you create an AccountSession each time you need to display an - * embedded UI to your user. Do not save AccountSessions to your database as they - * expire relatively quickly, and cannot be used more than once. + * embedded component to your user. Do not save AccountSessions to your database as + * they expire relatively quickly, and cannot be used more than once. * * Related guide: Connect - * embedded UIs. + * href="https://stripe.com/docs/connect/get-started-connect-embedded-components">Connect + * embedded components. * * @property string $object String representing the object's type. Objects of the same type share the same value. * @property string $account The ID of the account the AccountSession was created for - * @property string $client_secret
The client secret of this AccountSession. Used on the client to set up secure access to the given account
.
The client secret can be used to provide access to account
from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret.
Refer to our docs to setup Connect embedded UIs and learn about how client_secret
should be handled.
The client secret of this AccountSession. Used on the client to set up secure access to the given account
.
The client secret can be used to provide access to account
from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret.
Refer to our docs to setup Connect embedded components and learn about how client_secret
should be handled.
true
if the object exists in live mode or the value false
if the object exists in test mode.
*/
diff --git a/lib/Card.php b/lib/Card.php
index 939523b14..622cc4282 100644
--- a/lib/Card.php
+++ b/lib/Card.php
@@ -24,7 +24,7 @@
* @property null|string $address_zip ZIP or postal code.
* @property null|string $address_zip_check If address_zip
was provided, results of the check: pass
, fail
, unavailable
, or unchecked
.
* @property null|string[] $available_payout_methods A set of available payout methods for this card. Only values from this set should be passed as the method
when creating a payout.
- * @property string $brand Card brand. Can be American Express
, Diners Club
, Discover
, JCB
, MasterCard
, UnionPay
, Visa
, or Unknown
.
+ * @property string $brand Card brand. Can be American Express
, Diners Club
, Discover
, Eftpos Australia
, JCB
, MasterCard
, UnionPay
, Visa
, or Unknown
.
* @property null|string $country Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
* @property null|string $currency Three-letter ISO code for currency. Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency.
* @property null|string|\Stripe\Customer $customer The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.
diff --git a/lib/Invoice.php b/lib/Invoice.php
index 86fcb37e3..a2cfeb86d 100644
--- a/lib/Invoice.php
+++ b/lib/Invoice.php
@@ -150,6 +150,8 @@ class Invoice extends ApiResource
const COLLECTION_METHOD_CHARGE_AUTOMATICALLY = 'charge_automatically';
const COLLECTION_METHOD_SEND_INVOICE = 'send_invoice';
+ /** @deprecated */
+ const STATUS_DELETED = 'deleted';
const STATUS_DRAFT = 'draft';
const STATUS_OPEN = 'open';
const STATUS_PAID = 'paid';
diff --git a/lib/Issuing/Cardholder.php b/lib/Issuing/Cardholder.php
index 1e220d23c..98f38fe2c 100644
--- a/lib/Issuing/Cardholder.php
+++ b/lib/Issuing/Cardholder.php
@@ -26,7 +26,7 @@
* @property \Stripe\StripeObject $requirements
* @property null|\Stripe\StripeObject $spending_controls Rules that control spending across this cardholder's cards. Refer to our documentation for more details.
* @property string $status Specifies whether to permit authorizations on this cardholder's cards.
- * @property string $type One of individual
or company
.
+ * @property string $type One of individual
or company
. See Choose a cardholder type for more details.
*/
class Cardholder extends \Stripe\ApiResource
{
diff --git a/lib/Price.php b/lib/Price.php
index ed40a5cd9..76cd50356 100644
--- a/lib/Price.php
+++ b/lib/Price.php
@@ -38,7 +38,7 @@
* @property null|string $nickname A brief description of the price, hidden from customers.
* @property string|\Stripe\Product $product The ID of the product this price is associated with.
* @property null|\Stripe\StripeObject $recurring The recurring components of a price such as interval
and usage_type
.
- * @property null|string $tax_behavior Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of inclusive
, exclusive
, or unspecified
. Once specified as either inclusive
or exclusive
, it cannot be changed.
+ * @property null|string $tax_behavior Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of inclusive
, exclusive
, or unspecified
. Once specified as either inclusive
or exclusive
, it cannot be changed.
* @property null|\Stripe\StripeObject[] $tiers Each element represents a pricing tier. This parameter requires billing_scheme
to be set to tiered
. See also the documentation for billing_scheme
.
* @property null|string $tiers_mode Defines if the tiering price should be graduated
or volume
based. In volume
-based tiering, the maximum quantity within a period determines the per unit price. In graduated
tiering, pricing can change as the quantity grows.
* @property null|\Stripe\StripeObject $transform_quantity Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with tiers
.
diff --git a/lib/Refund.php b/lib/Refund.php
index 8692f03a4..0db94749b 100644
--- a/lib/Refund.php
+++ b/lib/Refund.php
@@ -21,7 +21,7 @@
* @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users. (Available on non-card refunds only)
* @property null|string|\Stripe\BalanceTransaction $failure_balance_transaction If the refund failed, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction.
* @property null|string $failure_reason If the refund failed, the reason for refund failure if known. Possible values are lost_or_stolen_card
, expired_or_canceled_card
, charge_for_pending_refund_disputed
, insufficient_funds
, declined
, merchant_request
or unknown
.
- * @property null|string $instructions_email Email to which refund instructions, if required, are sent to.
+ * @property null|string $instructions_email For payment methods without native refund support (e.g., Konbini, PromptPay), email for the customer to receive refund instructions.
* @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 null|\Stripe\StripeObject $next_action
* @property null|string|\Stripe\PaymentIntent $payment_intent ID of the PaymentIntent that was refunded.
diff --git a/lib/Tax/Calculation.php b/lib/Tax/Calculation.php
index c8ab80d5a..ac0ba8676 100644
--- a/lib/Tax/Calculation.php
+++ b/lib/Tax/Calculation.php
@@ -5,8 +5,10 @@
namespace Stripe\Tax;
/**
- * A Tax Calculation
allows you to calculate the tax to collect from
- * your customer.
+ * A Tax Calculation allows you to calculate the tax to collect from your customer.
+ *
+ * Related guide: Calculate tax in
+ * your custom payment flow.
*
* @property null|string $id Unique identifier for the calculation.
* @property string $object String representing the object's type. Objects of the same type share the same value.
diff --git a/lib/Tax/Transaction.php b/lib/Tax/Transaction.php
index 2b273a890..b3c816761 100644
--- a/lib/Tax/Transaction.php
+++ b/lib/Tax/Transaction.php
@@ -5,7 +5,11 @@
namespace Stripe\Tax;
/**
- * A Tax transaction records the tax collected from or refunded to your customer.
+ * A Tax Transaction records the tax collected from or refunded to your customer.
+ *
+ * Related guide: Calculate tax in your
+ * custom payment flow.
*
* @property string $id Unique identifier for the transaction.
* @property string $object String representing the object's type. Objects of the same type share the same value.