Skip to content

Commit eae4b93

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 8b7df2e + 12843b7 commit eae4b93

13 files changed

+18
-17
lines changed

backend/app/Services/Application/Handlers/Order/Payment/Stripe/CreatePaymentIntentHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ public function handle(string $orderShortId): CreatePaymentIntentResponseDTO
128128
StripePaymentDomainObjectAbstract::ORDER_ID => $order->getId(),
129129
StripePaymentDomainObjectAbstract::PAYMENT_INTENT_ID => $paymentIntent->paymentIntentId,
130130
StripePaymentDomainObjectAbstract::CONNECTED_ACCOUNT_ID => $stripeAccountId,
131-
StripePaymentDomainObjectAbstract::APPLICATION_FEE_GROSS => $applicationFeeData->grossApplicationFee?->toMinorUnit(),
132-
StripePaymentDomainObjectAbstract::APPLICATION_FEE_NET => $applicationFeeData->netApplicationFee?->toMinorUnit(),
133-
StripePaymentDomainObjectAbstract::APPLICATION_FEE_VAT => $applicationFeeData->applicationFeeVatAmount?->toMinorUnit(),
131+
StripePaymentDomainObjectAbstract::APPLICATION_FEE_GROSS => $applicationFeeData?->grossApplicationFee?->toMinorUnit() ?? 0,
132+
StripePaymentDomainObjectAbstract::APPLICATION_FEE_NET => $applicationFeeData?->netApplicationFee?->toMinorUnit() ?? 0,
133+
StripePaymentDomainObjectAbstract::APPLICATION_FEE_VAT => $applicationFeeData?->applicationFeeVatAmount?->toMinorUnit() ?? 0,
134134
StripePaymentDomainObjectAbstract::CURRENCY => strtoupper($order->getCurrency()),
135135
StripePaymentDomainObjectAbstract::STRIPE_PLATFORM => $stripePlatform?->value,
136136
]);

backend/app/Services/Domain/Report/AbstractOrganizerReportService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public function generateReport(
3131
$timezone = $organizer->getTimezone();
3232

3333
$endDate = $endDate
34-
? $endDate->copy()->setTimezone($timezone)->startOfDay()
35-
: now($timezone)->startOfDay();
34+
? $endDate->copy()->setTimezone($timezone)->endOfDay()
35+
: now($timezone)->endOfDay();
3636
$startDate = $startDate
3737
? $startDate->copy()->setTimezone($timezone)->startOfDay()
3838
: $endDate->copy()->subDays(30)->startOfDay();

backend/app/Services/Domain/Report/AbstractReportService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ public function generateReport(int $eventId, ?Carbon $startDate = null, ?Carbon
2424
$timezone = $event->getTimezone();
2525

2626
$endDate = $endDate
27-
? $endDate->copy()->setTimezone($timezone)->startOfDay()
28-
: now($timezone)->startOfDay();
27+
? $endDate->copy()->setTimezone($timezone)->endOfDay()
28+
: now($timezone)->endOfDay();
29+
2930
$startDate = $startDate
3031
? $startDate->copy()->setTimezone($timezone)->startOfDay()
3132
: $endDate->copy()->subDays(30)->startOfDay();

backend/tests/Unit/Jobs/Vat/ValidateVatNumberJobTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HiEvents\Tests\Unit\Jobs\Vat;
3+
namespace Tests\Unit\Jobs\Vat;
44

55
use HiEvents\DomainObjects\AccountVatSettingDomainObject;
66
use HiEvents\DomainObjects\Status\VatValidationStatus;

backend/tests/Unit/Services/Application/Handlers/Account/Vat/GetAccountVatSettingHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HiEvents\Tests\Unit\Services\Application\Handlers\Account\Vat;
3+
namespace Tests\Unit\Services\Application\Handlers\Account\Vat;
44

55
use HiEvents\DomainObjects\AccountVatSettingDomainObject;
66
use HiEvents\Repository\Interfaces\AccountVatSettingRepositoryInterface;

backend/tests/Unit/Services/Application/Handlers/Account/Vat/UpsertAccountVatSettingHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HiEvents\Tests\Unit\Services\Application\Handlers\Account\Vat;
3+
namespace Tests\Unit\Services\Application\Handlers\Account\Vat;
44

55
use HiEvents\DomainObjects\AccountVatSettingDomainObject;
66
use HiEvents\DomainObjects\Status\VatValidationStatus;

backend/tests/Unit/Services/Application/Handlers/Admin/AssignConfigurationHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HiEvents\Tests\Unit\Services\Application\Handlers\Admin;
3+
namespace Tests\Unit\Services\Application\Handlers\Admin;
44

55
use HiEvents\DomainObjects\AccountConfigurationDomainObject;
66
use HiEvents\DomainObjects\AccountDomainObject;

backend/tests/Unit/Services/Application/Handlers/Admin/DeleteConfigurationHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HiEvents\Tests\Unit\Services\Application\Handlers\Admin;
3+
namespace Tests\Unit\Services\Application\Handlers\Admin;
44

55
use HiEvents\DomainObjects\AccountConfigurationDomainObject;
66
use HiEvents\Exceptions\CannotDeleteEntityException;

backend/tests/Unit/Services/Application/Handlers/Admin/GetAccountHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HiEvents\Tests\Unit\Services\Application\Handlers\Admin;
3+
namespace Tests\Unit\Services\Application\Handlers\Admin;
44

55
use HiEvents\Models\Account;
66
use HiEvents\Repository\Interfaces\AccountRepositoryInterface;

backend/tests/Unit/Services/Application/Handlers/Admin/GetAllOrdersHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HiEvents\Tests\Unit\Services\Application\Handlers\Admin;
3+
namespace Tests\Unit\Services\Application\Handlers\Admin;
44

55
use HiEvents\Repository\Interfaces\OrderRepositoryInterface;
66
use HiEvents\Services\Application\Handlers\Admin\DTO\GetAllOrdersDTO;

0 commit comments

Comments
 (0)