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.

46 lines
1.2KB

  1. <?php
  2. namespace App\Kintone\Models;
  3. use Illuminate\Support\Carbon;
  4. /**
  5. * アプリ名 ゆうちょ振込情報
  6. *
  7. * @property int customerCode
  8. * @property string customerName
  9. * @property Carbon paymentDate
  10. * @property int paymentAmount
  11. * @property string paymentName
  12. * @property string[] poolDone
  13. */
  14. class YuchoPaymentResult extends KintoneModel
  15. {
  16. const CONFIG_KEY = "KINTONE_APP_YUCHO_PAYMENT_RESULT";
  17. const FIELD_CUSTOMER_CODE = "顧客コード";
  18. const FIELD_CUSTOMER_NAME = "顧客名";
  19. const FIELD_PAYMENT_DATE = "取引日";
  20. const FIELD_PAYMENT_AMOUNT = "受入金額";
  21. const FIELD_PAYMENT_NAME = "詳細2";
  22. const FIELD_POOL_DONE = "プール済み";
  23. protected const FIELDS = [
  24. ...parent::FIELDS,
  25. self::FIELD_CUSTOMER_CODE => FieldType::NUMBER,
  26. self::FIELD_CUSTOMER_NAME => FieldType::SINGLE_LINE_TEXT,
  27. self::FIELD_PAYMENT_DATE => FieldType::DATE,
  28. self::FIELD_PAYMENT_AMOUNT => FieldType::NUMBER,
  29. self::FIELD_PAYMENT_NAME => FieldType::SINGLE_LINE_TEXT,
  30. self::FIELD_POOL_DONE => FieldType::CHECK_BOX,
  31. ];
  32. protected const FIELD_NAMES = [
  33. ...parent::FIELD_NAMES,
  34. ];
  35. protected const RELATIONS = [
  36. Customer::class,
  37. ];
  38. }