Skip to content

Commit 07d1a73

Browse files
Merge pull request #10 from lepidus/main
Change incorrect price attribute "currentCode" to "currencyCode"
2 parents b42c197 + b916875 commit 07d1a73

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/GraphQL/Models/Price.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public function setPublicationId(?string $publicationId): void
2424
$this->setData('publicationId', $publicationId);
2525
}
2626

27-
public function getCurrentCode(): ?string
27+
public function getCurrencyCode(): ?string
2828
{
29-
return $this->getData('currentCode');
29+
return $this->getData('currencyCode');
3030
}
3131

32-
public function setCurrentCode(?string $currentCode): void
32+
public function setCurrencyCode(?string $currencyCode): void
3333
{
34-
$this->setData('currentCode', $currentCode);
34+
$this->setData('currencyCode', $currencyCode);
3535
}
3636

3737
public function getUnitPrice(): ?float

tests/GraphQL/Models/PriceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ public function testGettersAndSetters(): void
1717
$price = new Price();
1818
$price->setPriceId($priceId);
1919
$price->setPublicationId($publicationId);
20-
$price->setCurrentCode($currentCode);
20+
$price->setCurrencyCode($currentCode);
2121
$price->setUnitPrice($unitPrice);
2222

2323
$this->assertSame($priceId, $price->getPriceId());
2424
$this->assertSame($publicationId, $price->getPublicationId());
25-
$this->assertSame($currentCode, $price->getCurrentCode());
25+
$this->assertSame($currentCode, $price->getCurrencyCode());
2626
$this->assertSame($unitPrice, $price->getUnitPrice());
2727
}
2828
}

0 commit comments

Comments
 (0)