Skip to content
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

PAYOSWXP-100: Unzer invoice purchase: if the customer has a company address, the birthday is not required #259

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9f01375
[PAYONE-184] Add compatibility for shopware 6.5
Mar 28, 2023
33bfd11
[PAYONE-184] Add manual improvements and compatibility changes (befor…
Apr 27, 2023
f7aa266
[PAYONE-184] Add changes made by rector (up to PHP 8.1)
Apr 27, 2023
c6e74bb
[PAYONE-184] Add refactoring of payment handler and more improvements
May 8, 2023
20138d2
[PAYONE-184] changes payone settings support template and styling
clarissa-minkwitz May 11, 2023
4a63004
[PAYONE-184] changes payone credit card template and styling
clarissa-minkwitz May 12, 2023
6b50a80
[PAYONE-184] changes payone ratepay installment template and styling
clarissa-minkwitz May 12, 2023
8fae30d
[PAYONE-184] changes payone ratepay debit template
clarissa-minkwitz May 12, 2023
625e477
[PAYONE-184] changes payone ratepay open invoice template
clarissa-minkwitz May 12, 2023
b23df09
[PAYONE-184] adds class changes for bootstrap v5
clarissa-minkwitz May 12, 2023
6a46e74
[PAYONE-184] Adjust test workflow for Shopware 6.5 and fix migrations…
May 15, 2023
aa788db
[PAYONE-184] Remove src/Resources/public/static directory from gitign…
May 15, 2023
6d7496f
[PAYONE-184] adds padding to modal body
clarissa-minkwitz May 22, 2023
3be37de
[PAYONE-184] Fix capture for Przelewy24
May 24, 2023
c2e8f57
[PAYONE-184] Add changelogs and version 6.5.1.0 to test matrix
Jun 1, 2023
4f09306
[PAYONE-184] Fix unit test for different hosts
Jun 2, 2023
d873d42
[PAYONE-184] add 6.5.2.0 to github pipeline
rommelfreddy Jun 21, 2023
890e8e1
[PAYONE-184] remove composer dependecies & add execute-composer-comma…
rommelfreddy Jun 22, 2023
21a13a4
resolve phpstan issues
rommelfreddy Jun 22, 2023
d6bb0c4
add missing class import (after rebase)
rommelfreddy Jun 22, 2023
ba70ea3
fix rector issues
rommelfreddy Jun 22, 2023
fb758b6
add symfony/runtime to allowed packages for github pipeline
rommelfreddy Jun 22, 2023
d8989c3
update rector/ecs & fix ecs/rector issues
rommelfreddy Jun 22, 2023
8b73150
github-actions: replace shopware/production-template with flex-template
rommelfreddy Jun 22, 2023
4920243
[PAYONE-190] if the customer has a company address, the birthday is n…
amirinterlutions Jun 22, 2023
0b1dd18
[PAYONE-190] merge with master: if the customer has a company address…
amirinterlutions Nov 9, 2023
0b2b6cd
Merge branch 'master' into task/PAYONE-190
amirinterlutions Nov 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ public function getValidationDefinitions(SalesChannelContext $salesChannelContex
$definitions = parent::getValidationDefinitions($salesChannelContext);

$definitions['payolutionConsent'] = [new NotBlank()];
$definitions['payolutionBirthday'] = [new NotBlank(), new Birthday(['value' => $this->getMinimumDate()])];

// if the customer has a company address, the birthday is not required
if ($salesChannelContext->getCustomer()?->getDefaultBillingAddress()?->getCompany() === null) {
$definitions['payolutionBirthday'] = [new NotBlank(), new Birthday(['value' => $this->getMinimumDate()])];
}

$configuration = $this->configReader->read($salesChannelContext->getSalesChannel()->getId());

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% block payone_payolution_consent_checkbox %}
{% if context.customer.activeBillingAddress and context.customer.activeBillingAddress.company is empty %}
<div class="row consent-row">
<div class="col-12">
<label class="form-label" for="payolutionBirthday">
Expand All @@ -17,6 +18,7 @@
/>
</div>
</div>
{% endif %}

<div class="row consent-row">
<div class="col-12">
Expand Down
Loading