charitable
/
vendor
/
square
/
square
/
src
/
Orders
/
CustomAttributes
/
Requests
/
DeleteCustomAttributesRequest.php
DeleteCustomAttributesRequest.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13, at vendor/square/square/src/Orders/CustomAttributes/Requests/DeleteCustomAttributesRequest.php
| 1 | <?php |
| 2 | |
| 3 | namespace Square\Orders\CustomAttributes\Requests; |
| 4 | |
| 5 | use Square\Core\Json\JsonSerializableType; |
| 6 | |
| 7 | class DeleteCustomAttributesRequest extends JsonSerializableType |
| 8 | { |
| 9 | /** |
| 10 | * @var string $orderId The ID of the target [order](entity:Order). |
| 11 | */ |
| 12 | private string $orderId; |
| 13 | |
| 14 | /** |
| 15 | * The key of the custom attribute to delete. This key must match the key of an |
| 16 | * existing custom attribute definition. |
| 17 | * |
| 18 | * @var string $customAttributeKey |
| 19 | */ |
| 20 | private string $customAttributeKey; |
| 21 | |
| 22 | /** |
| 23 | * @param array{ |
| 24 | * orderId: string, |
| 25 | * customAttributeKey: string, |
| 26 | * } $values |
| 27 | */ |
| 28 | public function __construct( |
| 29 | array $values, |
| 30 | ) { |
| 31 | $this->orderId = $values['orderId']; |
| 32 | $this->customAttributeKey = $values['customAttributeKey']; |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * @return string |
| 37 | */ |
| 38 | public function getOrderId(): string |
| 39 | { |
| 40 | return $this->orderId; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * @param string $value |
| 45 | */ |
| 46 | public function setOrderId(string $value): self |
| 47 | { |
| 48 | $this->orderId = $value; |
| 49 | return $this; |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * @return string |
| 54 | */ |
| 55 | public function getCustomAttributeKey(): string |
| 56 | { |
| 57 | return $this->customAttributeKey; |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * @param string $value |
| 62 | */ |
| 63 | public function setCustomAttributeKey(string $value): self |
| 64 | { |
| 65 | $this->customAttributeKey = $value; |
| 66 | return $this; |
| 67 | } |
| 68 | } |
| 69 |