From 04e727c2f008b635fbfac7b42fd077addfd54cd4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:57:50 +0000 Subject: [PATCH 1/2] Update generated code for v739 --- OPENAPI_VERSION | 2 +- lib/Service/Tax/RegistrationService.php | 16 ++++++++++++++++ lib/Tax/Registration.php | 1 + 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 409300d1c..71a2ae000 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v734 \ No newline at end of file +v739 \ No newline at end of file diff --git a/lib/Service/Tax/RegistrationService.php b/lib/Service/Tax/RegistrationService.php index 99481020a..bb9cde14c 100644 --- a/lib/Service/Tax/RegistrationService.php +++ b/lib/Service/Tax/RegistrationService.php @@ -36,6 +36,22 @@ public function create($params = null, $opts = null) return $this->request('post', '/v1/tax/registrations', $params, $opts); } + /** + * Returns a Tax Registration object. + * + * @param string $id + * @param null|array $params + * @param null|array|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\Tax\Registration + */ + public function retrieve($id, $params = null, $opts = null) + { + return $this->request('get', $this->buildPath('/v1/tax/registrations/%s', $id), $params, $opts); + } + /** * Updates an existing Tax Registration object. * diff --git a/lib/Tax/Registration.php b/lib/Tax/Registration.php index 744b9bc1e..6f0285f81 100644 --- a/lib/Tax/Registration.php +++ b/lib/Tax/Registration.php @@ -27,6 +27,7 @@ class Registration extends \Stripe\ApiResource use \Stripe\ApiOperations\All; use \Stripe\ApiOperations\Create; + use \Stripe\ApiOperations\Retrieve; use \Stripe\ApiOperations\Update; const STATUS_ACTIVE = 'active'; From 13195d1d83359a35b55c4ab50b89dd9db6030c57 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:44:47 +0000 Subject: [PATCH 2/2] Update generated code for v742 --- OPENAPI_VERSION | 2 +- lib/Subscription.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 71a2ae000..da794494d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v739 \ No newline at end of file +v742 \ No newline at end of file diff --git a/lib/Subscription.php b/lib/Subscription.php index 18838476d..06bdd28e2 100644 --- a/lib/Subscription.php +++ b/lib/Subscription.php @@ -14,7 +14,7 @@ * @property null|string|\Stripe\StripeObject $application ID of the Connect Application that created the subscription. * @property null|float $application_fee_percent A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. * @property \Stripe\StripeObject $automatic_tax - * @property int $billing_cycle_anchor Determines the date of the first full invoice, and, for plans with month or year intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. + * @property int $billing_cycle_anchor The reference point that aligns future billing cycle dates. It sets the day of week for week intervals, the day of month for month and year intervals, and the month of year for year intervals. The timestamp is in UTC format. * @property null|\Stripe\StripeObject $billing_thresholds Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period * @property null|int $cancel_at A date in the future at which the subscription will automatically get canceled * @property bool $cancel_at_period_end If the subscription has been canceled with the at_period_end flag set to true, cancel_at_period_end on the subscription will be true. You can use this attribute to determine whether a subscription that has a status of active is scheduled to be canceled at the end of the current period.