関数
Cancel::populate()
Populates error store
説明 説明
ファイル: src/API/Charge/Cancel.php
public function populate() { $this->addError(new GenericError( self::INVALID_CHARGE_PERMISSION_STATUS, $this->getConstantNameByValue(self::INVALID_CHARGE_PERMISSION_STATUS), 422, function ($message) { return $message; }, __('You tried to call an operation on a Charge Permission that is in a state where that operation cannot be called', 'wcexaap') )); $this->addError(new GenericError( self::INVALID_CHARGE_STATUS, $this->getConstantNameByValue(self::INVALID_CHARGE_STATUS), 422, function ($message) { return $message; }, __('You tried to call an operation on a Charge that is in a state where that operation cannot be called', 'wcexaap') )); }