From 3a8f885fbddb03f8c71be2eed762fe46ea1cb92a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 25 Sep 2023 12:11:16 +0000 Subject: [PATCH] Update generated code for v552 --- OPENAPI_VERSION | 2 +- lib/Service/RefundService.php | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 08b883915..5d756f90c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v551 \ No newline at end of file +v552 \ No newline at end of file diff --git a/lib/Service/RefundService.php b/lib/Service/RefundService.php index 772c0f6e3..813f3ee01 100644 --- a/lib/Service/RefundService.php +++ b/lib/Service/RefundService.php @@ -44,7 +44,19 @@ public function cancel($id, $params = null, $opts = null) } /** - * Create a refund. + * When you create a new refund, you must specify a Charge or a PaymentIntent + * object on which to create it. + * + * Creating a new refund will refund a charge that has previously been created but + * not yet refunded. Funds will be refunded to the credit or debit card that was + * originally charged. + * + * You can optionally refund only part of a charge. You can do so multiple times, + * until the entire charge has been refunded. + * + * Once entirely refunded, a charge can’t be refunded again. This method will raise + * an error when called on an already-refunded charge, or when trying to refund + * more money than is left on a charge. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts