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

- old
+ new

@@ -51,10 +51,10 @@ # rubocop:enable Metrics/MethodLength # rubocop:enable Metrics/AbcSize def validate_charge_params! contract = Contracts::ChargeRequestContract.new.call(request_params) - raise InvalidFawryRequest, contract.errors.to_h if contract.failure? + raise InvalidFawryRequestError, contract.errors.to_h if contract.failure? end def charge_items request_params[:charge_items].each { |hash| hash[:itemId] = hash.delete(:item_id) } end