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
| 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 |