関数
OrderMeta::updateRefundState( Aivec\Welcart\SettlementModules\AmazonPay\Models\Refund\State $refundState, int|string|null $refundAmount = null )
Updates refund state
パラメータ パラメータ
- $refundState
(State) (必須)
- $refundAmount
(数値|文字列|null) (任意)
ファイル: src/Models/OrderMeta.php
public function updateRefundState(Refund\State $refundState, $refundAmount = null) { global $usces; $this->refundState = $refundState; $usces->set_order_meta_value(self::REFUND_STATE, json_encode($this->refundState), $this->orderid); if ($refundAmount) { $this->mostRecentTransactionAmount = $refundAmount; $usces->set_order_meta_value(self::MOST_RECENT_TRANS_AMOUNT, $refundAmount, $this->orderid); } }