From 72519dd8f90aa5d6e82a9260a6d21bc98447f7e5 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik <99290280+kamil-stripe@users.noreply.github.com> Date: Mon, 25 Jul 2022 07:37:41 -0700 Subject: [PATCH] API Updates (#1332) --- OPENAPI_VERSION | 2 +- lib/Customer.php | 2 ++ lib/Service/PaymentIntentService.php | 4 ---- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f95a4f0ea..6fa005db0 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v165 \ No newline at end of file +v172 \ No newline at end of file diff --git a/lib/Customer.php b/lib/Customer.php index 4ea4df4c9..a75ba63fc 100644 --- a/lib/Customer.php +++ b/lib/Customer.php @@ -19,11 +19,13 @@ * @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|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. * @property null|string $email The customer's email address. + * @property \Stripe\StripeObject $invoice_credit_balance The current multi-currency balances, if any, being stored on the customer.If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency.If negative, the customer has an amount owed that will be added to their next invoice denominated in that currency. These balances do not refer to any unpaid invoices.They solely track amounts that have yet to be successfully applied to any invoice. A balance in a particular currency is only applied to any invoice as an invoice in that currency is finalized. * @property null|string $invoice_prefix The prefix for the customer used to generate unique invoice numbers. * @property \Stripe\StripeObject $invoice_settings * @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. diff --git a/lib/Service/PaymentIntentService.php b/lib/Service/PaymentIntentService.php index ab8d3a814..cd39c19e8 100644 --- a/lib/Service/PaymentIntentService.php +++ b/lib/Service/PaymentIntentService.php @@ -24,10 +24,6 @@ public function all($params = null, $opts = null) /** * Manually reconcile the remaining amount for a customer_balance PaymentIntent. * - * This can be used when the cash balance for a - * customer in manual reconciliation mode received funds. - * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts