PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13.1
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13.1
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
charitable / vendor / square / square / src / Webhooks / Subscriptions / Requests / TestWebhookSubscriptionRequest.php

TestWebhookSubscriptionRequest.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13.1, at vendor/square/square/src/Webhooks/Subscriptions/Requests/TestWebhookSubscriptionRequest.php

71 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Square\Webhooks\Subscriptions\Requests;
4
5 use Square\Core\Json\JsonSerializableType;
6 use Square\Core\Json\JsonProperty;
7
8 class TestWebhookSubscriptionRequest extends JsonSerializableType
9 {
10 /**
11 * @var string $subscriptionId [REQUIRED] The ID of the [Subscription](entity:WebhookSubscription) to test.
12 */
13 private string $subscriptionId;
14
15 /**
16 * The event type that will be used to test the [Subscription](entity:WebhookSubscription). The event type must be
17 * contained in the list of event types in the [Subscription](entity:WebhookSubscription).
18 *
19 * @var ?string $eventType
20 */
21 #[JsonProperty('event_type')]
22 private ?string $eventType;
23
24 /**
25 * @param array{
26 * subscriptionId: string,
27 * eventType?: ?string,
28 * } $values
29 */
30 public function __construct(
31 array $values,
32 ) {
33 $this->subscriptionId = $values['subscriptionId'];
34 $this->eventType = $values['eventType'] ?? null;
35 }
36
37 /**
38 * @return string
39 */
40 public function getSubscriptionId(): string
41 {
42 return $this->subscriptionId;
43 }
44
45 /**
46 * @param string $value
47 */
48 public function setSubscriptionId(string $value): self
49 {
50 $this->subscriptionId = $value;
51 return $this;
52 }
53
54 /**
55 * @return ?string
56 */
57 public function getEventType(): ?string
58 {
59 return $this->eventType;
60 }
61
62 /**
63 * @param ?string $value
64 */
65 public function setEventType(?string $value = null): self
66 {
67 $this->eventType = $value;
68 return $this;
69 }
70 }
71