|
- <?php
-
- namespace App\Http\Controllers\Web\RobotPayment\CreditCard;
-
- use App\Http\Controllers\Web\BaseParam;
-
- /**
- * @property string $gid 決済番号 決済毎に発行されるユニークID
- * @property string $rst 決済結果(1:決済成功 2:決済失敗)
- * @property string $ap カード会社承認番号 決済毎に発行されるユニークID
- * @property ?string $ec エラーコード
- * @property string $god オーダーコード 決済毎に発行されるユニークID
- * @property string $cod 店舗オーダー番号 決済データ送信時に送信された店舗オーダー番号
- * @property ?int $am 決済金額
- * @property ?int $tx 税金額
- * @property ?int $sf 送料
- * @property ?int $ta 合計金額
- * @property string $acid 自動課金番号 対象の自動課金番号
- * @property ?string $customerCode カスタム-顧客コード
- * @property ?string $token カスタム-トークン
- */
- class PaymentResultParam extends BaseParam
- {
- public function rules(): array
- {
- return [
- 'gid' => $this->str(),
- 'rst' => $this->str(),
- 'ap' => $this->str(),
- 'ec' => $this->str(true),
- 'god' => $this->str(),
- 'cod' => $this->str(),
- 'am' => $this->numeric(),
- 'tx' => $this->numeric(true),
- 'sf' => $this->numeric(true),
- 'ta' => $this->numeric(true),
- 'acid' => $this->str(),
- 'customer_code' => $this->str(true),
- 'token' => $this->str(true),
- ];
- }
- }
|