-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathCartsConfiguration.php
More file actions
80 lines (64 loc) · 3.31 KB
/
Copy pathCartsConfiguration.php
File metadata and controls
80 lines (64 loc) · 3.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\Api\Models\Project;
use Commercetools\Base\DateTimeImmutableCollection;
use Commercetools\Base\JsonObject;
interface CartsConfiguration extends JsonObject
{
public const FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION = 'deleteDaysAfterLastModification';
public const FIELD_COUNTRY_TAX_RATE_FALLBACK_ENABLED = 'countryTaxRateFallbackEnabled';
public const FIELD_PRICE_ROUNDING_MODE = 'priceRoundingMode';
public const FIELD_TAX_ROUNDING_MODE = 'taxRoundingMode';
/**
* <p>Default value for the <code>deleteDaysAfterLastModification</code> parameter of the <a href="ctp:api:type:CartDraft">CartDraft</a> and <a href="ctp:api:type:MyCartDraft">MyCartDraft</a>.</p>
* <ul>
* <li>If a <a href="ctp:api:type:ChangeSubscription">ChangeSubscription</a> for Carts exists, a <a href="ctp:api:type:ResourceDeletedDeliveryPayload">ResourceDeletedDeliveryPayload</a> is sent upon deletion of a Cart.</li>
* <li>Carts with <a href="ctp:api:type:CartOrigin">CartOrigin</a> <code>Quote</code> or <code>RecurringOrder</code> are not affected by this configuration value.</li>
* <li>Changing this value doesn't affect the retention of existing Carts. To update an existing Cart's retention use <a href="/projects/carts#set-deletedaysafterlastmodification"><code>setDeleteDaysAfterLastModification</code></a> on the Carts API.</li>
* <li>This field may not be present on Projects created before January 2020.</li>
* </ul>
*
* @return null|int
*/
public function getDeleteDaysAfterLastModification();
/**
* <p>Indicates if country <em>- no state</em> Tax Rate fallback should be used when a shipping address state is not explicitly covered in the rates lists of all Tax Categories of a Cart Line Items. This field may not be present on Projects created before June 2020.</p>
*
* @return null|bool
*/
public function getCountryTaxRateFallbackEnabled();
/**
* <p>Default value for the <code>priceRoundingMode</code> parameter of the <a href="ctp:api:type:CartDraft">CartDraft</a>.
* Indicates how the total prices on <a href="ctp:api:type:LineItem">LineItems</a> and <a href="ctp:api:type:CustomLineItem">CustomLineItems</a> are rounded when calculated.</p>
*
* @return null|string
*/
public function getPriceRoundingMode();
/**
* <p>Default value for the <code>taxRoundingMode</code> parameter of the <a href="ctp:api:type:CartDraft">CartDraft</a>.
* Indicates how monetary values are rounded when calculating taxes for <code>taxedPrice</code>.</p>
*
* @return null|string
*/
public function getTaxRoundingMode();
/**
* @param ?int $deleteDaysAfterLastModification
*/
public function setDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification): void;
/**
* @param ?bool $countryTaxRateFallbackEnabled
*/
public function setCountryTaxRateFallbackEnabled(?bool $countryTaxRateFallbackEnabled): void;
/**
* @param ?string $priceRoundingMode
*/
public function setPriceRoundingMode(?string $priceRoundingMode): void;
/**
* @param ?string $taxRoundingMode
*/
public function setTaxRoundingMode(?string $taxRoundingMode): void;
}