commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
TypedMoney.php
1 <?php
2 
3 declare(strict_types=1);
10 
13 
14 interface TypedMoney extends JsonObject
15 {
16  public const DISCRIMINATOR_FIELD = 'type';
17  public const FIELD_TYPE = 'type';
18  public const FIELD_FRACTION_DIGITS = 'fractionDigits';
19  public const FIELD_CENT_AMOUNT = 'centAmount';
20  public const FIELD_CURRENCY_CODE = 'currencyCode';
21 
26  public function getType();
27 
32  public function getFractionDigits();
33 
38  public function getCentAmount();
39 
46  public function getCurrencyCode();
47 
51  public function setFractionDigits(?int $fractionDigits): void;
52 
56  public function setCentAmount(?int $centAmount): void;
57 
61  public function setCurrencyCode(?string $currencyCode): void;
62 }