lib/fawry/requests/refund_request.rb in fawry-0.2.0 vs lib/fawry/requests/refund_request.rb in fawry-0.3.0

- old
+ new

@@ -37,10 +37,10 @@ }.compact end def validate_refund_params! contract = Contracts::RefundRequestContract.new.call(request_params) - raise InvalidFawryRequest, contract.errors.to_h if contract.failure? + raise InvalidFawryRequestError, contract.errors.to_h if contract.failure? end def refund_request_signature Digest::SHA256.hexdigest("#{request_params[:merchant_code]}#{request_params[:reference_number]}"\ "#{format('%<refund_amount>.2f', refund_amount: request_params[:refund_amount])}"\