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.

43 line
1.5KB

  1. <?php
  2. namespace App\Http\Controllers\Web\RobotPayment\CreditCard;
  3. use App\Http\Controllers\Web\BaseParam;
  4. /**
  5. * @property string $gid 決済番号 決済毎に発行されるユニークID
  6. * @property string $rst 決済結果(1:決済成功 2:決済失敗)
  7. * @property string $ap カード会社承認番号 決済毎に発行されるユニークID
  8. * @property ?string $ec エラーコード
  9. * @property string $god オーダーコード 決済毎に発行されるユニークID
  10. * @property string $cod 店舗オーダー番号 決済データ送信時に送信された店舗オーダー番号
  11. * @property ?int $am 決済金額
  12. * @property ?int $tx 税金額
  13. * @property ?int $sf 送料
  14. * @property ?int $ta 合計金額
  15. * @property string $acid 自動課金番号 対象の自動課金番号
  16. * @property ?string $customerCode カスタム-顧客コード
  17. * @property ?string $token カスタム-トークン
  18. */
  19. class PaymentResultParam extends BaseParam
  20. {
  21. public function rules(): array
  22. {
  23. return [
  24. 'gid' => $this->str(),
  25. 'rst' => $this->str(),
  26. 'ap' => $this->str(),
  27. 'ec' => $this->str(true),
  28. 'god' => $this->str(),
  29. 'cod' => $this->str(),
  30. 'am' => $this->numeric(),
  31. 'tx' => $this->numeric(true),
  32. 'sf' => $this->numeric(true),
  33. 'ta' => $this->numeric(true),
  34. 'acid' => $this->str(),
  35. 'customer_code' => $this->str(true),
  36. 'token' => $this->str(true),
  37. ];
  38. }
  39. }