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