No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

47 líneas
1.1KB

  1. <?php
  2. namespace App\Email\Members;
  3. use App\Kintone\Models\ChangePaymentMethodCreditcardOrderApplication;
  4. use App\Kintone\Models\Customer;
  5. /**
  6. * クレジットカード登録案内
  7. */
  8. class RegisterCreditcard extends Members
  9. {
  10. public function __construct(
  11. private ChangePaymentMethodCreditcardOrderApplication $application,
  12. protected ?Customer $customer = null,
  13. ) {
  14. if ($customer === null) {
  15. $customer = $application->getCustomer();
  16. }
  17. parent::__construct($customer);
  18. }
  19. public function getTemplateName(): string
  20. {
  21. return 'emails.members.register_creditcard';
  22. }
  23. public function getSubject(): string
  24. {
  25. return "クレジットカード登録のご案内";
  26. }
  27. public function getMemberParams(): array
  28. {
  29. return [
  30. 'url' => $this->getAppUrl([
  31. 'dashboard',
  32. 'robot-payment',
  33. 'creditcard',
  34. 'register',
  35. $this->application->token
  36. ]),
  37. 'expires_at' => $this->application->tokenExpiresAt->format('Y/m/d H:i')
  38. ];
  39. }
  40. }