commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
DiscountCodeNonApplicableError.php
1<?php
2
3declare(strict_types=1);
10
13use DateTimeImmutable;
14
16{
17 public const FIELD_DISCOUNT_CODE = 'discountCode';
18 public const FIELD_REASON = 'reason';
19 public const FIELD_DISCOUNT_CODE_ID = 'discountCodeId';
20 public const FIELD_VALID_FROM = 'validFrom';
21 public const FIELD_VALID_UNTIL = 'validUntil';
22 public const FIELD_VALIDITY_CHECK_TIME = 'validityCheckTime';
23
28 public function getCode();
29
36 public function getMessage();
37
44 public function getDiscountCode();
45
52 public function getReason();
53
60 public function getDiscountCodeId();
61
68 public function getValidFrom();
69
76 public function getValidUntil();
77
84 public function getValidityCheckTime();
85
89 public function setMessage(?string $message): void;
90
94 public function setDiscountCode(?string $discountCode): void;
95
99 public function setReason(?string $reason): void;
100
104 public function setDiscountCodeId(?string $discountCodeId): void;
105
109 public function setValidFrom(?DateTimeImmutable $validFrom): void;
110
114 public function setValidUntil(?DateTimeImmutable $validUntil): void;
115
119 public function setValidityCheckTime(?DateTimeImmutable $validityCheckTime): void;
120}
setValidityCheckTime(?DateTimeImmutable $validityCheckTime)