Skip to content

Commit

Permalink
Merge pull request #3056 from the-events-calendar/tweak/final-prep-fo…
Browse files Browse the repository at this point in the history
…r-asag-release

Prep for final release: asag
  • Loading branch information
codingmusician authored Jun 7, 2024
2 parents 718593c + 8c475f5 commit b57b7fd
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ Check out our extensive [knowledgebase](https://evnt.is/18wm) for articles on us
* Feature - Added support for automatic Stripe Webhook Management for TicketsCommerce [ET-2104]
* Tweak - Added filters: `tec_tickets_commerce_need_to_enable_stripe_webhook`
* Deprecated - The `is_success()` method has been deprecated in `TEC\Tickets\Commerce\Gateways\Stripe\Signup` without a replacement.
* Language: 6 new strings added, 46 updated, 4 fuzzied, and 1 obsoleted

= [5.10.0] 2024-05-14 =

Expand Down
8 changes: 4 additions & 4 deletions src/Tickets/Commerce/Gateways/Stripe/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ protected function add_filters() {
/**
* Set up Stripe Webhook based on transient value.
*
* @since TBD
* @since 5.11.0
*
* @return bool
*/
public function setup_stripe_webhook_on_activation() {
/**
* Filters whether to enable the Stripe Webhook.
*
* @since TBD
* @since 5.11.0
*
* @param bool $need_to_enable_stripe_webhook Whether to enable the Stripe Webhook.
*/
Expand All @@ -96,7 +96,7 @@ public function setup_stripe_webhook_on_activation() {
/**
* Set up Stripe Webhook based on the plugin version.
*
* @since TBD
* @since 5.11.0
*
* @return bool
*/
Expand Down Expand Up @@ -169,7 +169,7 @@ public function action_handle_verify_webhooks() : void {
/**
* Handles the setting up of the webhook on the settings page.
*
* @since TBD
* @since 5.11.0
*
* @return void
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function handle_connection_error( $payload ) {
/**
* Handle account disconnections.
*
* @since TBD
* @since 5.11.0
*
* @param array $reason Reason of disconnect.
* @param ?stdClass $payload Data returned from WhoDat.
Expand Down
4 changes: 2 additions & 2 deletions src/Tickets/Commerce/Gateways/Stripe/Signup.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ public function get_client_id() {
*
* @since 5.3.0
*
* @deprecated TBD
* @deprecated 5.11.0
*
* @param array $data Data returned from Stripe.
*
* @return bool
*/
public function is_success( $data ) {
_deprecated_function( __METHOD__, 'TBD' );
_deprecated_function( __METHOD__, '5.11.0' );

return ! empty( $data->stripe_user_id )
&& ! empty( $data->live->access_token )
Expand Down
20 changes: 10 additions & 10 deletions src/Tickets/Commerce/Gateways/Stripe/Webhooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Webhooks extends Abstract_Webhooks {
/**
* Option name for the option to store the known webhooks.
*
* @since TBD
* @since 5.11.0
*
* @var string
*/
Expand All @@ -69,7 +69,7 @@ class Webhooks extends Abstract_Webhooks {
/**
* Nonce key for webhook on-demand set up.
*
* @since TBD
* @since 5.11.0
*
* @var string
*/
Expand Down Expand Up @@ -251,7 +251,7 @@ public function handle_validation(): void {
/**
* Handles the setup of the webhook.
*
* @since TBD
* @since 5.11.0
*
* @return bool
*/
Expand Down Expand Up @@ -304,7 +304,7 @@ public function handle_webhook_setup() {
/**
* Disables the current webhook.
*
* @since TBD
* @since 5.11.0
*
* @return bool
*/
Expand Down Expand Up @@ -365,7 +365,7 @@ public function disable_webhook(): bool {
/**
* Get the current webhook ID.
*
* @since TBD
* @since 5.11.0
*
* @return array
*/
Expand All @@ -390,7 +390,7 @@ public function get_current_webhook_id(): array {
/**
* Get the known webhooks.
*
* @since TBD
* @since 5.11.0
*
* @return array
*/
Expand All @@ -408,7 +408,7 @@ public function get_known_webhooks(): array {
* Adds a webhook to the known webhooks and updates the current signing secrets
* and marks it as validated.
*
* @since TBD
* @since 5.11.0
*
* @param array $webhook The webhook being added.
*
Expand Down Expand Up @@ -558,7 +558,7 @@ public function get_fields(): array {
/**
* Get the description for the webhooks.
*
* @since TBD
* @since 5.11.0
*
* @return string
*/
Expand All @@ -570,7 +570,7 @@ protected function get_description_webhook_html(): string {
/**
* Whether we have a valid signing secret.
*
* @since TBD
* @since 5.11.0
*
* @param string $context The context in which we are checking the signing secret.
*
Expand Down Expand Up @@ -600,7 +600,7 @@ public function has_valid_signing_secret( $context = 'enable' ) {
/**
* Whether the signing secret constant is defined.
*
* @since TBD
* @since 5.11.0
*
* @return bool
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Template to display the Webhook's Setting Description.
*
* @since TBD
* @since 5.11.0
*
* @var Tribe__Tickets__Admin__Views $this Template object.
*/
Expand Down

0 comments on commit b57b7fd

Please sign in to comment.