Skip to content

Commit 3538735

Browse files
authored
Merge pull request #1 from dv-net/add-currency-id
add currency id
2 parents f65e9b7 + 8350ae8 commit 3538735

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.9.1] - 2025-07-07
9+
10+
- Add currency id to store/currencies route
11+
812
## [0.9.0] - 2025-05-20
913

10-
- Public release
11-
-
14+
- Public release

src/Dto/MerchantClient/Dto/CurrencyDto.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
class CurrencyDto
88
{
99
public function __construct(
10+
public readonly string $id,
1011
public readonly string $blockchain,
1112
public readonly string $code,
1213
public readonly string $contractAddress,

src/MerchantClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ public function getStoreCurrencies(
275275
$currencies = [];
276276
foreach ($json['data'] as $data) {
277277
$currencies[] = new CurrencyDto(
278+
$data['id'],
278279
$data['blockchain'],
279280
$data['code'],
280281
$data['contract_address'],

0 commit comments

Comments
 (0)