|
- <?php
-
- namespace App\Email\Members;
-
- use App\Kintone\Models\Customer;
- use App\Kintone\Models\PaymentPlan;
- use App\Kintone\Models\SeasonTicketContract;
-
- /**
- * 口座振替・未納者通知
- */
- class CouldNotPayNotice extends Members
- {
- public function __construct(
- private SeasonTicketContract $seasonTicketContract,
- private PaymentPlan $paymentPlan,
- protected ?Customer $customer = null,
- ) {
- if ($customer === null) {
- $customer = $seasonTicketContract->getCustomer();
- }
- parent::__construct($customer);
- }
-
- public function getTemplateName(): string
- {
- return 'emails.members.could_not_pay_notice';
- }
-
- public function getSubject(): string
- {
- return "定期駐車場料金未納のお知らせ";
- }
-
- public function getMemberParams(): array
- {
- return [
- 'url' => $this->getAppUrl([
- 'login',
- ]),
- 'smbc_register_url' => $this->getAppUrl([
- 'dashboard', 'update', 'user', 'back-register',
- ]),
- ];
- }
- }
|