commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Project
CartsConfigurationBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Project
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
CartsConfigurationBuilder
implements
Builder
22
{
27
private
$deleteDaysAfterLastModification;
28
33
private
$countryTaxRateFallbackEnabled;
34
43
public
function
getDeleteDaysAfterLastModification
()
44
{
45
return
$this->deleteDaysAfterLastModification;
46
}
47
54
public
function
getCountryTaxRateFallbackEnabled
()
55
{
56
return
$this->countryTaxRateFallbackEnabled;
57
}
58
63
public
function
withDeleteDaysAfterLastModification
(?
int
$deleteDaysAfterLastModification)
64
{
65
$this->deleteDaysAfterLastModification = $deleteDaysAfterLastModification;
66
67
return
$this;
68
}
69
74
public
function
withCountryTaxRateFallbackEnabled
(?
bool
$countryTaxRateFallbackEnabled)
75
{
76
$this->countryTaxRateFallbackEnabled = $countryTaxRateFallbackEnabled;
77
78
return
$this;
79
}
80
81
82
public
function
build
():
CartsConfiguration
83
{
84
return
new
CartsConfigurationModel
(
85
$this->deleteDaysAfterLastModification,
86
$this->countryTaxRateFallbackEnabled
87
);
88
}
89
90
public
static
function
of
():
CartsConfigurationBuilder
91
{
92
return
new
self
();
93
}
94
}
Commercetools\Api\Models\Project\CartsConfigurationBuilder
Definition
CartsConfigurationBuilder.php:22
Commercetools\Api\Models\Project\CartsConfigurationBuilder\getDeleteDaysAfterLastModification
getDeleteDaysAfterLastModification()
Definition
CartsConfigurationBuilder.php:43
Commercetools\Api\Models\Project\CartsConfigurationBuilder\getCountryTaxRateFallbackEnabled
getCountryTaxRateFallbackEnabled()
Definition
CartsConfigurationBuilder.php:54
Commercetools\Api\Models\Project\CartsConfigurationBuilder\of
static of()
Definition
CartsConfigurationBuilder.php:90
Commercetools\Api\Models\Project\CartsConfigurationBuilder\withCountryTaxRateFallbackEnabled
withCountryTaxRateFallbackEnabled(?bool $countryTaxRateFallbackEnabled)
Definition
CartsConfigurationBuilder.php:74
Commercetools\Api\Models\Project\CartsConfigurationBuilder\withDeleteDaysAfterLastModification
withDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification)
Definition
CartsConfigurationBuilder.php:63
Commercetools\Api\Models\Project\CartsConfigurationBuilder\build
build()
Definition
CartsConfigurationBuilder.php:82
Commercetools\Api\Models\Project\CartsConfigurationModel
Definition
CartsConfigurationModel.php:21
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Api\Models\Project\CartsConfiguration
Definition
CartsConfiguration.php:15
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Project
Definition
BusinessUnitConfiguration.php:9
Generated by
1.9.8