-
Notifications
You must be signed in to change notification settings - Fork 0
Apms by region request #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -7,6 +7,7 @@ | |||
public function __construct( | |||
public string $id, | |||
public string $type, | |||
public string $state, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is some state
like "boxnow-ready"
|
||
public function getHeaders(): array | ||
{ | ||
return []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no authorization required for this, but I'll confirm that
@@ -25,6 +25,7 @@ public function handleData(array $data): void | |||
$this->pickupPoints[] = new PickupPointDTO( | |||
$pickupPoint['id'], | |||
$pickupPoint['state'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this response there is no type, only state.
Previously as "type" we set "state" so i left it as is
8d7e76f
to
7f7772b
Compare
7f7772b
to
8c445f6
Compare
|
||
public function getEndpoint(): string | ||
{ | ||
return str_replace('REGION_PLACEHOLDER', $this->region->value, self::ENDPOINT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not sprintf
? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a placeholder is better to show what exactly I'm doing
No description provided.