PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
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 1.7.0.9 All 211 releases
charitable / vendor / square / square / src / Subscriptions / Requests / GetSubscriptionsRequest.php

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

72 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Square\Subscriptions\Requests;
4
5 use Square\Core\Json\JsonSerializableType;
6
7 class GetSubscriptionsRequest extends JsonSerializableType
8 {
9 /**
10 * @var string $subscriptionId The ID of the subscription to retrieve.
11 */
12 private string $subscriptionId;
13
14 /**
15 * A query parameter to specify related information to be included in the response.
16 *
17 * The supported query parameter values are:
18 *
19 * - `actions`: to include scheduled actions on the targeted subscription.
20 *
21 * @var ?string $include
22 */
23 private ?string $include;
24
25 /**
26 * @param array{
27 * subscriptionId: string,
28 * include?: ?string,
29 * } $values
30 */
31 public function __construct(
32 array $values,
33 ) {
34 $this->subscriptionId = $values['subscriptionId'];
35 $this->include = $values['include'] ?? null;
36 }
37
38 /**
39 * @return string
40 */
41 public function getSubscriptionId(): string
42 {
43 return $this->subscriptionId;
44 }
45
46 /**
47 * @param string $value
48 */
49 public function setSubscriptionId(string $value): self
50 {
51 $this->subscriptionId = $value;
52 return $this;
53 }
54
55 /**
56 * @return ?string
57 */
58 public function getInclude(): ?string
59 {
60 return $this->include;
61 }
62
63 /**
64 * @param ?string $value
65 */
66 public function setInclude(?string $value = null): self
67 {
68 $this->include = $value;
69 return $this;
70 }
71 }
72