Skip to content

[ADD] price with minor units param#620

Open
rasa04 wants to merge 1 commit intoamocrm:masterfrom
rasa04:cents
Open

[ADD] price with minor units param#620
rasa04 wants to merge 1 commit intoamocrm:masterfrom
rasa04:cents

Conversation

@rasa04
Copy link

@rasa04 rasa04 commented Dec 18, 2025

No description provided.

@rasa04
Copy link
Author

rasa04 commented Mar 3, 2026

image

@rasa04
Copy link
Author

rasa04 commented Mar 3, 2026

image

* @param int|float|null $price
*/
public function setPrice(?int $price): self
public function setPrice($price): self
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нужно добавить проверку на типы внутри метода, если убираем тип

public function testToApiUsesNumericPriceFieldForIntegerInput(): void
{
$this->assertSame(
['price' => 100.0, 'request_id' => '0'],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

добавь тесты, если строку передадут, массив и тд)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants