diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index bf0daa66a..217ac84ad 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1412
\ No newline at end of file
+v1455
\ No newline at end of file
diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php
index 9bf15baf7..ffca07ca6 100644
--- a/lib/Checkout/Session.php
+++ b/lib/Checkout/Session.php
@@ -43,6 +43,7 @@
* @property null|string $customer_creation Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
* @property null|\Stripe\StripeObject $customer_details The customer details including the customer's tax exempt status and the customer's tax IDs. Customer's address details are not present on Sessions in setup
mode.
* @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 the payment flow is complete, use the customer
attribute.
+ * @property null|\Stripe\StripeObject[] $discounts List of coupons and promotion codes attached to the Checkout Session.
* @property int $expires_at The timestamp at which the Checkout Session will expire.
* @property null|string|\Stripe\Invoice $invoice ID of the invoice created by the Checkout Session, if it exists.
* @property null|\Stripe\StripeObject $invoice_creation Details on the state of invoice creation for the Checkout Session.
diff --git a/lib/CreditNote.php b/lib/CreditNote.php
index d19b102cd..a260e82b0 100644
--- a/lib/CreditNote.php
+++ b/lib/CreditNote.php
@@ -28,7 +28,7 @@
* @property string $number A unique number that identifies this particular credit note and appears on the PDF of the credit note and its associated invoice.
* @property null|int $out_of_band_amount Amount that was credited outside of Stripe.
* @property string $pdf The link to download the PDF of the credit note.
- * @property null|\Stripe\StripeObject[] $pretax_credit_amounts The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
+ * @property \Stripe\StripeObject[] $pretax_credit_amounts The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
* @property null|string $reason Reason for issuing this credit note, one of duplicate
, fraudulent
, order_change
, or product_unsatisfactory
* @property null|string|\Stripe\Refund $refund Refund related to this credit note.
* @property null|\Stripe\StripeObject $shipping_cost The details of the cost of shipping, including the ShippingRate applied to the invoice.
diff --git a/lib/CreditNoteLineItem.php b/lib/CreditNoteLineItem.php
index 357dc0fb1..30d4d3d8c 100644
--- a/lib/CreditNoteLineItem.php
+++ b/lib/CreditNoteLineItem.php
@@ -16,7 +16,7 @@
* @property \Stripe\StripeObject[] $discount_amounts The amount of discount calculated per discount for this line item
* @property null|string $invoice_line_item ID of the invoice line item being credited
* @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[] $pretax_credit_amounts The pretax credit amounts (ex: discount, credit grants, etc) for this line item.
+ * @property \Stripe\StripeObject[] $pretax_credit_amounts The pretax credit amounts (ex: discount, credit grants, etc) for this line item.
* @property null|int $quantity The number of units of product being credited.
* @property \Stripe\StripeObject[] $tax_amounts The amount of tax calculated per tax rate for this line item
* @property \Stripe\TaxRate[] $tax_rates The tax rates which apply to the line item.
diff --git a/lib/PaymentMethod.php b/lib/PaymentMethod.php
index d2d32b066..f283aa155 100644
--- a/lib/PaymentMethod.php
+++ b/lib/PaymentMethod.php
@@ -50,6 +50,7 @@
* @property null|\Stripe\StripeObject $naver_pay
* @property null|\Stripe\StripeObject $oxxo
* @property null|\Stripe\StripeObject $p24
+ * @property null|\Stripe\StripeObject $pay_by_bank
* @property null|\Stripe\StripeObject $payco
* @property null|\Stripe\StripeObject $paynow
* @property null|\Stripe\StripeObject $paypal
@@ -111,6 +112,7 @@ class PaymentMethod extends ApiResource
const TYPE_PAYCO = 'payco';
const TYPE_PAYNOW = 'paynow';
const TYPE_PAYPAL = 'paypal';
+ const TYPE_PAY_BY_BANK = 'pay_by_bank';
const TYPE_PIX = 'pix';
const TYPE_PROMPTPAY = 'promptpay';
const TYPE_REVOLUT_PAY = 'revolut_pay';
diff --git a/lib/PaymentMethodConfiguration.php b/lib/PaymentMethodConfiguration.php
index 46e1ed0ff..d259a16f8 100644
--- a/lib/PaymentMethodConfiguration.php
+++ b/lib/PaymentMethodConfiguration.php
@@ -58,6 +58,7 @@
* @property null|\Stripe\StripeObject $oxxo
* @property null|\Stripe\StripeObject $p24
* @property null|string $parent For child configs, the configuration's parent configuration.
+ * @property null|\Stripe\StripeObject $pay_by_bank
* @property null|\Stripe\StripeObject $paynow
* @property null|\Stripe\StripeObject $paypal
* @property null|\Stripe\StripeObject $promptpay
diff --git a/lib/Service/Treasury/FinancialAccountService.php b/lib/Service/Treasury/FinancialAccountService.php
index f8ec126f9..76187a687 100644
--- a/lib/Service/Treasury/FinancialAccountService.php
+++ b/lib/Service/Treasury/FinancialAccountService.php
@@ -25,6 +25,24 @@ public function all($params = null, $opts = null)
return $this->requestCollection('get', '/v1/treasury/financial_accounts', $params, $opts);
}
+ /**
+ * Closes a FinancialAccount. A FinancialAccount can only be closed if it has a
+ * zero balance, has no pending InboundTransfers, and has canceled all attached
+ * Issuing cards.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\FinancialAccount
+ */
+ public function close($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/treasury/financial_accounts/%s/close', $id), $params, $opts);
+ }
+
/**
* Creates a new FinancialAccount. For now, each connected account can only have
* one FinancialAccount.
diff --git a/lib/Treasury/FinancialAccount.php b/lib/Treasury/FinancialAccount.php
index db77d1869..2e3e7c624 100644
--- a/lib/Treasury/FinancialAccount.php
+++ b/lib/Treasury/FinancialAccount.php
@@ -16,8 +16,10 @@
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|\Stripe\Treasury\FinancialAccountFeatures $features Encodes whether a FinancialAccount has access to a particular Feature, with a status
enum and associated status_details
. Stripe or the platform can control Features via the requested field.
* @property \Stripe\StripeObject[] $financial_addresses The set of credentials that resolve to a FinancialAccount.
+ * @property null|bool $is_default
* @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 null|string $nickname The nickname for the FinancialAccount.
* @property null|string[] $pending_features The array of paths to pending Features in the Features hash.
* @property null|\Stripe\StripeObject $platform_restrictions The set of functionalities that the platform can restrict on the FinancialAccount.
* @property null|string[] $restricted_features The array of paths to restricted Features in the Features hash.
@@ -116,6 +118,23 @@ public static function update($id, $params = null, $opts = null)
return $obj;
}
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\FinancialAccount the closed financial account
+ */
+ public function close($params = null, $opts = null)
+ {
+ $url = $this->instanceUrl() . '/close';
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
+ $this->refreshFrom($response, $opts);
+
+ return $this;
+ }
+
/**
* @param null|array $params
* @param null|array|string $opts
diff --git a/lib/Util/ApiVersion.php b/lib/Util/ApiVersion.php
index e8a119047..8188836d4 100644
--- a/lib/Util/ApiVersion.php
+++ b/lib/Util/ApiVersion.php
@@ -6,5 +6,5 @@
class ApiVersion
{
- const CURRENT = '2024-12-18.acacia';
+ const CURRENT = '2025-01-27.acacia';
}
diff --git a/tests/Stripe/GeneratedExamplesTest.php b/tests/Stripe/GeneratedExamplesTest.php
index 2badfd65f..c89381b42 100644
--- a/tests/Stripe/GeneratedExamplesTest.php
+++ b/tests/Stripe/GeneratedExamplesTest.php
@@ -3595,6 +3595,22 @@ public function testTerminalReadersProcessPaymentIntentPost()
static::assertInstanceOf(\Stripe\Terminal\Reader::class, $result);
}
+ public function testTerminalReadersProcessSetupIntentPost()
+ {
+ $this->expectsRequest(
+ 'post',
+ '/v1/terminal/readers/tmr_xxxxxxxxxxxxx/process_setup_intent'
+ );
+ $result = $this->client->terminal->readers->processSetupIntent(
+ 'tmr_xxxxxxxxxxxxx',
+ [
+ 'setup_intent' => 'seti_xxxxxxxxxxxxx',
+ 'allow_redisplay' => 'always',
+ ]
+ );
+ static::assertInstanceOf(\Stripe\Terminal\Reader::class, $result);
+ }
+
public function testTestHelpersCustomersFundCashBalancePost()
{
$this->expectsRequest(