Skip to content

Commit

Permalink
Zimbabwe gold has been added to currency standard for Zimbabwe (#229)
Browse files Browse the repository at this point in the history
Co-authored-by: PrinsFrank <[email protected]>
  • Loading branch information
github-actions[bot] and PrinsFrank authored Jun 28, 2024
1 parent efd849d commit 2fcc166
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Country/CountryAlpha2.php
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,10 @@ public function getCurrenciesAlpha3(): array
self::Western_Sahara => [CurrencyAlpha3::Moroccan_Dirham],
self::Yemen => [CurrencyAlpha3::Yemeni_Rial],
self::Zambia => [CurrencyAlpha3::Zambian_Kwacha],
self::Zimbabwe => [CurrencyAlpha3::Zimbabwe_Dollar],
self::Zimbabwe => [
CurrencyAlpha3::Zimbabwe_Dollar,
CurrencyAlpha3::Zimbabwe_Gold
],
default => []
};
}
Expand Down
3 changes: 3 additions & 0 deletions src/Currency/CurrencyAlpha3.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ enum CurrencyAlpha3: string
case Yuan_Renminbi = 'CNY';
case Zambian_Kwacha = 'ZMW';
case Zimbabwe_Dollar = 'ZWL';
case Zimbabwe_Gold = 'ZWG';
case Zloty = 'PLN';

/** @deprecated Has been removed from the specification but is maintained here for Backwards Compatibility reasons */
Expand Down Expand Up @@ -411,6 +412,7 @@ public function getMinorUnits(): ?int
self::Yuan_Renminbi => 2,
self::Zambian_Kwacha => 2,
self::Zimbabwe_Dollar => 2,
self::Zimbabwe_Gold => 2,
self::Zloty => 2,
default => null
};
Expand Down Expand Up @@ -714,6 +716,7 @@ public function getCountriesAlpha2(): array
self::Yuan_Renminbi => [CountryAlpha2::China],
self::Zambian_Kwacha => [CountryAlpha2::Zambia],
self::Zimbabwe_Dollar => [CountryAlpha2::Zimbabwe],
self::Zimbabwe_Gold => [CountryAlpha2::Zimbabwe],
self::Zloty => [CountryAlpha2::Poland],
default => []
};
Expand Down
1 change: 1 addition & 0 deletions src/Currency/CurrencyName.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ enum CurrencyName: string
case Yuan_Renminbi = 'Yuan Renminbi';
case Zambian_Kwacha = 'Zambian Kwacha';
case Zimbabwe_Dollar = 'Zimbabwe Dollar';
case Zimbabwe_Gold = 'Zimbabwe Gold';
case Zloty = 'Zloty';

/** @deprecated Has been removed from the specification but is maintained here for Backwards Compatibility reasons */
Expand Down
1 change: 1 addition & 0 deletions src/Currency/CurrencyNumeric.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ enum CurrencyNumeric: string
case Yuan_Renminbi = '156';
case Zambian_Kwacha = '967';
case Zimbabwe_Dollar = '932';
case Zimbabwe_Gold = '924';
case Zloty = '985';

/** @deprecated Has been removed from the specification but is maintained here for Backwards Compatibility reasons */
Expand Down

0 comments on commit 2fcc166

Please sign in to comment.