commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Error
DiscountCodeNonApplicableError.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Error
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use DateTimeImmutable;
14
15
interface
DiscountCodeNonApplicableError
extends
ErrorObject
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
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError
Definition:
DiscountCodeNonApplicableError.php:16
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\setValidUntil
setValidUntil(?DateTimeImmutable $validUntil)
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\setDiscountCodeId
setDiscountCodeId(?string $discountCodeId)
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\getReason
getReason()
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\setValidFrom
setValidFrom(?DateTimeImmutable $validFrom)
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\FIELD_DISCOUNT_CODE
const FIELD_DISCOUNT_CODE
Definition:
DiscountCodeNonApplicableError.php:17
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\FIELD_VALID_UNTIL
const FIELD_VALID_UNTIL
Definition:
DiscountCodeNonApplicableError.php:21
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\FIELD_REASON
const FIELD_REASON
Definition:
DiscountCodeNonApplicableError.php:18
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\setValidityCheckTime
setValidityCheckTime(?DateTimeImmutable $validityCheckTime)
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\FIELD_VALID_FROM
const FIELD_VALID_FROM
Definition:
DiscountCodeNonApplicableError.php:20
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\setReason
setReason(?string $reason)
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\FIELD_DISCOUNT_CODE_ID
const FIELD_DISCOUNT_CODE_ID
Definition:
DiscountCodeNonApplicableError.php:19
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\getMessage
getMessage()
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\getDiscountCode
getDiscountCode()
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\getCode
getCode()
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\getValidityCheckTime
getValidityCheckTime()
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\setMessage
setMessage(?string $message)
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\setDiscountCode
setDiscountCode(?string $discountCode)
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\getValidFrom
getValidFrom()
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\FIELD_VALIDITY_CHECK_TIME
const FIELD_VALIDITY_CHECK_TIME
Definition:
DiscountCodeNonApplicableError.php:22
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\getDiscountCodeId
getDiscountCodeId()
Commercetools\Api\Models\Error\DiscountCodeNonApplicableError\getValidUntil
getValidUntil()
Commercetools\Api\Models\Error\ErrorObject
Definition:
ErrorObject.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Error
Definition:
AnonymousIdAlreadyInUseError.php:9
Generated by
1.9.1