Skip to content

Comments

✨ Add showConfiguration constructor property to ShopSetupResponse#13

Merged
yoerriwalstra merged 2 commits intomasterfrom
feature/MP-7637-add-followUpWithConfiguration-to-ShopSetupResponse
Sep 23, 2025
Merged

✨ Add showConfiguration constructor property to ShopSetupResponse#13
yoerriwalstra merged 2 commits intomasterfrom
feature/MP-7637-add-followUpWithConfiguration-to-ShopSetupResponse

Conversation

@yoerriwalstra
Copy link
Contributor

@yoerriwalstra yoerriwalstra changed the title ✨ add followUpWithConfiguration constructor property to ShopSetupResponse ✨ Add followUpWithConfiguration constructor property to ShopSetupResponse Sep 23, 2025
@yoerriwalstra yoerriwalstra changed the title ✨ Add followUpWithConfiguration constructor property to ShopSetupResponse ✨ Add followUpWithConfiguration constructor property to ShopSetupResponse Sep 23, 2025
@yoerriwalstra yoerriwalstra force-pushed the feature/MP-7637-add-followUpWithConfiguration-to-ShopSetupResponse branch from 00011ad to 15fae2f Compare September 23, 2025 12:49
@yoan-myparcel yoan-myparcel changed the title ✨ Add followUpWithConfiguration constructor property to ShopSetupResponse ✨ Add offerConfiguration constructor property to ShopSetupResponse Sep 23, 2025
@yoerriwalstra yoerriwalstra force-pushed the feature/MP-7637-add-followUpWithConfiguration-to-ShopSetupResponse branch from 15fae2f to 18d07c2 Compare September 23, 2025 12:52
@yoan-myparcel yoan-myparcel changed the title ✨ Add offerConfiguration constructor property to ShopSetupResponse ✨ Add showConfiguration constructor property to ShopSetupResponse Sep 23, 2025
@yoerriwalstra yoerriwalstra force-pushed the feature/MP-7637-add-followUpWithConfiguration-to-ShopSetupResponse branch 2 times, most recently from 775d9cf to b2d9b6a Compare September 23, 2025 12:57
#[DataProvider('setupProvider')]
public function test_to_response(
?string $authorizationUrl,
bool $followUpWithConfiguration,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
bool $followUpWithConfiguration,
bool $showConfiguration,

): void {
assertSame(
$responseData,
new ShopSetupResponse($authorizationUrl, $followUpWithConfiguration)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
new ShopSetupResponse($authorizationUrl, $followUpWithConfiguration)
new ShopSetupResponse($authorizationUrl, $showConfiguration)

Comment on lines 36 to 65
return [
[
'authorizationUrl' => null,
'followUpWithConfiguration' => false,
'responseData' => [
'data' => [
'show_configuration' => false,
],
],
],
[
'authorizationUrl' => null,
'followUpWithConfiguration' => true,
'responseData' => [
'data' => [
'show_configuration' => true,
],
],
],
[
'authorizationUrl' => 'http://localhost',
'followUpWithConfiguration' => false,
'responseData' => [
'data' => [
'show_configuration' => false,
'authorization_url' => 'http://localhost',
],
],
],
];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return [
[
'authorizationUrl' => null,
'followUpWithConfiguration' => false,
'responseData' => [
'data' => [
'show_configuration' => false,
],
],
],
[
'authorizationUrl' => null,
'followUpWithConfiguration' => true,
'responseData' => [
'data' => [
'show_configuration' => true,
],
],
],
[
'authorizationUrl' => 'http://localhost',
'followUpWithConfiguration' => false,
'responseData' => [
'data' => [
'show_configuration' => false,
'authorization_url' => 'http://localhost',
],
],
],
];
return [
[
'authorizationUrl' => null,
'showConfiguration' => false,
'responseData' => [
'data' => [
'show_configuration' => false,
],
],
],
[
'authorizationUrl' => null,
'showConfiguration' => true,
'responseData' => [
'data' => [
'show_configuration' => true,
],
],
],
[
'authorizationUrl' => 'http://localhost',
'showConfiguration' => false,
'responseData' => [
'data' => [
'show_configuration' => false,
'authorization_url' => 'http://localhost',
],
],
],
];

@yoerriwalstra yoerriwalstra force-pushed the feature/MP-7637-add-followUpWithConfiguration-to-ShopSetupResponse branch from b2d9b6a to 3993d93 Compare September 23, 2025 13:00
Co-authored-by: Yoan-Alexander Grigorov <46448148+yoan-myparcel@users.noreply.github.com>
@yoerriwalstra yoerriwalstra merged commit 75c3074 into master Sep 23, 2025
1 check passed
@yoerriwalstra yoerriwalstra deleted the feature/MP-7637-add-followUpWithConfiguration-to-ShopSetupResponse branch September 23, 2025 13:59
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