diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 30af1cbc1..e3b365910 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v828
\ No newline at end of file
+v840
\ No newline at end of file
diff --git a/lib/Identity/VerificationReport.php b/lib/Identity/VerificationReport.php
index 424e2d2db..2b23299b7 100644
--- a/lib/Identity/VerificationReport.php
+++ b/lib/Identity/VerificationReport.php
@@ -19,6 +19,7 @@
*
* @property string $id Unique identifier for the object.
* @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string $client_reference_id A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|\Stripe\StripeObject $document Result from a document check
* @property null|\Stripe\StripeObject $id_number Result from an id_number check
diff --git a/lib/Identity/VerificationSession.php b/lib/Identity/VerificationSession.php
index f1102ad5a..2539c27ad 100644
--- a/lib/Identity/VerificationSession.php
+++ b/lib/Identity/VerificationSession.php
@@ -19,6 +19,7 @@
*
* @property string $id Unique identifier for the object.
* @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string $client_reference_id A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
* @property null|string $client_secret The short-lived client secret used by Stripe.js to show a verification modal inside your app. This client secret expires after 24 hours and can only be used once. Don’t store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on passing the client secret to the frontend to learn more.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|\Stripe\StripeObject $last_error If present, this property tells you the last error encountered when processing the verification.
diff --git a/lib/InvoiceLineItem.php b/lib/InvoiceLineItem.php
index ba4ce3dd5..15eb3212c 100644
--- a/lib/InvoiceLineItem.php
+++ b/lib/InvoiceLineItem.php
@@ -34,4 +34,6 @@
class InvoiceLineItem extends ApiResource
{
const OBJECT_NAME = 'line_item';
+
+ use ApiOperations\Update;
}
diff --git a/lib/Service/InvoiceService.php b/lib/Service/InvoiceService.php
index 6bd77a287..11bb869e0 100644
--- a/lib/Service/InvoiceService.php
+++ b/lib/Service/InvoiceService.php
@@ -275,6 +275,28 @@ public function update($id, $params = null, $opts = null)
return $this->request('post', $this->buildPath('/v1/invoices/%s', $id), $params, $opts);
}
+ /**
+ * Updates an invoice’s line item. Some fields, such as tax_amounts
,
+ * only live on the invoice line item, so they can only be updated through this
+ * endpoint. Other fields, such as amount
, live on both the invoice
+ * item and the invoice line item, so updates on this endpoint will propagate to
+ * the invoice item as well. Updating an invoice’s line item is only possible
+ * before the invoice is finalized.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceLineItem
+ */
+ public function updateLine($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/invoices/%s/lines/%s', $parentId, $id), $params, $opts);
+ }
+
/**
* Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is
* similar to deletion, however it only applies to