From 87595707a5bd4610d25cb268eef1bfd634b9c368 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Tue, 2 Aug 2022 13:43:30 -0700 Subject: [PATCH] Codegen for openapi v175 --- OPENAPI_VERSION | 2 +- lib/Customer.php | 15 +++++++-------- lib/Util/ApiVersion.php | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6fa005db0..9b1d84c43 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v172 \ No newline at end of file +v175 \ No newline at end of file diff --git a/lib/Customer.php b/lib/Customer.php index a75ba63fc..efbf083fd 100644 --- a/lib/Customer.php +++ b/lib/Customer.php @@ -19,8 +19,7 @@ * @property null|\Stripe\CashBalance $cash_balance The current funds being held by Stripe on behalf of the customer. These funds can be applied towards payment intents with source "cash_balance".The settings[reconciliation_mode] field describes whether these funds are applied to such payment intents manually or automatically. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|string $currency Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes. - * @property null|string $default_currency The default three-letter ISO code for the currency that the customer will be charged in for billing purposes. - * @property null|string|\Stripe\Account|\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source $default_source

ID of the default payment source for the customer.

If you are using payment methods created via the PaymentMethods API, see the invoice_settings.default_payment_method field instead.

+ * @property null|string|\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source $default_source

ID of the default payment source for the customer.

If you are using payment methods created via the PaymentMethods API, see the invoice_settings.default_payment_method field instead.

* @property null|bool $delinquent

When the customer's latest invoice is billed by charging automatically, delinquent is true if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice, delinquent is true if the invoice isn't paid by its due date.

If an invoice is marked uncollectible by dunning, delinquent doesn't get reset to false.

* @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users. * @property null|\Stripe\Discount $discount Describes the current discount active on the customer, if there is one. @@ -35,7 +34,7 @@ * @property null|string $phone The customer's phone number. * @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<\Stripe\Account|\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source> $sources The customer's payment sources, if any. + * @property \Stripe\Collection<\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source> $sources The customer's payment sources, if any. * @property \Stripe\Collection<\Stripe\Subscription> $subscriptions The customer's current subscriptions, if any. * @property \Stripe\StripeObject $tax * @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". @@ -237,7 +236,7 @@ public static function updateBalanceTransaction($id, $balanceTransactionId, $par * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection<\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source> the list of payment sources (AlipayAccount, BankAccount, BitcoinReceiver, Card or Source) + * @return \Stripe\Collection<\Stripe\BankAccount|\Stripe\Card|\Stripe\Source> the list of payment sources (BankAccount, Card or Source) */ public static function allSources($id, $params = null, $opts = null) { @@ -251,7 +250,7 @@ public static function allSources($id, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source + * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source */ public static function createSource($id, $params = null, $opts = null) { @@ -266,7 +265,7 @@ public static function createSource($id, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source + * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source */ public static function deleteSource($id, $sourceId, $params = null, $opts = null) { @@ -281,7 +280,7 @@ public static function deleteSource($id, $sourceId, $params = null, $opts = null * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source + * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source */ public static function retrieveSource($id, $sourceId, $params = null, $opts = null) { @@ -296,7 +295,7 @@ public static function retrieveSource($id, $sourceId, $params = null, $opts = nu * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source + * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source */ public static function updateSource($id, $sourceId, $params = null, $opts = null) { diff --git a/lib/Util/ApiVersion.php b/lib/Util/ApiVersion.php index 3d2f87f38..5d1ffedc5 100644 --- a/lib/Util/ApiVersion.php +++ b/lib/Util/ApiVersion.php @@ -6,5 +6,5 @@ class ApiVersion { - const CURRENT = '2020-08-27; server_side_confirmation_beta=v1'; + const CURRENT = '2022-08-01; server_side_confirmation_beta=v1; orders_beta=v4'; }