領収証発行サービス
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.7KB

  1. <?php
  2. namespace App\Http\Controllers\Web\Custom\HelloTechno;
  3. use App\Http\Controllers\Web\BaseParam;
  4. use App\Repositories\Custom\HelloTechno\ReceiptIssuingOrderRepository as Repository;
  5. use Illuminate\Support\Carbon;
  6. /**
  7. * @property ?string $id
  8. * @property ?string $customerCode
  9. * @property ?string $customerName
  10. * @property ?string $parkingManagementCode
  11. * @property ?string $parkingName
  12. * @property ?int $adjustSeqNo
  13. * @property ?bool $done
  14. * @property ?string $status
  15. * @property ?Carbon $orderDateFrom
  16. * @property ?Carbon $orderDateTo
  17. * @property ?string $smsPhoneNumber
  18. * @property ?string $handlerName
  19. */
  20. class ReceiptIssuingsOrdersParam extends BaseParam
  21. {
  22. public function rules(): array
  23. {
  24. return
  25. array_merge(
  26. [
  27. Repository::CONDITION_ID => $this->str(true),
  28. Repository::CONDITION_CUSTOMER_CODE => $this->str(true),
  29. Repository::CONDITION_CUSTOMER_NAME => $this->str(true),
  30. Repository::CONDITION_PARKING_MANAGEMENT_CODE => $this->str(true),
  31. Repository::CONDITION_PARKING_NAME => $this->str(true),
  32. Repository::CONDITION_ADJSUT_SEQ_NO => $this->numeric(true),
  33. Repository::CONDITION_SMS_PHONE_NUMBER => $this->str(true),
  34. Repository::CONDITION_DONE => $this->boolean(true),
  35. Repository::CONDITION_STATUS => $this->str(true),
  36. Repository::CONDITION_ORDER_DATE_FROM => $this->date(true),
  37. Repository::CONDITION_ORDER_DATE_TO => $this->date(true),
  38. Repository::CONDITION_HANDLER_NAME => $this->str(true),
  39. ],
  40. $this->sortableRules(),
  41. );
  42. }
  43. }